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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a2
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0b11