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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a2
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0b11