ObjectLayoutInspector
ObjectLayoutInspector copied to clipboard
Crash when used in Unity3D Engine
Hi,
I would like to use this library in Unity3D which use mono. The editor crash and output this in the log: Assertion at ..\mono\mini\method-to-ir.c:13336, condition `ins->opcode >= MONO_CEE_LAST' not met
I call this: TypeLayout.PrintLayout<ExposedReference<ArchVizAgent>>();
Additional information: It crash in InspectorHelper.GenerateFieldOffsetInspectionFunction at this line: return (Func<object, long[]>)method.CreateDelegate(typeof(Func<object, long[]>));
I was using the released version not the master source code version. I will report if I experience the same crash with the master
I experience the same crash with the latest version. It crash at: TypeInspector.GenerateFieldOffsetInspectionFunction return (Func<object, long[]>)method.CreateDelegate(typeof(Func<object, long[]>));
Log:
- Assertion at ..\mono\mini\method-to-ir.c:13336, condition `ins->opcode >= MONO_CEE_LAST' not met
Seems related to this bug: https://github.com/mono/mono/issues/8543
try UnsafeLayout - it runs via cpp auto of mono on android and ios