Author Topic: Compiled Client (PC or WebPlayer) Crash On Application Quit  (Read 1884 times)

Yukichu

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 8
  • Posts: 101
    • View Profile
Compiled Client (PC or WebPlayer) Crash On Application Quit
« on: February 16, 2014, 12:08:48 AM »
Unity 4.3.4f1
NGUI 3.4.6 or thereabouts

Close the window for a webplayer or PC compiled player, and it crashes.  Webplayer doesn't tell me much in the error log, but the PC output_log.txt says:

NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Component:InternalGetGameObject ()
  at UnityEngine.Component.get_gameObject () [0x00000] in <filename unknown>:0
  at UIDrawCall.ClearAll () [0x0002c] in C:\repositories\daedalimperium\DaedalImperium\Assets\NGUI\Scripts\Internal\UIDrawCall.cs:664
  at UIDrawCall.ReleaseAll () [0x00000] in C:\repositories\daedalimperium\DaedalImperium\Assets\NGUI\Scripts\Internal\UIDrawCall.cs:676
  at UIPanel.OnDisable () [0x00062] in C:\repositories\daedalimperium\DaedalImperium\Assets\NGUI\Scripts\UI\UIPanel.cs:728
(Filename: C Line: 0)

I looked at that line in UIDrawCall.cs and it's already checking if the application is playing, so I have no idea.  I am closing the application by hitting the little X that closes like every window.  I've already read about how application.quit() sometimes fails (or used to), but I'm not trying to close the program via script...

Any insight would be great.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Compiled Client (PC or WebPlayer) Crash On Application Quit
« Reply #1 on: February 16, 2014, 02:53:50 AM »
You need to update to the latest version. This was already fixed.

Yukichu

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 8
  • Posts: 101
    • View Profile
Re: Compiled Client (PC or WebPlayer) Crash On Application Quit
« Reply #2 on: February 16, 2014, 02:17:53 PM »
I must've missed it.  Will update, sorry for not being at the latest version.  Probably should've done that before posting.

Just I have to manually change a bunch of stuff every time I update :P

Anyhow, thanks for letting me know, will do.