Client crashing / stuck on connection lost

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

User avatar
Lapo
Site Admin
Posts: 21602
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Client crashing / stuck on connection lost

Postby Lapo » 08 Apr 2013, 12:46

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.
Lapo
--
gotoAndPlay()
...addicted to flash games
vkalpias
Posts: 56
Joined: 03 Oct 2011, 09:24

Re: Client crashing / stuck on connection lost

Postby vkalpias » 08 Apr 2013, 12:59

Yeah could be. Thanks :)
User avatar
Lapo
Site Admin
Posts: 21602
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Client crashing / stuck on connection lost

Postby Lapo » 12 Apr 2013, 14:44

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
Lapo

--

gotoAndPlay()

...addicted to flash games
vkalpias
Posts: 56
Joined: 03 Oct 2011, 09:24

Re: Client crashing / stuck on connection lost

Postby vkalpias » 12 Apr 2013, 18:15

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...
User avatar
Lapo
Site Admin
Posts: 21602
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Client crashing / stuck on connection lost

Postby Lapo » 12 Apr 2013, 18:44

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
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 21602
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Client crashing / stuck on connection lost

Postby Lapo » 13 Apr 2013, 07:44

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
Lapo

--

gotoAndPlay()

...addicted to flash games
vkalpias
Posts: 56
Joined: 03 Oct 2011, 09:24

Re: Client crashing / stuck on connection lost

Postby vkalpias » 13 Apr 2013, 07:57

Alright thank you :)
User avatar
Lapo
Site Admin
Posts: 21602
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Client crashing / stuck on connection lost

Postby Lapo » 19 Apr 2013, 10:12

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:
viewtopic.php?p=68154#p68154

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Evil-Dog
Posts: 86
Joined: 08 Mar 2011, 17:59
Contact:

Re: Client crashing / stuck on connection lost

Postby Evil-Dog » 13 May 2014, 21:16

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 :)
User avatar
Lapo
Site Admin
Posts: 21602
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Client crashing / stuck on connection lost

Postby Lapo » 14 May 2014, 11:28

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
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Evil-Dog
Posts: 86
Joined: 08 Mar 2011, 17:59
Contact:

Re: Client crashing / stuck on connection lost

Postby Evil-Dog » 14 May 2014, 15:50

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.

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 5 guests