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
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
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.