Author Topic: [URGENT] IL2CPP build crash on iOS with TNET  (Read 5046 times)

IZLogic

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 8
    • View Profile
    • IZLogic!
[URGENT] IL2CPP build crash on iOS with TNET
« on: March 02, 2015, 12:17:38 PM »
Hi Aren,
I updated a project from 4.5 to 4.6.3 due to 64bit architecture deployment required.
The project was working fine on 4.5 and 4.6.3 on 32bit architecture, but crashes when I deploy using IL2CPP. (similar thread: http://www.tasharen.com/forum/index.php?topic=12580.0)
I need a fix as soon as possible, please could you take a look on it and give us an ETA?
I'm on Unity 4.6.3 with Tnet 2.0.4.
Thanks.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: [URGENT] IL2CPP build crash on iOS with TNET
« Reply #1 on: March 03, 2015, 12:01:13 PM »
It's a unity bug, not an NGUI bug. Aren likely couldn't help you even if he had time to.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [URGENT] IL2CPP build crash on iOS with TNET
« Reply #2 on: March 03, 2015, 06:02:12 PM »
Yup, exactly. I can't fix Unity. You need to report a bug to them. IL2CPP is a brand-new beta feature.

IZLogic

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 8
    • View Profile
    • IZLogic!
Re: [URGENT] IL2CPP build crash on iOS with TNET
« Reply #3 on: March 04, 2015, 06:29:34 AM »
Can you send my the Unity Bug number? I vote for this or I will spam the Unity customer care for a solution.
I'm really worried, this is a huge problem, I do all the networking stuff over TNET.
I cannot redo all the work with a different framework and my client wants a 64bit working version very soon...


IZLogic

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 8
    • View Profile
    • IZLogic!
Re: [URGENT] IL2CPP build crash on iOS with TNET
« Reply #4 on: March 25, 2015, 05:07:19 AM »
Hi Aren,
Unity 4.6.3p4 is out from yesterday with a lot of fixes on Sockets and threading for IL2CPP (http://unity3d.com/unity/qa/patch-releases ), but TNET is still crashing on devices when trying to open the socket.
Any advice on this?
My client are pushing me for release the game and I'm start feeling the heat... could you please take a look on this?
Opening a Unity bug with your analysis on the problem should help.
Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [URGENT] IL2CPP build crash on iOS with TNET
« Reply #5 on: March 25, 2015, 12:05:15 PM »
I suggest opening a bug report sooner rather than later. If it crashes on opening a socket then just create a simple repro case without TNet, where you will do the same thing inside (open a socket). Just paste the code TNet is using into a stand-alone script. That will make it easier for Unity guys to fix the issue.

Opening a bug with my analysis may be counter-productive. Unity has been snobbing me ever since I left the company.

creativitysquare

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 2
  • Posts: 41
    • View Profile
Re: [URGENT] IL2CPP build crash on iOS with TNET
« Reply #6 on: June 11, 2015, 04:37:12 PM »
i had a similar issue then updated tnet and now i get from time to time these warnings : no valid socket
      else
      {
#if UNITY_EDITOR
         UnityEngine.Debug.LogWarning("No valid socket");
#endif
         buffer.Recycle();
      }
   }

before updating it was crushing on il2cpp deployment
any idea?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [URGENT] IL2CPP build crash on iOS with TNET
« Reply #7 on: June 12, 2015, 08:12:37 AM »
That warning only shows up if the socket is null, or it's not connected.