. . Sorry for the huge console log below. It is important to ilustrate the problem.Lapo wrote:If you can provide a simple example that reproduces the issue it would be greatWhenever I get an error in the debug-versioin of the flashplayer, all (or most) server XML messages cause more error-popups complaining about the XML markup.
. . This is not a bug, guys. The problem is simple, take a look:
### ### Console output start ### ###
(...)
[Sending]: <msg t='sys'><body action='setUvars' r='25'><vars><var n='ty' t='n'><![CDATA[-543.7623611403974]]></var><var n='tx' t='n'><![CDATA[2432.5730520628235]]></var></vars></body></msg>
[Sending]: <msg t='sys'><body action='setUvars' r='25'><vars><var n='ty' t='n'><![CDATA[-543.7623611403973]]></var><var n='tx' t='n'><![CDATA[2392.573052062823]]></var></vars></body></msg>
[ RECEIVED ]: <msg t='sys'><body action='pubMsg' r='25'><user id='33' /><txt><![CDATA[!]]></txt></body></msg>, (len: 95)
DEBUG: PUBLIC message from "guest_33" says: "!"
[Fault] exception, information=TypeError: Error #1010: A term is undefined and has no properties.
Fault, gameover() at Amigo.as:128
[ RECEIVED ]: <msg t='sys'><body action='pubMsg' r='25'><user id='33' /><txt><![CDATA[!]]></txt></body></msg><msg t='sys'><body action='userGone' r='25'><user id='33' /></body></msg>, (len: 168)
[Fault] exception, information=TypeError: Error #1088: The markup in the document following the root element must be well-formed.
Fault, xmlReceived() at SmartFoxClient.as:2557
[ RECEIVED ]: <msg t='sys'><body action='pubMsg' r='25'><user id='33' /><txt><![CDATA[!]]></txt></body></msg><msg t='sys'><body action='userGone' r='25'><user id='33' /></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[282.7493500861668]]></var><var n='tx' t='n'><![CDATA[1543.3304448274073]]></var></vars></body></msg>, (len: 364)
[Fault] exception, information=TypeError: Error #1088: The markup in the document following the root element must be well-formed.
Fault, xmlReceived() at SmartFoxClient.as:2557
[ RECEIVED ]: <msg t='sys'><body action='pubMsg' r='25'><user id='33' /><txt><![CDATA[!]]></txt></body></msg><msg t='sys'><body action='userGone' r='25'><user id='33' /></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[282.7493500861668]]></var><var n='tx' t='n'><![CDATA[1543.3304448274073]]></var></vars></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[96.7685879726334]]></var><var n='tx' t='n'><![CDATA[1720.6509529030927]]></var></vars></body></msg>, (len: 559)
[Fault] exception, information=TypeError: Error #1088: The markup in the document following the root element must be well-formed.
Fault, xmlReceived() at SmartFoxClient.as:2557
[ RECEIVED ]: <msg t='sys'><body action='pubMsg' r='25'><user id='33' /><txt><![CDATA[!]]></txt></body></msg><msg t='sys'><body action='userGone' r='25'><user id='33' /></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[282.7493500861668]]></var><var n='tx' t='n'><![CDATA[1543.3304448274073]]></var></vars></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[96.7685879726334]]></var><var n='tx' t='n'><![CDATA[1720.6509529030927]]></var></vars></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[196.76858797263313]]></var><var n='tx' t='n'><![CDATA[1760.6509529030916]]></var></vars></body></msg>, (len: 756)
[Fault] exception, information=TypeError: Error #1088: The markup in the document following the root element must be well-formed.
Fault, xmlReceived() at SmartFoxClient.as:2557
[ RECEIVED ]: <msg t='sys'><body action='pubMsg' r='25'><user id='33' /><txt><![CDATA[!]]></txt></body></msg><msg t='sys'><body action='userGone' r='25'><user id='33' /></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[282.7493500861668]]></var><var n='tx' t='n'><![CDATA[1543.3304448274073]]></var></vars></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[96.7685879726334]]></var><var n='tx' t='n'><![CDATA[1720.6509529030927]]></var></vars></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[196.76858797263313]]></var><var n='tx' t='n'><![CDATA[1760.6509529030916]]></var></vars></body></msg><msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[116.76858797263309]]></var><var n='tx' t='n'><![CDATA[1760.650952903091]]></var></vars></body></msg>, (len: 952)
[Fault] exception, information=TypeError: Error #1088: The markup in the document following the root element must be well-formed.
Fault, xmlReceived() at SmartFoxClient.as:2557
-- Clicked on "ok" in the messages, no errors anymore --
[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[116.76858797263309]]></var><var n='tx' t='n'><![CDATA[1800.6509529030907]]></var></vars></body></msg>, (len: 197)
[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[-49.21217414090025]]></var><var n='tx' t='n'><![CDATA[2172.612477130153]]></var></vars></body></msg>, (len: 196)
[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[-289.2121741409]]></var><var n='tx' t='n'><![CDATA[2532.6124771301497]]></var></vars></body></msg>, (len: 194)
[ RECEIVED ]: <msg t='sys'><body action='uVarsUpdate' r='25'><user id='32' /><vars><var n='ty' t='n'><![CDATA[-409.21217414089983]]></var><var n='tx' t='n'><![CDATA[2372.6124771301475]]></var></vars></body></msg>, (len: 198)
### ### Console output end ### ###
. . This is the relevant console content. The problem is that while the "an actionscript error has ocurred" box is showing, the script will stop working and it seems that the server repeat the messages it have sent to the client (take a look at how the messages are resent in the same packet right after the code error). It is likely that the server thinks that the client didn't receive the messages because it was unresponsive, so it kept resending everything again and again (probably making the "message out queue" goes up). After clicking "ok" on the boxes, everything goes back to normal, as you can see in the traces.
. . Although I know the code is supposed to deal with stacked messages, we have to bear with an unresponsive player.
. . If it helps, Lapo, it is very easy to reproduce: just open two players, connect to a server, make sure one of them throws an error and send default xml messages (user variables update, for example) from the other one while the "error ocurred" box is still showing.