Unity crash problem

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

Moderators: Lapo, Bax

ali.00128
Posts: 4
Joined: 29 Sep 2012, 10:30

Unity crash problem

Postby ali.00128 » 14 Dec 2012, 20:48

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

Re: Unity crash problem

Postby Lapo » 19 Dec 2012, 20:26

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
Lapo
--
gotoAndPlay()
...addicted to flash games
ali.00128
Posts: 4
Joined: 29 Sep 2012, 10:30

Re: Unity crash problem

Postby ali.00128 » 20 Dec 2012, 07:16

Yes, it's 4th version. Though as far as I remember it had the same problem even before upgrading to Unity v4.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Re: Unity crash problem

Postby ThomasLund » 29 Dec 2012, 11:58

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
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
User avatar
nekokiller
Posts: 24
Joined: 23 Oct 2012, 10:13

Re: Unity crash problem

Postby nekokiller » 05 Feb 2013, 02:21

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 ... )
User avatar
nekokiller
Posts: 24
Joined: 23 Oct 2012, 10:13

Re: Unity crash problem

Postby nekokiller » 26 Feb 2013, 08:16

Is there anybody work on Unity crash problem ( when smart fox connect lost event happened ) ?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unity crash problem

Postby Lapo » 02 Mar 2013, 10:11

Yes, I have already replied. Please do not double post.
Thanks
Lapo

--

gotoAndPlay()

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

Re: Unity crash problem

Postby Lapo » 06 Mar 2013, 17:26

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.
Lapo

--

gotoAndPlay()

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

Re: Unity crash problem

Postby Lapo » 12 Mar 2013, 16:13

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
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 17 guests