InvalidOperationException getting type member offset on Unix platforms using .Net Core 2.1.X or higher #116
Labels
workaround required
Incompatibility with a particular platform that is not a bug in principle
Milestone
When running ILGPU.Tests.CPU on Linux (Ubuntu 20.04 in WSL with dotnet SDK 3.1.202 and runtime 2.1.18) I get the following error:
This is failing because
TypeInformationManager.CreateCompoundTypeInfo
is trying to get the offsets of fields forArrayView
, but this contains an abstractArrayViewSource
member which cannot be marshaled. There's a related GitHub issue at dotnet/runtime#7961.All the CPU tests pass if I change
CreateCompoundTypeInfo
so it orders by the member MetadataToken:But I'm not sure what the implications for this are and whether it's required that the field ordering matches the unmanaged offsets.
The text was updated successfully, but these errors were encountered: