Search Issue Tracker

Fixed

Fixed in 2022.2.0b15, 2023.1.0a18

Votes

0

Found in

2023.1.0a12

Issue ID

UUM-11648

Regression

Yes

Editor crashes when EditorUtility.UnloadUnusedAssetsImmediate is called

--

-

Reproduction steps:
1. Open the user’s attached project
2. Select from the top menu Debug > UnloadUnusedAssetsImmediate

Expected result: Assets are unloaded successfully
Actual result: Editor crashes

Reproducible with: 2021.2.0a15, 2021.2.19f1, 2021.3.8f1, 2022.1.10f1, 2022.2.0b4, 2023.1.0a4
Not reproducible with: 2020.3.37f1, 2021.2.0a14

Reproducible on: Windows 11

Note: in the 2020.3 stream these errors are outputted into the Console:
- _UnloadUnusedAssets incorrect caused some assets to load. This can easily cause deadlocks or crashes_
- _Assertion failed on expression: 'state.originalObjectCount == (int)Object::GetLoadedObjectCount()'_

First lines of stacktrace:
0x00007FFE24B16105 (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:5913] mono_object_new

0x00007FFE3AC4BC8A (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:1796] mono_class_vtable
0x00007FFE3AC542CE (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:6237] mono_string_new_size_checked
0x00007FFE3AC54081 (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:6355] mono_string_new_checked

0x00007FFE3ACC683A (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\mini\mini-runtime.c:2664] mono_jit_runtime_invoke
0x00007FFE3AC48312 (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke
0x00007FFE3AC522FF (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:2968] mono_runtime_invoke

0x00007FFEC453474C (KERNELBASE) RaiseException
0x00007FFE397C064C (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\utils\mono-log-common.c:143] mono_log_write_logfile
0x00007FFE397AC4A2 (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:172] monoeg_g_logv_nofree
0x00007FFE397AC57C (mono-2.0-bdwgc) \[C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:215] monoeg_assertion_message

  1. Resolution Note (fix version 2022.2.0b15):

    Fixed in: 2022.2.0b15

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.