Reproduction steps:
1. Create a new “Essentials Pathway” project
2. Open any script from the Assets window in a code editor
3. Start playing a video from the Tutorials window
4. While the video is playing, cause Domain Reload by editing a script
5. Save the changes and go back to the Editor
6. Repeat steps 3-5
Expected result: Video continues playing or stops
Actual result: The Editor crashes
Reproducible with: 6000.0.51f1, 6000.1.9f1, 6000.2.0b7
Couldn’t test with: 2022.3.63f1 - Could not find a tutorial with video
Reproducible on: Ubuntu 24.04
Not reproducible on: Windows 10
First lines of the stack trace:
#12 0x007ddd023e3a5d in mono_runtime_invoke
#13 0x005ca820da31c3 in scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
#14 0x005ca820d7acb7 in ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
#15 0x005ca821967a34 in VideoPlayer::InvokeScriptCallbacks()
#16 0x005ca82195e5c0 in VideoPlayer::VideoUpdate(bool&)
#17 0x005ca82195e22a in VideoManager::VideoUpdate()
Note:
- Not all videos crash and reproduction can sometimes fail