-
-
Notifications
You must be signed in to change notification settings - Fork 873
[IOS Xamarin] System.ExecutionEngineException: Attempting to JIT compile method 'void SixLabors.ImageSharp.Formats.Png.PngScanlineProcessor:ProcessRgbScanline<SixLabors.ImageSharp.PixelFormats.Rgba32> #1708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you also update the target framework. It can't be .NET Standard 2.0 unless it is a class library.
Edit.Just realized you put the exception in the title. You'll need to raise this upstream. It's an issue with the Xamarin AOT compiler not with ImageSharp. See this note as to why. #1703 (comment) We have tried to patch our way around issues so I would suggest trying one of our nightly builds to see if we've managed to avoid this particular issue. |
It is implemented in a class library. That class library is used inside an Xamarin Forms IOS project (Xamarin Forms version 5.0.0.2012). |
Yeah it’s not the image (hence the reason I struck out the comment) it’s Xamarins AOT compiler. You should raise the issue upstream with them. |
Same issue. It's because the template class is too complicated.
|
I don’t understand what you mean by this |
Has anyone raised the the issue with Xamarin? As I said before. The issue is with their compiler |
They won't do anything. They are full on MAUI with a new AOT "compiler" (which may have the same limitations). AOT can't, sometime, find out all the template classes that are used in a library. As live code generation is refused by apple devices. |
We don’t do any live code generation. No emit, nothing dynamic. Raise the issue with them. |
It's not dynamic code. It's templated classes. |
https://docs.microsoft.com/en-us/xamarin/ios/internals/limitations see "Limited Generics Support" |
I’m closing this. The conversation has ceased to be constructive. There are no issues with the ImageSharp codebase |
Prerequisites
DEBUG
andRELEASE
modeDescription
In a xamarin forms for IOS project I'm using the method Image.Load to load a PNG image. I used it with imagedecoder and without but the same issue exists. The error I get is:
Steps to Reproduce
Use an IOS Xamarin project and execute the following code:
The text was updated successfully, but these errors were encountered: