Page 1 of 1

Very strange bug.

Posted: 24 Aug 2008, 18:18
by DesignerMichael
Ok, heres whats going on. SFS 1.6.3.

User 1 creates game.
User 2 enters game.

User 1 leaves game.
User 3 joins LIMBO...

User 2 who is in limbo and the game room throws this error the instant user 3 joins LIMBO room... Yes, a user joining a limbo room is causing a client who has joined a limbo and a game room to crash...

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at battleTanksGame/::onUserVariablesUpdate()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at it.gotoandplay.smartfoxserver.handlers::SysHandler/handleUserVarsUpdate()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at it.gotoandplay.smartfoxserver.handlers::SysHandler/handleMessage()
at it.gotoandplay.smartfoxserver::SmartFoxClient/::xmlReceived()
at it.gotoandplay.smartfoxserver::SmartFoxClient/::handleMessage()
at it.gotoandplay.smartfoxserver::SmartFoxClient/::handleSocketData()


It seems that there is a bug where when a user is in a game and a limbo room, and a user joins a limbo room... The user in the game receives a bad broadcast...

Update: I made it so users leave the limbo room as soon as they join a game, and there is no errors at all! Everything seems to be good now. I kinda wanted to leave my users in limbo too though... :(

Posted: 25 Aug 2008, 15:18
by Lapo
User 2 who is in limbo and the game room throws this error the instant user 3 joins LIMBO room... Yes, a user joining a limbo room is causing a client who has joined a limbo and a game room to crash...
Sounds odd, as no updates is sent by the server when a user joins a Limbo room. I think the problem might be somewhere else... it would be great if you could describe a little bit better this scenario, step by step.

We've done a few tests simulating a similar scenario (Limbo room + dynamically created game room) and we didn't find anything.

Posted: 25 Aug 2008, 15:37
by DesignerMichael
I can send you the files if you want to take a look.

Edit: Just sent to the contact email.

Posted: 25 Aug 2008, 20:03
by Lapo
thank you