Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.3.40f1
6000.0.13f1
7000.0.0a1
Issue ID
UUM-77861
Regression
No
Crash on ves_icall_System_Runtime_InteropServices_Marshal_QueryInterfaceInternal when entering the Play mode on a specific project
Reproduction steps:
1. Open the attached project "CrashRepro"
2. Enter the Play mode
Expected result: Play mode starts
Actual result: Editor crashes
Reproducible with: 2022.3.40f1, 6000.0.13f1
Couldn’t test with: 2021.3.42f1 - (“ABB.Robotics.Controllers.PC.dll will not be loaded due to errors”)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
First few lines of stack trace:
{noformat}0x00007FFD5965EB2B (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\cominterop.c:1641] ves_icall_System_Runtime_InteropServices_Marshal_QueryInterfaceInternal
0x000002A14F8982D8 (Mono JIT Code) (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:QueryInterfaceInternal (intptr,System.Guid&,intptr&)
0x000002A14F8981EB (Mono JIT Code) System.Runtime.InteropServices.Marshal:QueryInterface (intptr,System.Guid&,intptr&)
0x000002A14F8923E3 (Mono JIT Code) Mono.Interop.ComInteropProxy:GetProxy (intptr,System.Type)
0x000002A14F89220B (Mono JIT Code) System.Runtime.InteropServices.Marshal:GetObjectForIUnknown (intptr){noformat}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
The Mono runtime does not support the usages of the DllImportAttribute.PreserveSig = false. A work around is to remove usages of this field or to use IL2CPP which does implement support for DllImportAttribute.PreserveSig = false.