Hi,
We have a rare connection problem, sometimes Flash API sends command to server, server receives the command and execute the action but Flash API doesn't receive the response from server, when this problem appears Flash doesn't receive any response more until recharges the page. Example: Flash sends join.Room, server executes join.Room but flash doesn't receive the response.
We can't reproduce the problem. We suffer the problem in PRO or LOCAL machines, with a lot users or only a few users, when start the app or when we playing a hour,... We have not found a pattern to reproduce the problem.
We use SFS2X AS3 API Version: 1.2.5 (Release date: Sep 24th, 2014) and server SFS2X 2.9.2 patch.
thanks
Sometimes Flash doesn't receive response from server.
Re: Sometimes Flash doesn't receive response from server.
I would recommend to check the Dashboard in the AdminTool and keep an eye on the dropped packets count in the stats.
Also I would monitor the server queues and report back if you see that they're often busy. E.g. lots of requests piling up and not going away for long times, such as minutes.
Also are there any server side errors that may have to do with the lost response? Did you inspect the log files?
thanks
Also I would monitor the server queues and report back if you see that they're often busy. E.g. lots of requests piling up and not going away for long times, such as minutes.
Also are there any server side errors that may have to do with the lost response? Did you inspect the log files?
thanks
Re: Sometimes Flash doesn't receive response from server.
Lapo wrote:I would recommend to check the Dashboard in the AdminTool and keep an eye on the dropped packets count in the stats.
Also I would monitor the server queues and report back if you see that they're often busy. E.g. lots of requests piling up and not going away for long times, such as minutes.
Also are there any server side errors that may have to do with the lost response? Did you inspect the log files?
Hi,
We have the dropped packets lower. The others users don't have problems and the user with this problem the Flash works perfect, the output panel shows the debug "[SFS2X|INFO] Object going out: ...", but it doesn't show any response from SFS.
The problem appears with navigators (chrome, explorer, ...) and Flash program, in this case we can activate the SFS debug when appears the problem and the output doesn't show any error before and after.
If when the problem appears, we send a joinroom and after we recharge the page, we have inside the room.
We think that this is a problem with AS3 API.
Can you recommend some tests?
thanks
Re: Sometimes Flash doesn't receive response from server.
ferriPlay wrote:Hi,
We have the dropped packets lower. The others users don't have problems and the user with this problem the Flash works perfect, the output panel shows the debug "[SFS2X|INFO] Object going out: ...", but it doesn't show any response from SFS.
The problem appears with navigators (chrome, explorer, ...) and Flash program, in this case we can activate the SFS debug when appears the problem and the output doesn't show any error before and after.
If when the problem appears, we send a joinroom and after we recharge the page, we have inside the room.
This is not clear.
If you reload the page the whole Flash Player application gets destroyed and reloaded from scratch, so it is really not possible that after a page-refresh you find yourself joined in a Room. On the contrary you will find yourself with a new instance of the application starting up from scratch.
We think that this is a problem with AS3 API.
It's unlikely. If the response came back to the client you would see the data in the debug and you would get an event.
Can you recommend some tests?
Where is SmartFoxServer hosted? Is it a dedicated server? What kind of bandwidth is available? What hardware?
Also you said the "dropped packets" are low. Low doesn't mean zero. How many outgoing dropped packets do you have? And what % does the AdminTool say?
If you have some dropped packets it could be correlated with those missing responses.
Also, how long do you wait for the missing response to come back? Isn't it possible that there's slow connection and you're just not waiting enough for the response to arrive?
Thanks
Re: Sometimes Flash doesn't receive response from server.
I'm testing now and it's a output when the problem appear:
Then the Flash crashed
Code: Select all
[SFS2X|INFO] UserEnterRoom, { Message id: 1000 }
{ Dump: }
(sfs_array) u:
(int) 28417
(utf_string) CarolinaE424
(short) 1
(short) 0
(sfs_array)
(sfs_array)
(utf_string) uc
(byte) 6
(sfs_array)
(long) 100002387337778
(null) null
(byte) 1
(long) 9060102
(utf_string) FACEBOOK
(utf_string) ANDROID
(sfs_array)
(utf_string) ben
(byte) 6
(sfs_array)
(sfs_object)
(utf_string) de: lobby.badge
(long) ii: 27751818
(utf_string) g: graphicsResources/items/badges/horoscope_leo
(int) t: 0
(sfs_array)
(utf_string) up
(byte) 5
(sfs_object)
(int) lv: 13
(int) r: 2
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.v2.entities.managers::SFSUserManager/addUser()
at com.smartfoxserver.v2.entities::SFSRoom/addUser()
at com.smartfoxserver.v2.controllers::SystemController/fnUserEnterRoom()
at com.smartfoxserver.v2.controllers::SystemController/handleMessage()
at com.smartfoxserver.v2.core::SFSProtocolCodec/dispatchRequest()
at com.smartfoxserver.v2.core::SFSProtocolCodec/onPacketRead()
at com.smartfoxserver.v2.core::SFSIOHandler/handlePacketData()
at com.smartfoxserver.v2.core::SFSIOHandler/onDataRead()
at com.smartfoxserver.v2.bitswarm::BitSwarmClient/onSocketData()
[SFS2X|INFO] Data Read: Size > 1024, dump omitted
[SFS2X|INFO] UserEnterRoom, { Message id: 1000 }
{ Dump: }
(sfs_array) u:
(int) 28417
(utf_string) CarolinaE424
(short) 1
(short) 0
(sfs_array)
(sfs_array)
(utf_string) uc
(byte) 6
(sfs_array)
(long) 100002387337778
(null) null
(byte) 1
(long) 9060102
(utf_string) FACEBOOK
(utf_string) ANDROID
(sfs_array)
(utf_string) ben
(byte) 6
(sfs_array)
(sfs_object)
(utf_string) de: lobby.badge
(long) ii: 27751818
(utf_string) g: graphicsResources/items/badges/horoscope_leo
(int) t: 0
(sfs_array)
(utf_string) up
(byte) 5
(sfs_object)
(int) lv: 13
(int) r: 2
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.v2.entities.managers::SFSUserManager/addUser()
at com.smartfoxserver.v2.entities::SFSRoom/addUser()
at com.smartfoxserver.v2.controllers::SystemController/fnUserEnterRoom()
at com.smartfoxserver.v2.controllers::SystemController/handleMessage()
at com.smartfoxserver.v2.core::SFSProtocolCodec/dispatchRequest()
at com.smartfoxserver.v2.core::SFSProtocolCodec/onPacketRead()
at com.smartfoxserver.v2.core::SFSIOHandler/handlePacketData()
at com.smartfoxserver.v2.core::SFSIOHandler/onDataRead()
at com.smartfoxserver.v2.bitswarm::BitSwarmClient/onSocketData()
[SFS2X|INFO] Object going out:
(byte) c: 1
(sfs_object) p:
(utf_string) c: room.list
(sfs_object) p:
(int) r: -1
(short) a: 13
[SFS2X|INFO] Data written: Binary Size: 49
12 00 03 00 01 63 02 01 00 01 70 12 00 03 00 01 .....c....p.....
63 08 00 09 72 6F 6F 6D 2E 6C 69 73 74 00 01 70 c...room.list..p
12 00 00 00 01 72 04 FF FF FF FF 00 01 61 03 00 .....r.......a..
0D .
[SFS2X|INFO] Data Read: Size > 1024, dump omitted
RangeError: Error #2006: The supplied index is out of bounds.
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()
[SFS2X|INFO] Data Read: Size > 1024, dump omitted
RangeError: Error #2006: The supplied index is out of bounds.
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()
[SFS2X|INFO] Data Read: Size > 1024, dump omitted
RangeError: Error #2006: The supplied index is out of bounds.
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()
...
Then the Flash crashed
Re: Sometimes Flash doesn't receive response from server.
Some of those errors indicate network issues, but it's unclear.
You also did not answer to my questions regarding the server, hardware, bandwidth etc...
Can you reproduce the errors in a local test environment? Or do they only appear online?
thanks
You also did not answer to my questions regarding the server, hardware, bandwidth etc...
Can you reproduce the errors in a local test environment? Or do they only appear online?
thanks
Re: Sometimes Flash doesn't receive response from server.
Hi Lapo,
I am a colleague of ferriPlay.
Some information about our servers:
- Or server are in aws
- We use a c3.2xlarge instances
- Our dropped package in the sfsamind is 0% with a uptime of more than a week.
- A single instance in production supports more than 8000 CCU without problems.
- We use the SFS version 2.9.2
About the problem with the flash clients:
- The problem only happens in the flash clients. In Unity, native iOS or native Android never happens.
- It also happens in our development server without any user connected apart of the flash client.
- On the server side, we don't have any error. We receive the message on the handlers and the server communicates correctly the response, but the handler of flash don't receive anything or is not capable of process it.
Let me know if I could provide you anymore information in order to resolve the problem.
Thanks in advance
I am a colleague of ferriPlay.
Some information about our servers:
- Or server are in aws
- We use a c3.2xlarge instances
- Our dropped package in the sfsamind is 0% with a uptime of more than a week.
- A single instance in production supports more than 8000 CCU without problems.
- We use the SFS version 2.9.2
About the problem with the flash clients:
- The problem only happens in the flash clients. In Unity, native iOS or native Android never happens.
- It also happens in our development server without any user connected apart of the flash client.
- On the server side, we don't have any error. We receive the message on the handlers and the server communicates correctly the response, but the handler of flash don't receive anything or is not capable of process it.
Let me know if I could provide you anymore information in order to resolve the problem.
Thanks in advance
Last edited by arodrigo on 12 Mar 2015, 07:37, edited 1 time in total.
Re: Sometimes Flash doesn't receive response from server.
We begin to detect the problem in late February.
Flash Player and Flash Professional CC was update at February:
https://helpx.adobe.com/flash-player/re ... d_versions
http://blogs.adobe.com/creativecloudent ... cc-2014-2/
Flash Player and Flash Professional CC was update at February:
https://helpx.adobe.com/flash-player/re ... d_versions
http://blogs.adobe.com/creativecloudent ... cc-2014-2/
Re: Sometimes Flash doesn't receive response from server.
arodrigo wrote:Hi Lapo,
I am a colleague of ferriPlay.
Some information about our servers:
- Or server are in aws
- We use a c3.2xlarge instances
- Our dropped package in the sfsamind is 0% with a uptime of more than a week.
- A single instance in production supports more than 8000 CCU without problems.
- We use the SFS version 2.9.2
About the problem with the flash clients:
- The problem only happens in the flash clients. In Unity, native iOS or native Android never happens.
- It also happens in our development server without any user connected apart of the flash client.
- On the server side, we don't have any error. We receive the message on the handlers and the server communicates correctly the response, but the handler of flash don't receive anything or is not capable of process it.
Let me know if I could provide you anymore information in order to resolve the problem.
Thanks in advance
Hi there,
thanks for the information.
If you can reproduce the problem in your local environment it's a good news. You could send us a stripped down version of the client and the other necessary elements so that we can investigate it. E.g. the zone and the Extension files.
You can zip them and send it to our support@... email box with a reference to this thread.
Thanks
Re: Sometimes Flash doesn't receive response from server.
Hi,
I meet the same log [SFS2X INFO] Data Read: Size > 1024, dump omitted. What happen when I see the log? Do Client discard this data?
I meet the same log [SFS2X INFO] Data Read: Size > 1024, dump omitted. What happen when I see the log? Do Client discard this data?
Re: Sometimes Flash doesn't receive response from server.
No,
packets with size > 1024 are simply not hexdumped in the logs to avoid taking up too many resources.
packets with size > 1024 are simply not hexdumped in the logs to avoid taking up too many resources.
Return to “SFS2X ActionScript 3 API”
Who is online
Users browsing this forum: No registered users and 22 guests