Whenever there are multiple subscenes opened in active scene, doing domain reload (script change) causes a crash. One by one or no subscenes at all does not cause crash.
Reproduces in: 1.2.3, 1.3.0-exp.1, 1.3.0-pre.4
Editors tested: 2022.3.36f, 2022.3.38f
Editor log ends up with hundreds of
Assertion failed on expression: 'CurrentThreadIsMainThread()'
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.Resources:InstanceIDToObjectList (Unity.Collections.NativeArray`1<int>,System.Collections.Generic.List`1<UnityEngine.Object>)
Unity.Entities.Serialization.ManagedObjectBinaryReader:.ctor (Unity.Collections.LowLevel.Unsafe.UnsafeAppendBuffer/Reader*,Unity.Collections.NativeArray`1<int>) (at Packages/com.unity.entities@1.3.0-pre.4/Unity.Entities/Serialization/ManagedObjectBinarySerialization.cs:205)
And finishes with exceptions sent in attachment.
This is extremely frustrating as it fully blocks from any work on project.
@gilded tundra