Author Topic: TNServerInstance.Stop() makes iPhone app crash?  (Read 2919 times)

Adriaan

  • Guest
TNServerInstance.Stop() makes iPhone app crash?
« on: May 26, 2013, 10:07:48 AM »
Hi,

After making a server on an iPhone and calling 'TNServerInstance.Stop()' there, the app just crashes. No warnings, nothing. Just a hang.

How do I debug this?

Adriaan

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNServerInstance.Stop() makes iPhone app crash?
« Reply #1 on: May 26, 2013, 12:33:42 PM »
So hang or crash? Hang means it's waiting for something -- possibly UPnP -- and crash means something went wrong.

I'm going to release 170 shortly that addresses a bunch of issues.

Adriaan

  • Guest
Re: TNServerInstance.Stop() makes iPhone app crash?
« Reply #2 on: May 26, 2013, 01:02:53 PM »
A crash - XCODE throws an error:

signal SIGUSR 1

which says nothing.

Adriaan

  • Guest
Re: TNServerInstance.Stop() makes iPhone app crash?
« Reply #3 on: May 26, 2013, 03:25:25 PM »
After playing with it, I found out that XCode wasn't clearing the cache / completely swiping the app, leaving traces of old code in the latest binary. Deleting the app / rebuilding the project from unity helped.

I can now safely say that trying to 'Disconnect()' when you are the server on the phone, will make the game crash. Something to fix, maybe?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNServerInstance.Stop() makes iPhone app crash?
« Reply #4 on: May 26, 2013, 06:47:34 PM »
I just pushed 1.7.0, see if that resolves your issue.

ddeaco

  • Guest
Re: TNServerInstance.Stop() makes iPhone app crash?
« Reply #5 on: August 15, 2013, 06:15:24 AM »
I can confirm this still crashes using 1.7.3 - Unity 4.2 and iOS 6.0.1