Author Topic: Unity crashing when using a NGUI scroll bar.  (Read 5833 times)

Erbacher

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 17
    • View Profile
Unity crashing when using a NGUI scroll bar.
« on: January 07, 2014, 04:52:31 PM »
Hi guys,

I have ran into a problem where Unity will crash when I am trying to use my scroll bar in the game view.

In my scene I have a Scroll Bar which is attached to a ScrollView via the UIDraggable Panel component.
If I drag my mouse on the ScrollView, everything works as expected and the Scroll Bar moves normally as well. However as soon as I click on the Scroll Bar itself, the Unity program completely crashes to desktop.

Is this a common issue people have ran into before?

Please see the stacktrace below:

  1. (0x0BC210C6) c:\buildagent\work\de0bdf8cacffc05\eglib\src\goutput.c (159 + 0x2): g_logv + 0x6f
  2. (0x0BC210E7) c:\buildagent\work\de0bdf8cacffc05\eglib\src\goutput.c (169 + 0x12): g_log + 0x15
  3. (0x0BD2796B) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (402 + 0x1b): rgctx_template_set_other_slot + 0xe5
  4. (0x0BD280B2) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (849 + 0x0): fill_in_rgctx_template_slot + 0x53
  5. (0x0BD28185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  6. (0x0BD28185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  7. (0x0BD28185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  8. (0x0BD28185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  9. (0x0BD28185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  10. (0x0BD28185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  11. (0x0BD28185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  12. (0x0BD28228) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (912 + 0x12): register_other_info + 0x8e
  13. (0x0BD2835D) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (977 + 0xf): lookup_or_register_other_info + 0xce
  14. (0x0BD28444) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (1020 + 0x12): mono_method_lookup_or_register_other_info + 0x8e
  15. (0x0BD0C664) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (2816 + 0x1b): mono_resolve_patch_target + 0x4c6
  16. (0x0BD24F08) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini-x86.c (4428 + 0x0): mono_arch_patch_code + 0x3b
  17. (0x0BD0E162) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (3249 + 0x0): mono_codegen + 0x2c8
  18. (0x0BD0ED16) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (3992 + 0x0): mini_method_compile + 0xb4a
  19. (0x0BD0F4DE) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4318 + 0x10): mono_jit_compile_method_inner + 0x1d8
  20. (0x0BD0FA3B) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4530 + 0xf): mono_jit_compile_method_with_opt + 0x134
  21. (0x0BD0FAA8) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4555 + 0x12): mono_jit_compile_method + 0x1b
  22. (0x0BD0976A) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini-trampolines.c (477 + 0x6): mono_magic_trampoline + 0x580
  23. (0x0C070066) ((module-name not available)): (filename not available): (function-name not available) + 0x0
  24. (0x1ED0D322) (Mono JIT code): (filename not available):  UIScrollBar:OnPressForeground (UnityEngine.GameObject,bool) + 0x8a (1ED0D298 1ED0D42C) [0BEF6BD0 - Unity Child Domain] + 0x0
  25. (0x1ED0D27B) (Mono JIT code): (filename not available):  UIEventListener:OnPress (bool) + 0x5b (1ED0D220 1ED0D292) [0BEF6BD0 - Unity Child Domain] + 0x0
  26. (0x1ED05FC8) (Mono JIT code): (filename not available):  (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___sbyte (object,intptr,intptr,intptr) + 0x98 (1ED05F30 1ED06093) [0BEF6BD0 - Unity Child Domain] + 0x0
  27. (0x0BD0FCF6) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4889 + 0xc): mono_jit_runtime_invoke + 0x214
  28. (0x0BC7D603) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\object.c (2618 + 0x10): mono_runtime_invoke + 0x51
  29. (0x0081EAD5) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monoutility.h (499 + 0x10): mono_runtime_invoke_profiled + 0x95
  30. (0x00820C89) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monobehaviour.cpp (927 + 0x16): MonoBehaviour::InvokeMethodOrCoroutineChecked + 0x159
  31. (0x00820FA9) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monobehaviour.cpp (955 + 0x0): MonoBehaviour::InvokeMethodOrCoroutineChecked + 0x99
  32. (0x0083865F) c:\buildagent\work\cac08d8a5e25d4cb\runtime\scripting\scriptingutility.cpp (922 + 0x0): SendMonoMessage + 0xbf
  33. (0x008386E8) c:\buildagent\work\cac08d8a5e25d4cb\runtime\scripting\scriptingutility.cpp (954 + 0x1a): SendMonoMessage + 0x48
  34. (0x00ABE4C1) c:\buildagent\work\cac08d8a5e25d4cb\runtime\exportgenerated\editor\unityenginegameobject.cpp (365 + 0x2e): GameObject_CUSTOM_SendMessage + 0x71
  35. (0x1ED05E70) (Mono JIT code): (filename not available):  (wrapper managed-to-native) UnityEngine.GameObject:SendMessage (string,object,UnityEngine.SendMessageOptions) + 0x90 (1ED05DE0 1ED05EC0) [0BEF6BD0 - Unity Child Domain] + 0x0
  36. (0x1ECBD72D) (Mono JIT code): (filename not available):  UICamera:Notify (UnityEngine.GameObject,string,object) + 0x5d (1ECBD6D0 1ECBD7C7) [0BEF6BD0 - Unity Child Domain] + 0x0
  37. (0x1DD3F640) (Mono JIT code): (filename not available):  UICamera:ProcessTouch (bool,bool) + 0x378 (1DD3F2C8 1DD40149) [0BEF6BD0 - Unity Child Domain] + 0x0
  38. (0x1DD3EF04) (Mono JIT code): (filename not available):  UICamera:ProcessMouse () + 0xa9c (1DD3E468 1DD3F0E3) [0BEF6BD0 - Unity Child Domain] + 0x0
  39. (0x1DD3DEAD) (Mono JIT code): (filename not available):  UICamera:Update () + 0xbd (1DD3DDF0 1DD3E3E0) [0BEF6BD0 - Unity Child Domain] + 0x0
  40. (0x177CBE1F) (Mono JIT code): (filename not available):  (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0x8f (177CBD90 177CBEEA) [0BEF6BD0 - Unity Child Domain] + 0x0
  41. (0x0BD0FCF6) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4889 + 0xc): mono_jit_runtime_invoke + 0x214
  42. (0x0BC7D603) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\object.c (2618 + 0x10): mono_runtime_invoke + 0x51
  43. (0x00835828) c:\buildagent\work\cac08d8a5e25d4cb\runtime\scripting\backend\mono\scriptingbackendapi_mono.cpp (176 + 0x1a): scripting_method_invoke + 0xb8
  44. (0x0083541A) c:\buildagent\work\cac08d8a5e25d4cb\runtime\scripting\backend\scriptinginvocationnoargs.cpp (94 + 0x15): ScriptingInvocationNoArgs::Invoke + 0x6a
  45. (0x00834DF5) c:\buildagent\work\cac08d8a5e25d4cb\runtime\scripting\backend\scriptinginvocation.cpp (94 + 0x0): ScriptingInvocation::Invoke + 0x15
  46. (0x0082177C) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monobehaviour.cpp (533 + 0xb): MonoBehaviour::CallMethodIfAvailable + 0xcc
  47. (0x00821AA9) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monobehaviour.cpp (615 + 0xb): MonoBehaviour::CallUpdateMethod + 0xf9
  48. (0x00821AC7) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monobehaviour.cpp (621 + 0x0): MonoBehaviour::Update + 0x7
  49. (0x007B56D2) c:\buildagent\work\cac08d8a5e25d4cb\runtime\misc\player.cpp (1854 + 0x0): PlayerLoop + 0x492
  50. (0x00E12466) c:\buildagent\work\cac08d8a5e25d4cb\editor\src\application.cpp (2236 + 0xb): Application::UpdateScene + 0x216
  51. (0x00E16147) c:\buildagent\work\cac08d8a5e25d4cb\editor\src\application.cpp (2163 + 0x0): Application::UpdateSceneIfNeeded + 0x37
  52. (0x00EA2D62) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\wineditormain.cpp (336 + 0x0): MainMessageLoop + 0x1c2
  53. (0x00EA3C6C) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\wineditormain.cpp (851 + 0x0): WinMain + 0xdfc
  54. (0x00FB1E7F) f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (275 + 0x1c): __tmainCRTStartup + 0x11a
  55. (0x76B7336A) (kernel32): (filename not available): BaseThreadInitThunk + 0x12
  56. (0x77D49F72) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x63
  57. (0x77D49F45) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x36

Thanks :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #1 on: January 08, 2014, 01:03:26 PM »
UIDraggablePanel? That script doesn't exist anymore. What version of NGUI are you using?

Erbacher

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #2 on: January 08, 2014, 01:59:57 PM »
Hi Aren,

I am currently using 3.0.4. I'm guessing it will be worth updating to the latest version then?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #3 on: January 08, 2014, 02:13:19 PM »
Quite so. I kindly ask that you always update to the latest version before posting about issues.

Erbacher

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #4 on: January 08, 2014, 03:01:58 PM »
Ok noted. I will install the latest version and update this post if the issue still occurs.

Erbacher

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #5 on: January 09, 2014, 04:51:03 PM »
Hi again guys,

I finally got around to updating NGUI.

First off I can now see that updating NGUI has stopped Unity crashing as soon as I click on the scroll bar while in the game view.

However I am now seeing a crash when I click on different Game Objects in the Hierarchy. This is not 100% but does happen often, I have seen it crash when clicking on a wide selection of different Game Objects.

I think the stacktrace is the same, but here is the latest one just incase:
  1. ========== OUTPUTING STACK TRACE ==================
  2.  
  3. (0x0AF610C6) c:\buildagent\work\de0bdf8cacffc05\eglib\src\goutput.c (159 + 0x2): g_logv + 0x6f
  4. (0x0AF610E7) c:\buildagent\work\de0bdf8cacffc05\eglib\src\goutput.c (169 + 0x12): g_log + 0x15
  5. (0x0B06796B) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (402 + 0x1b): rgctx_template_set_other_slot + 0xe5
  6. (0x0B0680B2) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (849 + 0x0): fill_in_rgctx_template_slot + 0x53
  7. (0x0B068185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  8. (0x0B068185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  9. (0x0B068185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  10. (0x0B068185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  11. (0x0B068185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  12. (0x0B068185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  13. (0x0B068185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  14. (0x0B068228) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (912 + 0x12): register_other_info + 0x8e
  15. (0x0B06835D) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (977 + 0xf): lookup_or_register_other_info + 0xce
  16. (0x0B068444) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (1020 + 0x12): mono_method_lookup_or_register_other_info + 0x8e
  17. (0x0B04C664) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (2816 + 0x1b): mono_resolve_patch_target + 0x4c6
  18. (0x0B064F08) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini-x86.c (4428 + 0x0): mono_arch_patch_code + 0x3b
  19. (0x0B04E162) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (3249 + 0x0): mono_codegen + 0x2c8
  20. (0x0B04ED16) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (3992 + 0x0): mini_method_compile + 0xb4a
  21. (0x0B04F4DE) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4318 + 0x10): mono_jit_compile_method_inner + 0x1d8
  22. (0x0B04FA3B) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4530 + 0xf): mono_jit_compile_method_with_opt + 0x134
  23. (0x0B04FAA8) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4555 + 0x12): mono_jit_compile_method + 0x1b
  24. (0x0B04976A) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini-trampolines.c (477 + 0x6): mono_magic_trampoline + 0x580
  25. (0x0B290066) ((module-name not available)): (filename not available): (function-name not available) + 0x0
  26. (0x1655BE1F) (Mono JIT code): (filename not available):  (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0x8f (1655BD90 1655BEEA) [0A3C6BD0 - Unity Child Domain] + 0x0
  27. (0x0B04FCF6) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4889 + 0xc): mono_jit_runtime_invoke + 0x214
  28. (0x0AFBD603) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\object.c (2618 + 0x10): mono_runtime_invoke + 0x51
  29. (0x0AFC2451) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\object.c (3822 + 0x0): mono_runtime_invoke_array + 0x38b
  30. (0x0AF8F404) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\icall.c (2856 + 0xe): ves_icall_InternalInvoke + 0x22e
  31. (0x1653A488) (Mono JIT code): (filename not available):  (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) + 0x90 (1653A3F8 1653A4C8) [0A3C6BD0 - Unity Child Domain] + 0x0
  32. (0x16539330) (Mono JIT code): (filename not available):  System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) + 0x370 (16538FC0 16539418) [0A3C6BD0 - Unity Child Domain] + 0x0
  33. (0x16592715) (Mono JIT code): (filename not available):  System.Reflection.MethodBase:Invoke (object,object[]) + 0x4d (165926C8 16592720) [0A3C6BD0 - Unity Child Domain] + 0x0
  34. (0x1662E932) (Mono JIT code): (filename not available):  UnityEditor.SceneView:CallOnSceneGUI () + 0x25a (1662E6D8 1662EA85) [0A3C6BD0 - Unity Child Domain] + 0x0
  35. (0x1662CF27) (Mono JIT code): (filename not available):  UnityEditor.SceneView:HandleSelectionAndOnSceneGUI () + 0x47 (1662CEE0 1662CF3E) [0A3C6BD0 - Unity Child Domain] + 0x0
  36. (0x16622046) (Mono JIT code): (filename not available):  UnityEditor.SceneView:OnGUI () + 0x292e (1661F718 16622A69) [0A3C6BD0 - Unity Child Domain] + 0x0
  37. (0x1655BE1F) (Mono JIT code): (filename not available):  (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0x8f (1655BD90 1655BEEA) [0A3C6BD0 - Unity Child Domain] + 0x0
  38. (0x0B04FCF6) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4889 + 0xc): mono_jit_runtime_invoke + 0x214
  39. (0x0AFBD603) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\object.c (2618 + 0x10): mono_runtime_invoke + 0x51
  40. (0x0AFC2451) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\object.c (3822 + 0x0): mono_runtime_invoke_array + 0x38b
  41. (0x0AF8F404) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\icall.c (2856 + 0xe): ves_icall_InternalInvoke + 0x22e
  42. (0x1653A488) (Mono JIT code): (filename not available):  (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) + 0x90 (1653A3F8 1653A4C8) [0A3C6BD0 - Unity Child Domain] + 0x0
  43. (0x16539330) (Mono JIT code): (filename not available):  System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) + 0x370 (16538FC0 16539418) [0A3C6BD0 - Unity Child Domain] + 0x0
  44. (0x16592715) (Mono JIT code): (filename not available):  System.Reflection.MethodBase:Invoke (object,object[]) + 0x4d (165926C8 16592720) [0A3C6BD0 - Unity Child Domain] + 0x0
  45. (0x165926A5) (Mono JIT code): (filename not available):  UnityEditor.HostView:Invoke (string,object) + 0x6d (16592638 165926BC) [0A3C6BD0 - Unity Child Domain] + 0x0
  46. (0x1659260F) (Mono JIT code): (filename not available):  UnityEditor.HostView:Invoke (string) + 0x2f (165925E0 16592626) [0A3C6BD0 - Unity Child Domain] + 0x0
  47. (0x165DCBB1) (Mono JIT code): (filename not available):  UnityEditor.DockArea:OnGUI () + 0x1f59 (165DAC58 165DCD9E) [0A3C6BD0 - Unity Child Domain] + 0x0
  48. (0x1655BE1F) (Mono JIT code): (filename not available):  (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0x8f (1655BD90 1655BEEA) [0A3C6BD0 - Unity Child Domain] + 0x0
  49. (0x0B04FCF6) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4889 + 0xc): mono_jit_runtime_invoke + 0x214
  50. (0x0AFBD603) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\object.c (2618 + 0x10): mono_runtime_invoke + 0x51
  51. (0x00835828) c:\buildagent\work\cac08d8a5e25d4cb\runtime\scripting\backend\mono\scriptingbackendapi_mono.cpp (176 + 0x1a): scripting_method_invoke + 0xb8
  52. (0x0083541A) c:\buildagent\work\cac08d8a5e25d4cb\runtime\scripting\backend\scriptinginvocationnoargs.cpp (94 + 0x15): ScriptingInvocationNoArgs::Invoke + 0x6a
  53. (0x00822897) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monobehaviour.cpp (410 + 0x0): MonoBehaviour::DoGUI + 0x1c7
  54. (0x00E8C7CA) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\editorwindows.cpp (1861 + 0x0): GUIView::SendLayoutEvent + 0x8a
  55. (0x00E8CD15) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\editorwindows.cpp (1903 + 0x0): GUIView::OnInputEvent + 0xe5
  56. (0x00E8DEAC) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\editorwindows.cpp (1167 + 0x1f): GUIView::DoPaint + 0x17c
  57. (0x00E8E16A) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\editorwindows.cpp (2163 + 0x0): GUIView::RepaintAll + 0x19a
  58. (0x00E1BB34) c:\buildagent\work\cac08d8a5e25d4cb\editor\src\application.cpp (1273 + 0x7): Application::TickTimer + 0x654
  59. (0x00EA2D62) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\wineditormain.cpp (336 + 0x0): MainMessageLoop + 0x1c2
  60. (0x00EA3C6C) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\wineditormain.cpp (851 + 0x0): WinMain + 0xdfc
  61. (0x00FB1E7F) f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (275 + 0x1c): __tmainCRTStartup + 0x11a
  62. (0x7600336A) (kernel32): (filename not available): BaseThreadInitThunk + 0x12
  63. (0x771D9F72) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x63
  64. (0x771D9F45) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x36
  65.  
  66. ========== END OF STACKTRACE ===========

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #6 on: January 09, 2014, 06:09:28 PM »
I don't see any mention of NGUI in that stack trace, and I am not clear on what you're doing to get to that issue?

Vesuvian

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #7 on: January 10, 2014, 01:04:50 PM »
Hey ArenMook

Sorry to pester you while you're on vacation!

As I understand it Erbacher's editor is sometimes crashing when he clicks on GameObjects in the hierarchy that have NGUI components. This would suggest to me that there might be an issue with the editor script for a particular NGUI component.

Is there any way we can test this theory? Is it safe for us to temporarily delete the Scripts/Editor directory to see if performance improves?

Thanks,
Ves

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #8 on: January 10, 2014, 05:17:58 PM »
Everything in the Editor folder can be deleted, but keep in mind that you won't be able to edit your UIs anymore. Just play them.

Vesuvian

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #9 on: January 10, 2014, 05:23:24 PM »
Just got a stack trace that is more relevant to the topic.

In the scenario we have a panel with a button. When the button is pressed we open a new panel with a scrollview. Upon clicking the button the editor crashes:

  1. ========== OUTPUTING STACK TRACE ==================
  2.  
  3. (0x09B610C6) c:\buildagent\work\de0bdf8cacffc05\eglib\src\goutput.c (159 + 0x2): g_logv + 0x6f
  4. (0x09B610E7) c:\buildagent\work\de0bdf8cacffc05\eglib\src\goutput.c (169 + 0x12): g_log + 0x15
  5. (0x09C6796B) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (402 + 0x1b): rgctx_template_set_other_slot + 0xe5
  6. (0x09C680B2) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (849 + 0x0): fill_in_rgctx_template_slot + 0x53
  7. (0x09C68185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  8. (0x09C68185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  9. (0x09C68185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  10. (0x09C68185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  11. (0x09C68185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  12. (0x09C68185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  13. (0x09C68185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  14. (0x09C68185) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (866 + 0x0): fill_in_rgctx_template_slot + 0x126
  15. (0x09C68228) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (912 + 0x12): register_other_info + 0x8e
  16. (0x09C6835D) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (977 + 0xf): lookup_or_register_other_info + 0xce
  17. (0x09C68444) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\generic-sharing.c (1020 + 0x12): mono_method_lookup_or_register_other_info + 0x8e
  18. (0x09C4C664) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (2816 + 0x1b): mono_resolve_patch_target + 0x4c6
  19. (0x09C64F08) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini-x86.c (4428 + 0x0): mono_arch_patch_code + 0x3b
  20. (0x09C4E162) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (3249 + 0x0): mono_codegen + 0x2c8
  21. (0x09C4ED16) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (3992 + 0x0): mini_method_compile + 0xb4a
  22. (0x09C4F4DE) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4318 + 0x10): mono_jit_compile_method_inner + 0x1d8
  23. (0x09C4FA3B) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4530 + 0xf): mono_jit_compile_method_with_opt + 0x134
  24. (0x09C4FAA8) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4555 + 0x12): mono_jit_compile_method + 0x1b
  25. (0x09C4976A) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini-trampolines.c (477 + 0x6): mono_magic_trampoline + 0x580
  26. (0x09D90066) ((module-name not available)): (filename not available): (function-name not available) + 0x0
  27. (0x15163B2D) (Mono JIT code): (filename not available):  NGUIMath:CalculateRelativeWidgetBounds (UnityEngine.Transform,UnityEngine.Transform) + 0x2d (15163B00 15163B56) [05A56D20 - Unity Child Domain] + 0x0
  28. (0x15163A8C) (Mono JIT code): (filename not available):  UIScrollView:get_bounds () + 0x94 (151639F8 15163B00) [05A56D20 - Unity Child Domain] + 0x0
  29. (0x15162C1C) (Mono JIT code): (filename not available):  UIScrollView:UpdateScrollbars (bool) + 0x244 (151629D8 15163477) [05A56D20 - Unity Child Domain] + 0x0
  30. (0x151627AE) (Mono JIT code): (filename not available):  UIScrollView:Start () + 0x46 (15162768 151629BB) [05A56D20 - Unity Child Domain] + 0x0
  31. (0x08F0BF6F) (Mono JIT code): (filename not available):  (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0x8f (08F0BEE0 08F0C03A) [05A56D20 - Unity Child Domain] + 0x0
  32. (0x09C4FCF6) c:\buildagent\work\de0bdf8cacffc05\mono\mini\mini.c (4889 + 0xc): mono_jit_runtime_invoke + 0x214
  33. (0x09BBD603) c:\buildagent\work\de0bdf8cacffc05\mono\metadata\object.c (2618 + 0x10): mono_runtime_invoke + 0x51
  34. (0x0081EA24) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monoutility.h (456 + 0x10): mono_runtime_invoke_profiled_fast + 0x84
  35. (0x00820B9A) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monobehaviour.cpp (863 + 0xf): MonoBehaviour::InvokeMethodOrCoroutineChecked + 0x6a
  36. (0x00820FA9) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monobehaviour.cpp (955 + 0x0): MonoBehaviour::InvokeMethodOrCoroutineChecked + 0x99
  37. (0x0082186B) c:\buildagent\work\cac08d8a5e25d4cb\runtime\mono\monobehaviour.cpp (562 + 0xa): MonoBehaviour::Start + 0xdb
  38. (0x006BAF7E) c:\buildagent\work\cac08d8a5e25d4cb\runtime\gamecode\calldelayed.cpp (164 + 0xb): DelayedCallManager::Update + 0x16e
  39. (0x007B5703) c:\buildagent\work\cac08d8a5e25d4cb\runtime\misc\player.cpp (1858 + 0x0): PlayerLoop + 0x4c3
  40. (0x00E12466) c:\buildagent\work\cac08d8a5e25d4cb\editor\src\application.cpp (2236 + 0xb): Application::UpdateScene + 0x216
  41. (0x00E16147) c:\buildagent\work\cac08d8a5e25d4cb\editor\src\application.cpp (2163 + 0x0): Application::UpdateSceneIfNeeded + 0x37
  42. (0x00EA2D62) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\wineditormain.cpp (336 + 0x0): MainMessageLoop + 0x1c2
  43. (0x00EA3C6C) c:\buildagent\work\cac08d8a5e25d4cb\editor\platform\windows\wineditormain.cpp (851 + 0x0): WinMain + 0xdfc
  44. (0x00FB1E7F) f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (275 + 0x1c): __tmainCRTStartup + 0x11a
  45. (0x774B336A) (kernel32): (filename not available): BaseThreadInitThunk + 0x12
  46. (0x77CF9F72) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x63
  47. (0x77CF9F45) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x36
  48.  
  49. ========== END OF STACKTRACE ===========

As you can see this goes through:

NGUIMath:CalculateRelativeWidgetBounds
UIScrollView:get_bounds
UIScrollView:UpdateScrollbars
UIScrollView:Start

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity crashing when using a NGUI scroll bar.
« Reply #10 on: January 10, 2014, 05:28:22 PM »
Can you email me the project (stripped down as much as possible, prefferably) so I can have a look? Support at tasharen.com. Link to a remote download only, please. Also please don't post it here.