Page 1 of 1

Unity crash problem

Posted: 14 Dec 2012, 20:48
by ali.00128
I looked all over the forum and still I don't have a solution for Smartfox crash problem.

1. Unity editor becomes unresponsive if you change even as much as a space in code while the game is running, or even Paused. I have to Stop the game, change the code, let it finish compiling and then Start the game, otherwise I wind up terminating the Unity process through Task manager.

2. OnConnectionLost, crashes the editor and the compiled version of the game. Again if you get an connectionLost nothing happens until you try to close the application, then it becomes unresponsive as soon as you try to close the application.

Also I am using the SmartFoxConnection class. So it unregisters all the event listeners on application quit.

Re: Unity crash problem

Posted: 19 Dec 2012, 20:26
by Lapo
There have been several reports of Unit crashes. Unfortunately it has a lot to do with the Unity Editor, in any case what version are you using?
Is it version 4?

thanks

Re: Unity crash problem

Posted: 20 Dec 2012, 07:16
by ali.00128
Yes, it's 4th version. Though as far as I remember it had the same problem even before upgrading to Unity v4.

Re: Unity crash problem

Posted: 29 Dec 2012, 11:58
by ThomasLund
We reproduced this using the released dll - we are running the SVN version and it was fixed there already.

To be released very soon.

/Thomas

Re: Unity crash problem

Posted: 05 Feb 2013, 02:21
by nekokiller
ali.00128:

When connection lost event happened, check the IsConnected flag of smartfox first

If IsConnected flag is true, that means smartfox got problem..

Then do RemoveAllEventListeners(), set smartfox to null reference.

Next, do new SmartFox(), redo AddEventListener ... ( I wrote a init() function which do AddEventListener ... )

This way can avoid Unity crash ( iOS crash ... )

Re: Unity crash problem

Posted: 26 Feb 2013, 08:16
by nekokiller
Is there anybody work on Unity crash problem ( when smart fox connect lost event happened ) ?

Re: Unity crash problem

Posted: 02 Mar 2013, 10:11
by Lapo
Yes, I have already replied. Please do not double post.
Thanks

Re: Unity crash problem

Posted: 06 Mar 2013, 17:26
by Lapo
UPDATE:
We have a preview release of the Unity API that fixes several issues as discussed in this forums.
Please make sure to download the DLL and try it in your project.

Please let us know if it fixes your problems.

Re: Unity crash problem

Posted: 12 Mar 2013, 16:13
by Lapo
We have now release version 1.1.0 which adds several other optimizations in terms of thread and resource management.

See here:
viewtopic.php?f=20&t=15811

Cheers