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

Physics

-

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

  1. Response avatar

    Resolution Note (fix version 2022.1):

    Fixed in 2022.1.0a2

  2. Response avatar

    Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0b11

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.