Random AS3 API crash
Posted: 01 Mar 2012, 12:55
Hi,
we've developed a realtime racing game using SFX. It works great so far. However from time to time the flash client throws this:
RangeError: Error #2006: Index out of limits
at flash.utils::ByteArray/writeBytes()
at com.smartfoxserver.v2.core::SFSIOHandler/handlePacketData()
at com.smartfoxserver.v2.core::SFSIOHandler/onDataRead()
at com.smartfoxserver.v2.bitswarm::BitSwarmClient/onSocketData()
And after that the entire sfs class becomes unusable. No more events, no more requests can be sent, etc. When this happens the server doesn't display any errors and the admin tool reports the connection with the client to be working fine ( no dropped messages, etc ).
I'm using the latest as3 2.0.1 API against SFS2_RC3 ( Can't get the release to work on that same server, will start another post about that ) It happened as well with the 2.0.0 API before that
Thank you
Thank you
we've developed a realtime racing game using SFX. It works great so far. However from time to time the flash client throws this:
RangeError: Error #2006: Index out of limits
at flash.utils::ByteArray/writeBytes()
at com.smartfoxserver.v2.core::SFSIOHandler/handlePacketData()
at com.smartfoxserver.v2.core::SFSIOHandler/onDataRead()
at com.smartfoxserver.v2.bitswarm::BitSwarmClient/onSocketData()
And after that the entire sfs class becomes unusable. No more events, no more requests can be sent, etc. When this happens the server doesn't display any errors and the admin tool reports the connection with the client to be working fine ( no dropped messages, etc ).
I'm using the latest as3 2.0.1 API against SFS2_RC3 ( Can't get the release to work on that same server, will start another post about that ) It happened as well with the 2.0.0 API before that
Thank you
Thank you