Reproduction steps:
1. Open the attached "Repro" project
2. Enter and exit Play mode
3. Open any script from the Assets
4. Make any changes to the script
5. Save the changes and go back to the Editor
Expected result: The changes are saved and the domain gets reloaded
Actual result: The Editor crashes after reloading domain
Reproducible with: 2021.3.44f1, 2022.1.0b4
Not reproducible with: 2022.1.0b5, 2022.3.48f1, 6000.0.21f1, 6000.1.0b3
Reproducible on: macOS 14.6.1 (Intel)
Not reproducible on: No other environment tested
Stacktrace:
#0 0x007fff203524e3 in pthread_mutex_trylock
#1 0x0000016a8e156c in request_thread_abort
#2 0x0000016a8e1524 in ves_icall_System_Threading_Thread_Abort
#3 0x0000016a88aa89 in ves_icall_System_Threading_Thread_Abort_raw
Note:
Reproduction is inconsistent in 2022.1 so I'm unsure whether the fixed version is correct