Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Unity Freezes when I play the game from the editor

Discussion in 'Editor & General Support' started by rob8861, Nov 14, 2017.

  1. rob8861

    rob8861

    Joined:
    Sep 25, 2015
    Posts:
    22
    Since Unity 2017.2.03f I have experienced random freezes of the editor right after I clicked "Play".
    It doesn't happen all the time which makes it very hard to troubleshoot and reproduce. In addition, no errors (i.e compilation errors) are present when the editor freezes. However, the freeze appears to trigger a crash log by Unity and stack trace dump.
    I have no clue why that happens, but when I tried to search for the ERROR: SymGetSymFromAddr64 I came across threads which suggested an issue(or bug) with the mono GC.

    I'd appreciate if anyone can shed some light on this issue. Last night was the 8th time Unity froze on me for no good reason.



    Code (CSharp):
    1. ========== OUTPUTING STACK TRACE ==================
    2.  
    3. 0x00007FFC4B01CFF5 (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\mini\aot-runtime.c:2479] mono_aot_get_cached_class_info
    4. 0x00007FFC4B17C459 (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\class.c:4882] mono_class_init
    5. 0x00007FFC4B175942 (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\class.c:2937] collect_implemented_interfaces_aux
    6. 0x00007FFC4B1812CF (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\class.c:4087] mono_class_setup_vtable_general
    7. 0x00007FFC4B1811EE (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\class.c:3622] mono_class_setup_vtable_full
    8. 0x00007FFC4B17B53B (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\class.c:2532] mono_class_get_vtable_entry
    9. 0x00007FFC4B0228C9 (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\mini\mini-trampolines.c:902] mono_vcall_trampoline
    10.   ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 0000000010251838)
    11.   ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 0000000010251838)
    12. 0x0000000010251838 ((<unknown>))
    13. 0x00000000141639AC (Mono JIT Code) System.Collections.Generic.Stack`1<T_REF>:Push (T_REF)
    14. 0x0000000014163620 (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Utility\ObjectPool.cs:46] UnityEngine.UI.ObjectPool`1<T_REF>:Release (T_REF)
    15. 0x00000000141632AD (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Utility\ListPool.cs:20] UnityEngine.UI.ListPool`1<T_REF>:Release (System.Collections.Generic.List`1<T_REF>)
    16. 0x0000000013E88ECD (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\MaskUtilities.cs:85] UnityEngine.UI.MaskUtilities:GetStencilDepth (UnityEngine.Transform,UnityEngine.Transform)
    17. 0x0000000013E87CCE (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\MaskableGraphic.cs:71] UnityEngine.UI.MaskableGraphic:GetModifiedMaterial (UnityEngine.Material)
    18. 0x0000000013E87330 (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Graphic.cs:247] UnityEngine.UI.Graphic:get_materialForRendering ()
    19. 0x0000000013E86CC6 (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Graphic.cs:362] UnityEngine.UI.Graphic:UpdateMaterial ()
    20. 0x0000000013E77051 (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Graphic.cs:341] UnityEngine.UI.Graphic:Rebuild (UnityEngine.UI.CanvasUpdate)
    21. 0x0000000013E74939 (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\CanvasUpdateRegistry.cs:151] UnityEngine.UI.CanvasUpdateRegistry:PerformUpdate ()
    22. 0x0000000013E739FD (Mono JIT Code) [C:\buildslave\unity\build\artifacts\generated\common\modules\UI\UICanvasBindings.gen.cs:240] UnityEngine.Canvas:SendWillRenderCanvases ()
    23. 0x0000000013E73BAE (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    24. 0x00007FFC4AF8434A (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\mini\mini-runtime.c:2618] mono_jit_runtime_invoke
    25. 0x00007FFC4B188BC7 (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2853] do_runtime_invoke
    26. 0x00007FFC4B1915CF (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2905] mono_runtime_invoke
    27. 0x000000014092281C (Unity) scripting_method_invoke
    28. 0x0000000140917153 (Unity) ScriptingInvocation::Invoke
    29. 0x000000014177A5F6 (Unity) UI::CanvasManager::WillRenderCanvases
    30. 0x000000014177A6E1 (Unity) `UI::InitializeCanvasManager'::`21'::UIEventsWillRenderCanvasesRegistrator::Forward
    31. 0x00000001405DC891 (Unity) `InitPlayerLoopCallbacks'::`25'::PostLateUpdatePlayerUpdateCanvasesRegistrator::Forward
    32. 0x00000001405DB670 (Unity) PlayerLoop
    33. 0x00000001410C19E2 (Unity) PlayerLoopController::UpdateScene
    34. 0x00000001410CAE5A (Unity) PlayerLoopController::EnterPlayMode
    35. 0x00000001410CB6C9 (Unity) PlayerLoopController::SetIsPlaying
    36. 0x00000001410CC522 (Unity) Application::TickTimer
    37. 0x00000001412D5389 (Unity) MainMessageLoop
    38. 0x00000001412D6C44 (Unity) WinMain
    39. 0x0000000141DEFD48 (Unity) __tmainCRTStartup
    40. 0x00007FFC7F678364 (KERNEL32) BaseThreadInitThunk
    41. 0x00007FFC82147091 (ntdll) RtlUserThreadStart
    42.  
    43. ========== END OF STACKTRACE ===========
     
  2. ugen_oak

    ugen_oak

    Joined:
    Oct 18, 2016
    Posts:
    5
    I am experiencing what I assume is the same issue due to a similar stack trace. Unfortunately, I do not have any solution, but my stack trace is included below in case it helps anyone determine the source of this problem.

    Code (CSharp):
    1. ========== OUTPUTING STACK TRACE ==================
    2.  
    3. 0x00007FF815015E78 (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\utils\mono-error.c:190] mono_error_get_message
    4. 0x00007FF81506133F (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\class.c:4090] mono_class_setup_vtable_general
    5. 0x00007FF8150611EE (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\class.c:3622] mono_class_setup_vtable_full
    6. 0x00007FF81505B53B (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\class.c:2532] mono_class_get_vtable_entry
    7. 0x00007FF814F028C9 (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\mini\mini-trampolines.c:902] mono_vcall_trampoline
    8.   ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 0000000024131838)
    9.   ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 0000000024131838)
    10. 0x0000000024131838 ((<unknown>))
    11. 0x000000000C0B35EC (Mono JIT Code) System.Collections.Generic.Stack`1<T_REF>:Push (T_REF)
    12. 0x00000000104B9350 (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Utility\ObjectPool.cs:46] UnityEngine.UI.ObjectPool`1<T_REF>:Release (T_REF)
    13. 0x000000006E4A1072 (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Utility\ListPool.cs:20] UnityEngine.UI.ListPool`1<UnityEngine.Color32>:Release (System.Collections.Generic.List`1<UnityEngine.Color32>)
    14. 0x000000006E4A0AA7 (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\Utility\VertexHelper.cs:106] UnityEngine.UI.VertexHelper:Dispose ()
    15. 0x000000006E4A07C1 (Mono JIT Code) TMPro.TMP_InputField:OnFillVBO (UnityEngine.Mesh)
    16. 0x000000006E44CDED (Mono JIT Code) TMPro.TMP_InputField:UpdateGeometry ()
    17. 0x000000006E4438D1 (Mono JIT Code) TMPro.TMP_InputField:Rebuild (UnityEngine.UI.CanvasUpdate)
    18. 0x0000000010EA82E9 (Mono JIT Code) [C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\UI\Core\CanvasUpdateRegistry.cs:151] UnityEngine.UI.CanvasUpdateRegistry:PerformUpdate ()
    19. 0x000000006E451ECF (Mono JIT Code) (wrapper delegate-invoke) <Module>:invoke_void ()
    20. 0x0000000010EA76FD (Mono JIT Code) [C:\buildslave\unity\build\artifacts\generated\common\modules\UI\UICanvasBindings.gen.cs:240] UnityEngine.Canvas:SendWillRenderCanvases ()
    21. 0x000000006E451A3E (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    22. 0x00007FF814E6434A (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\mini\mini-runtime.c:2618] mono_jit_runtime_invoke
    23. 0x00007FF815068BC7 (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2853] do_runtime_invoke
    24. 0x00007FF8150715CF (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\metadata\object.c:2905] mono_runtime_invoke
    25. 0x000000014091D03C (Unity) scripting_method_invoke
    26. 0x00000001409119C3 (Unity) ScriptingInvocation::Invoke
    27. 0x0000000141770546 (Unity) UI::CanvasManager::WillRenderCanvases
    28. 0x0000000141770631 (Unity) `UI::InitializeCanvasManager'::`21'::UIEventsWillRenderCanvasesRegistrator::Forward
    29. 0x00000001405DAF91 (Unity) `InitPlayerLoopCallbacks'::`25'::PostLateUpdatePlayerUpdateCanvasesRegistrator::Forward
    30. 0x00000001405D9DD0 (Unity) PlayerLoop
    31. 0x00000001410B9862 (Unity) PlayerLoopController::UpdateScene
    32. 0x00000001410C3077 (Unity) PlayerLoopController::EnterPlayMode
    33. 0x00000001410C3829 (Unity) PlayerLoopController::SetIsPlaying
    34. 0x00000001410C4130 (Unity) Application::TickTimer
    35. 0x00000001412CC349 (Unity) MainMessageLoop
    36. 0x00000001412CDC04 (Unity) WinMain
    37. 0x0000000141DE45A8 (Unity) __tmainCRTStartup
    38. 0x00007FF850A02774 (KERNEL32) BaseThreadInitThunk
    39. 0x00007FF8530F0D51 (ntdll) RtlUserThreadStart
    40.  
    41. ========== END OF STACKTRACE ===========
     
  3. rob8861

    rob8861

    Joined:
    Sep 25, 2015
    Posts:
    22
    Hi
    Do you mind if I ask you which mono run you are using? the experimental .net 4.6 or the stable one.
    I am 100% certain, but I started experiencing this issue when I switched over to .net 4.6
     
  4. ugen_oak

    ugen_oak

    Joined:
    Oct 18, 2016
    Posts:
    5
    I am experiencing this problem on .NET 4.6.
     
  5. CriDos

    CriDos

    Joined:
    Apr 19, 2017
    Posts:
    6
  6. ugen_oak

    ugen_oak

    Joined:
    Oct 18, 2016
    Posts:
    5
    CriDos likes this.