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.
Unity crash problem
Re: Unity crash problem
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
Is it version 4?
thanks
Re: Unity crash problem
Yes, it's 4th version. Though as far as I remember it had the same problem even before upgrading to Unity v4.
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Re: Unity crash problem
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
To be released very soon.
/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund
- nekokiller
- Posts: 24
- Joined: 23 Oct 2012, 10:13
Re: Unity crash problem
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 ... )
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 ... )
- nekokiller
- Posts: 24
- Joined: 23 Oct 2012, 10:13
Re: Unity crash problem
Is there anybody work on Unity crash problem ( when smart fox connect lost event happened ) ?
Re: Unity crash problem
Yes, I have already replied. Please do not double post.
Thanks
Thanks
Re: Unity crash problem
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.
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
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
See here:
viewtopic.php?f=20&t=15811
Cheers
Who is online
Users browsing this forum: Majestic-12 [Bot] and 42 guests