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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a2
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0b11