Sign In Register

How can we help you today?

Start a new topic

GameSparks Hang up on Initialization in Unity3D

I noticed strange behaviour in my case. 

Everything is updated on my side in regards of code and setup.

When GS should initialize it prints out in console that it is connecting to API:

GS: Connecting to:wss://preview.gamesparks.net/ws/rest_of_url

 After that it just hangs up on that message, nothing more is printed in console so I intentionally de-focus Unity3D editor and click back to regain focus. After I do this, initialization proceed as normal. Eg it gets to state where it prints out:

GS: Available

I'm not sure what is causing this but intended to post it here in case anyone else having problems and trying to figure out what is going on. I could not trace what is causing this delay.

So in case anyone else have same problem just de-focus and re-focus Unity3D editor and it should continue.


(*) Even if I wait for couple of minutes without de-focussing editor window it won't proceed to message about "GS: Available"...


Cheers. 


3 people have this problem

NOTE: Downgrading back to 5.3.1 from most recent Unity version solved this partially. Most probably it is caused by Unity editor because latest version considered "final" marked with 'f' is real crap. You should avoid it. I'm talking 5.3.2p2 which is so much crap they issued patch day after or so..

Thanks for the update Peter!

We officially support full releases of Unity rather than each individual patch so there maybe some slight inconsistency when they release a patch.


Cheers,


Oisin

FYI:

Still happening in Unity 5.3.3f1.


Thanks for the workaround!  The un-focus/re-focus workaround still works.

note: the 'f1' builds are the latest public builds, not patches. Was running into the same problem with 5.3.3f1, upgrading to 5.3.4f1 now to see if it corrects the problem.

still hanging testing preview configuration in the editor in 5.3.4f1 - does the 'GS Connecting' call to wss://preview.gamesparks.net/ws/... and then hangs, no further responses.


Any ideas what is going on? I'm in Windows 10 if that makes a difference...

Here is a more detailed call stack of the hang:

(Filename: Assets/GameSparks/Platforms/PlatformBase.cs Line: 144)

GS: SEND:{"@class":".AuthenticatedConnectRequest","hmac":"*********************","os":"WP8","platform":"WindowsEditor","deviceId":"*********************","authToken":""}

UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)

UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])

UnityEngine.Logger:Log(LogType, Object)

UnityEngine.Debug:Log(Object)

GameSparks.Platforms.<DebugMsg>c__AnonStorey0:<>m__0() (at Assets\GameSparks\Platforms\PlatformBase.cs:144)

GameSparks.Platforms.PlatformBase:Update() (at Assets\GameSparks\Platforms\PlatformBase.cs:67)

 

(Filename: Assets/GameSparks/Platforms/PlatformBase.cs Line: 144)

GS: RECV:{"@class":".AuthenticatedConnectResponse","error":"VALIDATION FAILURE","requestId":"0"}

UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)

UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])

UnityEngine.Logger:Log(LogType, Object)

UnityEngine.Debug:Log(Object)

GameSparks.Platforms.<DebugMsg>c__AnonStorey0:<>m__0() (at Assets\GameSparks\Platforms\PlatformBase.cs:144)

GameSparks.Platforms.PlatformBase:Update() (at Assets\GameSparks\Platforms\PlatformBase.cs:67)

 

(Filename: Assets/GameSparks/Platforms/PlatformBase.cs Line: 144)

GS: VALIDATION FAILURE

UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)

UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])

UnityEngine.Logger:Log(LogType, Object)

UnityEngine.Debug:Log(Object)

GameSparks.Platforms.<DebugMsg>c__AnonStorey0:<>m__0() (at Assets\GameSparks\Platforms\PlatformBase.cs:144)

GameSparks.Platforms.PlatformBase:Update() (at Assets\GameSparks\Platforms\PlatformBase.cs:67)

 

Any ideas?

Hi Mike,


Can you let us know which version of the Unity SDK you are using ? How often have you noticed this behavior ?


Thanks,

Liam

Hey there - this is a brand-new empty project just created in Unity 5.3.4f1. The SDK version is the latest (just downloaded it today) Gamesparks_Unity_5.3.4.167.unitypackage


Having said that I just deleted the whole package and did a re-import and now things seem to be connecting fine. Not sure what happened there. Might have been because I originally imported it with 5.3.3 and then upgraded to 5.3.4 - something went screwy perhaps in the update.


Thanx!




We also experience this from time to time. Mostly it works again after a couple of minutes.

Hi Guys,


This issue has been addressed in our latest Unity SDK which you can find here. Try it out and let me know how you get on.


Thanks,

Liam

Hi,


I'm using the latest SDK and the issue still happens sometimes.

I can confirm that loosing then regaining focus does the job, it's still annoying tho.

Hey Benjamin,

Are you using 5.3.5.171?

Sean

 

Hi,


I'm using 5.3.4.167, when I look at the download page I can only download 5.3.3.171

How do I get 5.3.5.171 ?


I think that tracking the different sdk releases could be improved.

The most recent SDK is always available in the SDKs section of the docs website.
https://docs.gamesparks.net/sdk/unity3d-sdk

 

Login to post a comment