Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug Random Crash on TMPro_UGUI_Private.OnValidate

Discussion in 'UGUI & TextMesh Pro' started by CDF, Sep 17, 2020.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,026
    Using Unity, 2020.1.5f1
    TMP 3.0.1

    I don't think this is a TMP Problem, but a Unity AssetDatabase V2 problem.
    This seems to happen at random during a script reload/asset database refresh

    Code (CSharp):
    1. ========== OUTPUTTING STACK TRACE ==================
    2.  
    3. 0x000002C09689DCE6 (Mono JIT Code) [D:\Work\SMG\Sping\Library\PackageCache\com.unity.textmeshpro@3.0.1\Scripts\Runtime\TMPro_UGUI_Private.cs:270] TMPro.TextMeshProUGUI:OnValidate ()
    4. 0x000002C12E89C260 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    5. 0x00007FFA8302D8C0 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
    6. 0x00007FFA82FB2912 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke
    7. 0x00007FFA82FBB96F (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2968] mono_runtime_invoke
    8. 0x00007FF6EA39FCD4 (Unity) scripting_method_invoke
    9. 0x00007FF6EA3997FB (Unity) ScriptingInvocation::Invoke
    10. 0x00007FF6EA399ABE (Unity) ScriptingInvocation::InvokeChecked
    11. 0x00007FF6EA409093 (Unity) SerializableManagedRef::CallMethod
    12. 0x00007FF6EA362D00 (Unity) MonoBehaviour::CheckConsistency
    13. 0x00007FF6EA361724 (Unity) MonoBehaviour::AwakeAfterRestoreFromBackup
    14. 0x00007FF6EA408AE2 (Unity) SerializableManagedRefsUtilities::AwakeInstancesAfterBackupRestoration
    15. 0x00007FF6EA3643CD (Unity) MonoManager::EndReloadAssembly
    16. 0x00007FF6EA36AA39 (Unity) MonoManager::ReloadAssembly
    17. 0x00007FF6EB5003E3 (Unity) ReloadAllUsedAssemblies
    18. 0x00007FF6EAF9A3AC (Unity) Application::TickTimer
    19. 0x00007FF6EB79BAE4 (Unity) MainMessageLoop
    20. 0x00007FF6EB7A4E7E (Unity) WinMain
    21. 0x00007FF6ED420916 (Unity) __scrt_common_main_seh
    22. 0x00007FFAE9576FD4 (KERNEL32) BaseThreadInitThunk
    23. 0x00007FFAEB41CEC1 (ntdll) RtlUserThreadStart
    24.  
    25. ========== END OF STACKTRACE ===========
    26.  
    I myself am always hitting random crashes in my own scripts and other Unity packages in 2020.1 that use OnValidate
    It's a total crash fest some days.

    Something is very wrong with AssetDatabase V2
     
  2. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,026
    5 mins after position and another crash (unrelated to TMP)

    Code (CSharp):
    1. ========== OUTPUTTING STACK TRACE ==================
    2.  
    3. 0x00007FF6EA3C5F37 (Unity) TransferField_NonArray<StreamedBinaryWrite,Converter_SimpleNativeClass<RectOffset> >
    4. 0x00007FF6EA3EA0EB (Unity) Transfer_SimpleNativeClass<StreamedBinaryWrite,RectOffset,0>
    5. 0x00007FF6E8E278FB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
    6. 0x00007FF6E9EF032C (Unity) TransferScriptingObject<StreamedBinaryWrite,1>
    7. 0x00007FF6E9F0225D (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
    8. 0x00007FF6EA361AF8 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
    9. 0x00007FF6EA408D43 (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
    10. 0x00007FF6EA3620C2 (Unity) MonoManager::BeginReloadAssembly
    11. 0x00007FF6EA36A945 (Unity) MonoManager::ReloadAssembly
    12. 0x00007FF6EB5003E3 (Unity) ReloadAllUsedAssemblies
    13. 0x00007FF6EAF9A3AC (Unity) Application::TickTimer
    14. 0x00007FF6EB79BAE4 (Unity) MainMessageLoop
    15. 0x00007FF6EB7A4E7E (Unity) WinMain
    16. 0x00007FF6ED420916 (Unity) __scrt_common_main_seh
    17. 0x00007FFAE9576FD4 (KERNEL32) BaseThreadInitThunk
    18. 0x00007FFAEB41CEC1 (ntdll) RtlUserThreadStart
    19.  
    20. ========== END OF STACKTRACE ===========
    Seriously Unity, you're killing me
     
  3. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    5,111
    Is this in a build?
     
  4. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,026
    No in Editor
     
unityunity