Page 2 of 2

Re: Client crashing / stuck on connection lost

Posted: 08 Apr 2013, 12:46
by Lapo
Thanks, just take the simple Connector or the Lobby and let us know the steps to get there.
Maybe it's a platform specific issue? Over here we're using mainly Macs.

Re: Client crashing / stuck on connection lost

Posted: 08 Apr 2013, 12:59
by vkalpias
Yeah could be. Thanks :)

Re: Client crashing / stuck on connection lost

Posted: 12 Apr 2013, 14:44
by Lapo
I have done some more tests. It very much look like an Udp issue with Windows. Try closing the app when it is running. It causes the same problem. Can you confirm it? I tested under Win7 32 bit.

thanks

Re: Client crashing / stuck on connection lost

Posted: 12 Apr 2013, 18:15
by vkalpias
Hi there,

Closing the app while its running does not cause an issue for us, as we do it all the time. But since you had a problem I guess there really is something there...

Re: Client crashing / stuck on connection lost

Posted: 12 Apr 2013, 18:44
by Lapo
Yes I think so :(
Under MacOS X there is no problem whatsoever. I will also test under Linux just to see what happens there.

Thanks

Re: Client crashing / stuck on connection lost

Posted: 13 Apr 2013, 07:44
by Lapo
UPDATE: Tested under Linux Ubuntu 12.04 and didn't find any issues, so it's definitely a Unity problem with their Windows runtime.
I will post a bug report next week.

Thanks

Re: Client crashing / stuck on connection lost

Posted: 13 Apr 2013, 07:57
by vkalpias
Alright thank you :)

Re: Client crashing / stuck on connection lost

Posted: 19 Apr 2013, 10:12
by Lapo
UPDATE: There is another discussion similar to this one that was started recently. Similar client crash on exit, which shows up in some versions of Windows while it works perfectly on MacOSX.

Maybe there is a very simple workaround involving the use of the OnApplicationQuit() method.
Please take a look here:
http://forums.smartfoxserver.com/viewto ... 154#p68154

Thanks

Re: Client crashing / stuck on connection lost

Posted: 13 May 2014, 21:16
by Evil-Dog
Sadly, OnApplicationQuit isn't called in editor mode. But that does help in standalone.
Any workaround for the editor since this last discussion happen?
I'll just be mindful to logout in the game before stopping the game in the editor but a workaround would be neat :)

Re: Client crashing / stuck on connection lost

Posted: 14 May 2014, 11:28
by Lapo
I don't think there's any possible workaround. It depends on the editor dispatching the event.
A more technical explanation is provided in the Unity forum, here:
http://forum.unity3d.com/threads/113133 ... osn-t-work

cheers

Re: Client crashing / stuck on connection lost

Posted: 14 May 2014, 15:50
by Evil-Dog
Yeah seems pretty inevitable, if the app is killed, the app is killed, can't do much about it.
Someone in that thread mentions OnDestroy but I doubt that'll work with a latent network signal.
Thanks.