Author Topic: Unity 5.2 crash (focus/save)  (Read 18651 times)

roady

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 30
    • View Profile
Unity 5.2 crash (focus/save)
« on: September 21, 2015, 01:36:39 PM »
I've updated Unity to 5.2. When opening my project (from 5.1.3p0) it crashes. Seems to be crashing if I select another app and then focus back to Unity. Also when press Play or build it crashes.

Don't know if its Unity or the NGUI plugin that creates the issue. I've also opened another project (with NGUI) that works fine. But when trying to figure out the logs it's NGUI everywhere.

Log file (11mb) https://dl.dropboxusercontent.com/u/27479515/forums/crashlog%20unity%205.2.txt

Last lines

  1. (Filename: Assets/NGUI/Scripts/Internal/NGUIText.cs Line: 130)
  2.  
  3. NullReferenceException: Object reference not set to an instance of an object
  4.   at NGUIText.Update (Boolean request) [0x000f6] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/Internal/NGUIText.cs:130
  5.   at NGUIText.Update () [0x00000] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/Internal/NGUIText.cs:92
  6.   at UILabel.UpdateNGUIText () [0x00315] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UILabel.cs:2046
  7.   at UILabel.ProcessText (Boolean legacyMode, Boolean full) [0x001c5] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UILabel.cs:1237
  8.   at UILabel.ProcessText () [0x00000] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UILabel.cs:1197
  9.   at UILabel.get_processedText () [0x0004c] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UILabel.cs:845
  10.   at UILabel.OnFill (.BetterList`1 verts, .BetterList`1 uvs, .BetterList`1 cols) [0x000a6] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UILabel.cs:1742
  11.   at UIWidget.UpdateGeometry (Int32 frame) [0x00081] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/Internal/UIWidget.cs:1461
  12.   at UIPanel.UpdateWidgets () [0x0023c] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UIPanel.cs:1596
  13.   at UIPanel.UpdateSelf () [0x0000c] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UIPanel.cs:1237
  14.   at UIPanel.LateUpdate () [0x00035] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UIPanel.cs:1198
  15.   at UIPanel.Refresh () [0x0001d] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UIPanel.cs:1711
  16.   at UILabel.OnFontChanged (UnityEngine.Font font) [0x000ce] in /Volumes/Work/Unity/xRockets/Assets/NGUI/Scripts/UI/UILabel.cs:1001
  17.   at UnityEngine.Font.InvokeTextureRebuilt_Internal (UnityEngine.Font font) [0x00000] in <filename unknown>:0
  18.  
  19. (Filename: Assets/NGUI/Scripts/Internal/NGUIText.cs Line: 130)
  20.  
  21. Receiving unhandled NULL exception
  22. Launching bug reporter
  23. Obtained 18 stack frames.
  24. #0  0x00000000000100 in (Unknown)
  25. #1  0x0000010141d1a7 in AssetInterface::WriteRevertAssets(std::set<UnityGUID, std::less<UnityGUID>, std::allocator<UnityGUID> > const&, std::set<UnityGUID, std::less<UnityGUID>, std::allocator<UnityGUID> > const&)
  26. #2  0x000001019a28df in Application::SaveScene(std::string, bool)
  27. #3  0x000001019a2dcb in Application::FileMenuSave(bool)
  28. #4  0x007fff95a31cd7 in _os_activity_initiate
  29. #5  0x007fff8984feb1 in -[NSApplication sendAction:to:from:]
  30. #6  0x007fff8984fc4e in -[NSMenuItem _corePerformAction]
  31. #7  0x007fff8984f97c in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:]
  32. #8  0x007fff95a31cd7 in _os_activity_initiate
  33. #9  0x007fff8984e8ad in -[NSMenu performKeyEquivalent:]
  34. #10 0x007fff8984da6f in -[NSApplication _handleKeyEquivalent:]
  35. #11 0x007fff8975883a in -[NSApplication sendEvent:]
  36. #12 0x00000101be75b1 in -[EditorApplicationPrincipalClass sendEvent:]
  37. #13 0x007fff89681b68 in -[NSApplication run]
  38. #14 0x007fff895fe244 in NSApplicationMain
  39. #15 0x00000101be7c96 in EditorMain(int, char const**)
  40. #16 0x00000101be84e9 in main
  41. #17 0x00000100002264 in start
  42. Launching external process: /Applications/Unity 5.2/Unity.app/Contents/BugReporter/Unity Bug Reporter.app/Contents/MacOS/unity.bugreporter.exe
  43.  

betodeoliveira

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #1 on: September 22, 2015, 03:15:04 PM »
I'm facing the same problem! I thought that was a Unity problem, but every time that i make changes on any NGUI component and try to save the project my Unity crash.

nikhil

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #2 on: September 23, 2015, 07:50:16 AM »
Facing similar problem.

First I upgraded from Unity 5.0 to Unity 5.2 (with NGUI 3.5.3), everything was working fine.

Then I upgraded from NGUI 3.5.3 to NGUI 3.9.2 (with Unity 5.2), it crashes whenever I save any scene.

Please help (Critical)!  :(

Thanks

shaunpeoples

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #3 on: September 23, 2015, 10:03:35 AM »
Same here.

betodeoliveira

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #4 on: September 23, 2015, 01:36:31 PM »
Guys,

Downgrade your unity to 5.1.3p3. But be aware that this version has a bug on iOS that when trying to load another scene the game will crash.

Let's wait for an answer from NGUI, because Unity has a new version 5.2.1 and my Unity sill crashes when I try to save the scene.

YuliyF

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 11
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #5 on: September 24, 2015, 04:43:59 PM »
me too/

KingSlizzard

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #6 on: September 24, 2015, 10:02:03 PM »
me too

Nightreaver

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 3
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #7 on: September 25, 2015, 08:44:34 PM »
Soo...

Regarding that save-bug


I was able to save my scene once I removed all "notified" scripts.
So I delete many parts of my UI and left just some... over and over... I broke it down to a single button with an "On Notify" script and I was able to save again once I remove the link!
Tried with some more Events, an still was able to save once I removed all the notified-scripts.

Someone else should test this.

Hope we'll see a fix soo!

Cheers

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #8 on: September 26, 2015, 04:54:38 PM »
I'll put up an update 3.9.3 shortly that should address this already. If not, let me know and I'll have another look.

Nightreaver

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 3
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #9 on: September 26, 2015, 08:44:30 PM »
Imported the lastest version - the save bug (with 'Notify'-Scripts) still exists  :'(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #10 on: September 26, 2015, 08:56:46 PM »
Alright, steps to repro?

MBoffin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #11 on: September 27, 2015, 08:41:09 PM »
Also getting near-constant crashes with the new NGUI. :( I can't even figure out how to repro. Basically, for me, it's "do anything with NGUI" and 80% of the time it will result in a crash. Some of the things I can specifically remember that caused a crash:
  • Add a sprite to an atlas
  • Change the depth of a sprite
  • Hit Play
  • Add a tiled border to a sprite
  • Change the Top Anchor to something else
There seems to be no rhyme or reason to when it will it crash. It's definitely NGUI, though. Every single time it's when I'm doing something with NGUI. One time, when I re-loaded Unity after a crash, my whole atlas' spritesheet was somehow corrupted so I had to find and update every single sprite in the atlas. Total pain.

roady

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #12 on: September 28, 2015, 03:04:48 AM »
Hard to reproduce from scratch. Created a new scene and added some stuff, no issue. Reopened my main scene and crash instantly. Been building on the project for over 1 year so a lot of plugin updates issue? Tried to reimport all assets as well.

When opening my scene the output shows a lot of errors. Pressing clear will remove them.

  1. ArgumentOutOfRangeException: Argument is out of range.
  2. Parameter name: index
  3. System.Collections.Generic.List`1[UIPanel].get_Item (Int32 index) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:633)
  4. UILabel.OnFontChanged (UnityEngine.Font font) (at Assets/NGUI/Scripts/UI/UILabel.cs:985)
  5. UnityEngine.Font.InvokeTextureRebuilt_Internal (UnityEngine.Font font)
  6. UnityEngine.Font:RequestCharactersInTexture(String, Int32, FontStyle)
  7. NGUIText:Update(Boolean) (at Assets/NGUI/Scripts/Internal/NGUIText.cs:130)
  8. NGUIText:Update() (at Assets/NGUI/Scripts/Internal/NGUIText.cs:92)
  9. UILabel:UpdateNGUIText() (at Assets/NGUI/Scripts/UI/UILabel.cs:2000)
  10. UILabel:OnFill(BetterList`1, BetterList`1, BetterList`1) (at Assets/NGUI/Scripts/UI/UILabel.cs:1708)
  11. UIWidget:UpdateGeometry(Int32) (at Assets/NGUI/Scripts/Internal/UIWidget.cs:1461)
  12. UIPanel:UpdateWidgets() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1601)
  13. UIPanel:UpdateSelf() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1242)
  14. UIPanel:LateUpdate() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1203)
  15. UIPanel:Refresh() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1716)
  16. UILabel:OnFontChanged(Font) (at Assets/NGUI/Scripts/UI/UILabel.cs:986)
  17. UnityEngine.Font:RequestCharactersInTexture(String, Int32, FontStyle)
  18. NGUIText:Update(Boolean) (at Assets/NGUI/Scripts/Internal/NGUIText.cs:130)
  19. NGUIText:Update() (at Assets/NGUI/Scripts/Internal/NGUIText.cs:92)
  20. UILabel:UpdateNGUIText() (at Assets/NGUI/Scripts/UI/UILabel.cs:2000)
  21. UILabel:OnFill(BetterList`1, BetterList`1, BetterList`1) (at Assets/NGUI/Scripts/UI/UILabel.cs:1708)
  22. UIWidget:UpdateGeometry(Int32) (at Assets/NGUI/Scripts/Internal/UIWidget.cs:1461)
  23. UIPanel:UpdateWidgets() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1601)
  24. UIPanel:UpdateSelf() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1242)
  25. UIPanel:LateUpdate() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1203)
  26. UIPanel:Refresh() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1716)
  27. UILabel:OnFontChanged(Font) (at Assets/NGUI/Scripts/UI/UILabel.cs:986)
  28. UnityEngine.Font:RequestCharactersInTexture(String, Int32, FontStyle)
  29. NGUIText:Update(Boolean) (at Assets/NGUI/Scripts/Internal/NGUIText.cs:130)
  30. NGUIText:Update() (at Assets/NGUI/Scripts/Internal/NGUIText.cs:92)
  31. UILabel:UpdateNGUIText() (at Assets/NGUI/Scripts/UI/UILabel.cs:2000)
  32. UILabel:OnFill(BetterList`1, BetterList`1, BetterList`1) (at Assets/NGUI/Scripts/UI/UILabel.cs:1708)
  33. UIWidget:UpdateGeometry(Int32) (at Assets/NGUI/Scripts/Internal/UIWidget.cs:1461)
  34. UIPanel:UpdateWidgets() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1601)
  35. UIPanel:UpdateSelf() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1242)
  36. UIPanel:LateUpdate() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1203)
  37. UIPanel:Refresh() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1716)
  38. UILabel:OnFontChanged(Font) (at Assets/NGUI/Scripts/UI/UILabel.cs:986)
  39. UnityEngine.Font:RequestCharactersInTexture(String, Int32, FontStyle)
  40. NGUIText:Update(Boolean) (at Assets/NGUI/Scripts/Internal/NGUIText.cs:130)
  41. NGUIText:Update() (at Assets/NGUI/Scripts/Internal/NGUIText.cs:92)
  42. UILabel:UpdateNGUIText() (at Assets/NGUI/Scripts/UI/UILabel.cs:2000)
  43. UILabel:OnFill(BetterList`1, BetterList`1, BetterList`1) (at Assets/NGUI/Scripts/UI/UILabel.cs:1708)
  44. UIWidget:UpdateGeometry(Int32) (at Assets/NGUI/Scripts/Internal/UIWidget.cs:1461)
  45. UIPanel:UpdateWidgets() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1601)
  46. UIPanel:UpdateSelf() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1242)
  47. UIPanel:LateUpdate() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1203)
  48. UIPanel:Refresh() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1716)
  49. UILabel:OnFontChanged(Font) (at Assets/NGUI/Scripts/UI/UILabel.cs:986)
  50. UnityEngine.Font:RequestCharactersInTexture(String, Int32, FontStyle)
  51. NGUIText:Update(Boolean) (at Assets/NGUI/Scripts/Internal/NGUIText.cs:130)
  52. NGUIText:Update() (at Assets/NGUI/Scripts/Internal/NGUIText.cs:92)
  53. UILabel:UpdateNGUIText() (at Assets/NGUI/Scripts/UI/UILabel.cs:2000)
  54. UILabel:ProcessText(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UILabel.cs:1216)
  55. UILabel:ProcessText() (at Assets/NGUI/Scripts/UI/UILabel.cs:1177)
  56. UILabel:get_processedText() (at Assets/NGUI/Scripts/UI/UILabel.cs:832)
  57. UILabel:OnFill(BetterList`1, BetterList`1, BetterList`1) (at Assets/NGUI/Scripts/UI/UILabel.cs:1705)
  58. UIWidget:UpdateGeometry(Int32) (at Assets/NGUI/Scripts/Internal/UIWidget.cs:1461)
  59. UIPanel:UpdateWidgets() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1601)
  60. UIPanel:UpdateSelf() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1242)
  61. UIPanel:LateUpdate() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1203)
  62. UIPanel:Refresh() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1716)
  63. UILabel:OnFontChanged(Font) (at Assets/NGUI/Scripts/UI/UILabel.cs:986)
  64. UnityEngine.Font:RequestCharactersInTexture(String, Int32, FontStyle)
  65. NGUIText:Update(Boolean) (at Assets/NGUI/Scripts/Internal/NGUIText.cs:130)
  66. NGUIText:Update() (at Assets/NGUI/Scripts/Internal/NGUIText.cs:92)
  67. UILabel:UpdateNGUIText() (at Assets/NGUI/Scripts/UI/UILabel.cs:2000)
  68. UILabel:OnFill(BetterList`1, BetterList`1, BetterList`1) (at Assets/NGUI/Scripts/UI/UILabel.cs:1708)
  69. UIWidget:UpdateGeometry(Int32) (at Assets/NGUI/Scripts/Internal/UIWidget.cs:1461)
  70. UIPanel:UpdateWidgets() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1601)
  71. UIPanel:UpdateSelf() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1242)
  72. UIPanel:LateUpdate() (at Assets/NGUI/Scripts/UI/UIPanel.cs:1203)
  73.  

Also updated to latest 3.9.3 and Unity 5.2.1
The error report: https://dl.dropboxusercontent.com/u/27479515/forums/nguicrash.txt

YuliyF

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 11
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #13 on: September 28, 2015, 09:19:43 AM »
In my case, I have crash(when trying to save) if UISprite have anchors to UIRoot( any style of UIRoot and any type of Anchor)
--
NGUI 3.9.3 + Unity 5.2.1p1


p.s.: crashes if any NGUI item have anchors on UI Root

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 5.2 crash (focus/save)
« Reply #14 on: September 28, 2015, 11:40:49 AM »
So the common factors are Unity 5.2.1 + dynamic fonts? Roady's error log points to the dynamic font being rebuilt.