-
-
Notifications
You must be signed in to change notification settings - Fork 852
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
ImageFormatException when loading GIF image on Android with Hybrid AOT mode #1338
Comments
Do you have a stacktrace? |
The Gif would be also very helpful. |
Any gif. For example, base_1x4.gif from the test suite. Here is the stacktrace:
|
And it's only Gifs yeah? All other image formats work ok and use the same stream loading pipeline? |
Yes ,this exception is only happening for GIF images. |
About PNG files: |
@tranb3r i have just tried to reproduce this, but i was able to load the I have just added to the project file:
Is that all what's needed or do i miss something? Maybe you could you share your project file? Im using VS |
@brianpopow Thank you for testing. |
@tranb3r i really did placed it in the debug section instead of the Release one 😬 Unfortunately i still cannot reproduce the issue. The app now crashes immediately when started. |
I think hybrid aot is limited to 64bit arch. Which device are you testing on ? |
ok so that may be the reason then, my device has a ARMv7, so its 32bit. Is it possible to reproduce this with an emulator? |
I'm not sure it'll work on the emulator. I think it's only for arm64-v8a devices. |
We need someone to raise an issue upstream here for us to track. We can't fix issues with the AOT compiler. |
I'm going to close this. It's been several years without any update on upstream issues raised.. |
Description
When enabling Hybrid AOT mode on Android, GIF images cannot be loaded by ImageSharp (ImageFormatException).
Steps to Reproduce
Load GIF image in a Xamarin app on android.
Make sure to enable hybrid aot mode in csproj (requires VS 2019 16.8 preview because of a regression in 16.7.*).
System Configuration
The text was updated successfully, but these errors were encountered: