Steps to reproduce:
1. Download the attached "IN-148932_SelHist66" project
2. Open a command prompt and run the attached project's EditMode tests headlessly:
"<UnityPath>\Unity.exe" -batchmode -projectPath "<ProjectPath>" -runTests -testPlatform EditMode -testFilter SelHistRound3Tests
3. Wait for the test run to finish
4. Observe the crash
Reproducible with versions: 6000.4.0b5 - 6000.4.11f1, 6000.5.0a8 - 6000.5.1f1, 6000.6.0a2 - 6000.6.0a6
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environment tested
First few lines of stacktrace:
0x00007FFD61D86FFD (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\mini\mini-runtime.c:3259] mono_jit_runtime_invoke
0x00007FFD61CC9104 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:3068] do_runtime_invoke
0x00007FFD61CC91F0 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:3115] mono_runtime_invoke
0x00007FFD22555FFA (Unity) scripting_method_invoke
0x00007FFD22559CFE (Unity) ScriptingInvocation::Invoke
0x00007FFD225576C1 (Unity) ScriptingInvocation::Invoke<void>
0x00007FFD1FAC0B96 (Unity) Scripting::UnityEditor::SelectionProxy::Internal_NonSelectedObjectWasDestroyed