Very strange bug.

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
DesignerMichael
Posts: 31
Joined: 08 Jul 2008, 20:28

Very strange bug.

Post 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... :(
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
DesignerMichael
Posts: 31
Joined: 08 Jul 2008, 20:28

Post by DesignerMichael »

I can send you the files if you want to take a look.

Edit: Just sent to the contact email.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

thank you
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply