Sign In Register

How can we help you today?

Start a new topic
Solved

Connectivity issues

Hi,


On our final tests to launch the game we realized there's an issue and there might be another when enabling/disabling internet connection on a device running on Gamesparks. 


1 - The first test we've run it in an iPad simulator (on Flash Builder). Run the application, log in in Gamesparks and disconnect the internet connection, the availabilityCallback gets triggered stating that the connection was lot (so far so good). After re-connecting the connection you would expect that handler to be triggered again but never happens, instead you can read this in the log:

12:29:22.357  id: 0   Not the right socket
12:29:22.508  id: 0   Websocket Error 
12:29:23.22  id: 0   Not the right socket

 2 - There's a different scenario where the app crashes, repeat the same steps than the previous issue, but this time logged in in a browser application. After receiving the availabilityCallback stating that there's no internet connection the app crashes and the console reads the following:


12:31:34.779  id: 0   *** GameSparks SDK v1.2.6
12:31:34.780  id: 0   Creating externalSocket
12:31:34.792  id: 0   Not the right socket
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at flash.external::ExternalInterface$/_callIn()
	at Function/<anonymous>()
12:31:46.280  id: 0   Websocket Error 
12:31:46.295  id: 0   Not the right socket
12:31:46.347  id: 0   Not the right socket
12:31:46.428  id: 0   GSSocketExternal:abnormal close event. code: 1006  reason: 
12:31:46.784  id: 0   Not the right socket

 I've managed to (by checking the variables on the crash breakpoint) extract some extra info about the issue, even though I am not certain that it will be of any use, here it is:


<invoke name="OnClose_1473071622479_1" returntype="javascript"><arguments><object><property id="isTrusted"><true/></property><property id="wasClean"><false/></property><property id="code"><number>1006</number></property><property id="reason"><string></string></property><property id="stopPropagation"><null/></property><property id="stopImmediatePropagation"><null/></property><property id="preventDefault"><null/></property><property id="initEvent"><null/></property><property id="getPreventDefault"><null/></property><property id="type"><string>close</string></property><property id="target"><object><property id="instanceId"><string>1473071622479_1</string></property><property id="close"><null/></property><property id="send"><null/></property><property id="url"><string>wss://gsp-aeu000-se01.gamesparks.net/ws/297351E6vk8m</string></property><property id="readyState"><number>3</number></property><property id="bufferedAmount"><number>0</number></property><property id="onopen"><null/></property><property id="onerror"><null/></property><property id="onclose"><null/></property><property id="extensions"><string>permessage-deflate</string></property><property id="protocol"><string></string></property><property id="onmessage"><null/></property><property id="binaryType"><string>blob</string></property><property id="CONNECTING"><number>0</number></property><property id="OPEN"><number>1</number></property><property id="CLOSING"><number>2</number></property><property id="CLOSED"><number>3</number></property><property id="addEventListener"><null/></property><property id="removeEventListener"><null/></property><property id="dispatchEvent"><null/></property></object></property><property id="currentTarget"><object><property id="instanceId"><string>1473071622479_1</string></property><property id="close"><null/></property><property id="send"><null/></property><property id="url"><string>wss://gsp-aeu000-se01.gamesparks.net/ws/297351E6vk8m</string></property><property id="readyState"><number>3</number></property><property id="bufferedAmount"><number>0</number></property><property id="onopen"><null/></property><property id="onerror"><null/></property><property id="onclose"><null/></property><property id="extensions"><string>permessage-deflate</string></property><property id="protocol"><string></string></property><property id="onmessage"><null/></property><property id="binaryType"><string>blob</string></property><property id="CONNECTING"><number>0</number></property><property id="OPEN"><number>1</number></property><property id="CLOSING"><number>2</number></property><property id="CLOSED"><number>3</number></property><property id="addEventListener"><null/></property><property id="removeEventListener"><null/></property><property id="dispatchEvent"><null/></property></object></property><property id="eventPhase"><number>2</number></property><property id="bubbles"><false/></property><property id="cancelable"><false/></property><property id="defaultPrevented"><false/></property><property id="timeStamp"><number>1473071625557000</number></property><property id="originalTarget"><object><property id="instanceId"><string>1473071622479_1</string></property><property id="close"><null/></property><property id="send"><null/></property><property id="url"><string>wss://gsp-aeu000-se01.gamesparks.net/ws/297351E6vk8m</string></property><property id="readyState"><number>3</number></property><property id="bufferedAmount"><number>0</number></property><property id="onopen"><null/></property><property id="onerror"><null/></property><property id="onclose"><null/></property><property id="extensions"><string>permessage-deflate</string></property><property id="protocol"><string></string></property><property id="onmessage"><null/></property><property id="binaryType"><string>blob</string></property><property id="CONNECTING"><number>0</number></property><property id="OPEN"><number>1</number></property><property id="CLOSING"><number>2</number></property><property id="CLOSED"><number>3</number></property><property id="addEventListener"><null/></property><property id="removeEventListener"><null/></property><property id="dispatchEvent"><null/></property></object></property><property id="explicitOriginalTarget"><object><property id="instanceId"><string>1473071622479_1</string></property><property id="close"><null/></property><property id="send"><null/></property><property id="url"><string>wss://gsp-aeu000-se01.gamesparks.net/ws/297351E6vk8m</string></property><property id="readyState"><number>3</number></property><property id="bufferedAmount"><number>0</number></property><property id="onopen"><null/></property><property id="onerror"><null/></property><property id="onclose"><null/></property><property id="extensions"><string>permessage-deflate</string></property><property id="protocol"><string></string></property><property id="onmessage"><null/></property><property id="binaryType"><string>blob</string></property><property id="CONNECTING"><number>0</number></property><property id="OPEN"><number>1</number></property><property id="CLOSING"><number>2</number></property><property id="CLOSED"><number>3</number></property><property id="addEventListener"><null/></property><property id="removeEventListener"><null/></property><property id="dispatchEvent"><null/></property></object></property><property id="NONE"><number>0</number></property><property id="CAPTURING_PHASE"><number>1</number></property><property id="AT_TARGET"><number>2</number></property><property id="BUBBLING_PHASE"><number>3</number></property><property id="ALT_MASK"><number>1</number></property><property id="CONTROL_MASK"><number>2</number></property><property id="SHIFT_MASK"><number>4</number></property><property id="META_MASK"><number>8</number></property></object></arguments></invoke>

 Thanks for the support,

1 Comment

Solved via ticket, upgrading of SDK fixed the issue.


Liam

Login to post a comment