Search Issue Tracker

Won't Fix

Votes

1

Found in

2023.1.0a26

Issue ID

UUM-26772

Regression

No

Unity crashes on mono_custom_attrs_from_class when exiting the Editor

-

Reproduction steps:
1. Open project “.project“
2. Exit the project using the X

Expected result: The Editor is closed
Actual result: The Editor crashes

Reproducible with: 2023.1.0a26 (by user)

Reproducible on: Windows 10 (by user)

Note: could not reproduce on macOS Catalina 10.15.7 (Intel), Windows 10 or Windows 11 myself

First few lines of stack trace:
0x00007FFCA69BF25B (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\custom-attrs.c:1759] mono_custom_attrs_from_class
0x00007FFCAAE76506 (Unity) scripting_class_has_attribute
0x00007FFCAAF011F9 (Unity) PersistentManager::IsObjectNonTextSerialized
0x00007FFCAAF0AEDB (Unity) PersistentManager::WriteFile
0x00007FFCAAF0E73E (Unity) PersistentManager::WriteFile
0x00007FFCAAF0ECF0 (Unity) PersistentManager::WriteFile

  1. Resolution Note:

    We can't open the attached project with out errors and can't reproduce the issue.

Comments (1)

  1. Deniz0707

    Feb 12, 2023 12:45

    Obtained 62 stack frames
    0x00007ff9d45146a2 (mono-2.0-bdwgc) do_mono_metadata_type_equal (at C:/build/output/Unity-Technologies/mono/mono/metadata/metadata.c:6201)
    0x00007ff9d453ae7c (mono-2.0-bdwgc) mono_g_hash_table_find_slot (at C:/build/output/Unity-Technologies/mono/mono/metadata/mono-hash.c:122)
    0x00007ff9d45b1624 (mono-2.0-bdwgc) mono_type_get_object_checked (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection.c:491)
    0x00007ff9d45b1b94 (mono-2.0-bdwgc) method_object_construct (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection.c:610)
    0x00007ff9d45aff67 (mono-2.0-bdwgc) check_or_construct_handle (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection-cache.h:123)
    0x00007ff9d45b1cc7 (mono-2.0-bdwgc) mono_method_get_object_checked (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection.c:655)
    0x00007ff9d46fa750 (mono-2.0-bdwgc) ves_icall_get_frame_info (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-exceptions.c:1928)
    0x0000015e02e17dcd (Mono JIT Code) (wrapper managed-to-native) System.Diagnostics.StackFrame:get_frame_info (int,bool,System.Reflection.MethodBase&,int&,int&,string&,int&,int&)
    0x0000015e02e17c93 (Mono JIT Code) System.Diagnostics.StackFrame:.ctor (int,bool)
    0x0000015e02e17a2b (Mono JIT Code) System.Diagnostics.StackTrace:init_frames (int,bool)
    0x0000015e02e1789b (Mono JIT Code) System.Diagnostics.StackTrace:.ctor (int,bool)
    0x0000015e02e21a2b (Mono JIT Code) UnityEngine.StackTraceUtility:ExtractStringFromExceptionInternal (object,string&,string&)
    0x0000015e02e21cb0 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_intptr&_intptr& (object,intptr,intptr,intptr)
    0x00007ff9d4610394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
    0x00007ff9d454eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
    0x00007ff9d454ecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
    0x00007ff6577b8444 (Unity) scripting_method_invoke
    0x00007ff657798db4 (Unity) ScriptingInvocation::Invoke
    0x00007ff6577b8aef (Unity) scripting_stack_trace_info_for
    0x00007ff6577994fd (Unity) Scripting::LogExceptionFromManaged
    0x00007ff65779934f (Unity) Scripting::LogException
    0x00007ff657798e12 (Unity) ScriptingInvocation::Invoke
    0x00007ff6571118b0 (Unity) BurstCompilerService::CompileAsync
    0x00007ff657112c85 (Unity) BurstCompilerService::GetDisassembly
    0x00007ff6568555f4 (Unity) BurstCompilerService_CUSTOM_GetDisassembly
    0x0000015d94ee0dc5 ((<unknown>))
    0x0000015d94ee0c5b ((<unknown>))
    0x0000015d94ee3993 ((<unknown>))
    0x0000015d94ee0ae3 ((<unknown>))
    0x0000015d94edffb3 ((<unknown>))
    0x0000015d94ede40b ((<unknown>))
    0x0000015d94edefc5 ((<unknown>))
    0x00007ff9d4610394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
    0x00007ff9d454eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
    0x00007ff9d4549bf0 (mono-2.0-bdwgc) mono_runtime_class_init_full (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:563)
    0x00007ff9d44b62c0 (mono-2.0-bdwgc) ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor_raw (at C:/build/output/Unity-Technologies/mono/mono/metadata/icall-def.h:751)
    0x0000015eb0d7a27a ((<unknown>))
    0x0000015eb0d7a16b ((<unknown>))
    0x0000015eb0d776f3 ((<unknown>))
    0x0000015eb0ab33b8 ((<unknown>))
    0x00007ff9d4610394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
    0x00007ff9d454eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
    0x00007ff9d454ecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
    0x00007ff6577b8444 (Unity) scripting_method_invoke
    0x00007ff657798db4 (Unity) ScriptingInvocation::Invoke
    0x00007ff657793a15 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff6578d4093 (Unity) Scripting::UnityEditor::EditorAssembliesProxy::ProcessInitializeOnLoadAttributes
    0x00007ff65778d857 (Unity) MonoManager::SetupLoadedEditorAssemblies
    0x00007ff657783871 (Unity) MonoManager::FinalizeReload
    0x00007ff658b5b88a (Unity) ScriptingInitializer::FinalizeReload
    0x00007ff658bcf744 (Unity) ImportOutOfDateAssets
    0x00007ff658bda759 (Unity) RefreshInternalV2
    0x00007ff658be249f (Unity) StopAssetImportingV2Internal
    0x00007ff6586e346f (Unity) EditorSceneManager::RestoreSceneBackups
    0x00007ff6583cb086 (Unity) PlayerLoopController::EnterPlayMode
    0x00007ff6583db3d6 (Unity) PlayerLoopController::SetIsPlaying
    0x00007ff6583deb0b (Unity) Application::TickTimer
    0x00007ff65886807a (Unity) MainMessageLoop
    0x00007ff65886ce20 (Unity) WinMain
    0x00007ff659c35dce (Unity) __scrt_common_main_seh
    0x00007ffa6db626bd (KERNEL32) BaseThreadInitThunk
    0x00007ffa6f7adfb8 (ntdll) RtlUserThreadStart

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.