You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when I call SkiaSharp.SKCodec.Decode in parallel from multiple threads after switching to .NET 9:
TypeInitialization_Type, f.G System.TypeInitializationException: TypeInitialization_Type, f.G
---> System.InvalidProgramException: Invalid IL due to: method f.G:G (intptr,void*) with UnmanagedCallersOnlyAttribute has marshal specs assembly: type: member:(null)
It only happens on ARM/android and .NET 9. X64 and .NET 8 works fine.
Reproduction Steps
I don't have a minimal repro
Expected behavior
No exception
Actual behavior
InvalidProgramException is thrown
Regression?
It works in .NET 8, and .NET 9 on x64. Only .NET 9 arm seems to be affected.
Description
I get the following error when I call SkiaSharp.SKCodec.Decode in parallel from multiple threads after switching to .NET 9:
TypeInitialization_Type, f.G System.TypeInitializationException: TypeInitialization_Type, f.G
---> System.InvalidProgramException: Invalid IL due to: method f.G:G (intptr,void*) with UnmanagedCallersOnlyAttribute has marshal specs assembly: type: member:(null)
It only happens on ARM/android and .NET 9. X64 and .NET 8 works fine.
Reproduction Steps
I don't have a minimal repro
Expected behavior
No exception
Actual behavior
InvalidProgramException is thrown
Regression?
It works in .NET 8, and .NET 9 on x64. Only .NET 9 arm seems to be affected.
Known Workarounds
No response
Configuration
.NET 9, ARM64, android
Other information
The following code fails:
https://github.com/mono/SkiaSharp/blob/main/binding/SkiaSharp/SKData.cs
public static SKData Create (IntPtr address, int length, SKDataReleaseDelegate releaseProc, object context)
DelegateProxies static constructor fails
The text was updated successfully, but these errors were encountered: