How to reproduce:
- Open the attached “IN-155447” project
- Open the “TestCrash” scene
- Select the “TestCrash” GameObject in the Hierarchy
- Observe the crash
Reproducible with: 6000.6.0a7, 6000.6.5f1, 6000.7.0b3 (d45e8f6ab798), 7000.0.0a1
Not reproducible with: 6000.0.84f1, 6000.3.26f1, 6000.6.0a6
Could not test with: 7000.0.0a2, 7000.0.0a4 (development versions)
Fixed in: 7000.0.0a5
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
- Only reproducible when using typeof(T)
- In the log, just before the stack trace, two error lines can be found:
”ERROR: SymGetSymFromAddr64, GetLastError: 'The specified module could not be found.' (Address: 000002B858972129)”
”ERROR: SymGetModuleInfo64, GetLastError: 'A dynamic link library (DLL) initialization routine failed.' (Address: 000002B858972129)”
First few lines of the stack trace:
0x000001C614692129 ((<unknown>)) (function-name not available)
0x000001C612B4EA63 (Assembly-CSharp) [C:\Users\vytenisrazmus\CASES\IN-155447_My project\Assets\TestCrash.cs:16] MyStruct`1<T_REF>:OnBeforeSerialize ()
0x000001D00BDB4705 (UnityEngine.CoreModule) UnityEngine.Serialization.SerializationBackendManagedCommands:ExecuteV2WriteStream (byte*,UnityEngine.Serialization.NativeBufferContext*,System.Span`1<UnityEngine.Serialization.SerializationBackendManagedCommands/V2ObjectFrame>,byte&,int&)
0x000001D00BDACE9B (UnityEngine.CoreModule) UnityEngine.Serialization.SerializationBackendManagedCommands:ObjectsToSerializationBufferV2 (object,intptr,intptr)
0x000001D00BDACBE3 (UnityEngine.CoreModule) UnityEngine.Serialization.SerializationBackendManagedCommands:V2WriteExecutorEntry (UnityEngine.Serialization.SerializationBackendManagedCommands/V2ExecutorArgs*)