Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
2021.2.0b1
2021.2.0b5
2022.1
Issue ID
1356108
Regression
Yes
Crash on mono_jit_runtime_invoke when closing project while having a Physics Material set as default in Physics settings
Reproduction steps:
1. Open the attached user's project
2. Make sure that Edit -> Project Settings -> Physics -> Default Material is set to 'New Physics Material'
3. Close the Editor
Expected result: Editor closes normally
Actual result: The Editor gets an error and crashes
Reproducible with: 2021.2.0b1, 2021.2.0b7, 2022.1.0a1
Not reproducible with: 2019.4.29f1, 2020.3.16f1, 2021.1.17f1, 2021.2.0a21, 2022.1.0a2, 2022.1.0a5
Note: 'GetManagerFromContext: pointer to object of manager 'PhysicsManager' is NULL (table index 9)' and 'GetManagerFromContext: pointer to object of manager 'MonoManager' is NULL (table index 5)' are thrown right before the crash
Stack Trace:
0x00007FFD12D84C4C (mono-2.0-bdwgc) mono_jit_runtime_invoke
0x00007FFD12CC77B4 (mono-2.0-bdwgc) do_runtime_invoke
0x00007FFD12CC794A (mono-2.0-bdwgc) mono_runtime_invoke
0x00007FF78DDBCB14 (Unity) scripting_method_invoke
0x00007FF78DDB77B4 (Unity) ScriptingInvocation::Invoke
0x00007FF78EDF6841 (Unity) DragAndDrop::IsDragging
0x00007FF78EDE62D6 (Unity) EditorDisplayDialogProc
0x00007FFD827246F1 (USER32) GetClassLongPtrW
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a2
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0b11