System.ExecutionEngineException: Attempting to JIT compile method 'void .PngScanlineProcessor:ProcessRgbaScanline (.PngHeader&,System.ReadOnlySpan`1,System.Span`1,int,int)' while running in aot-only mode. Load that image into a byte array and try load the image like below.Add a png image to the Xamarin.Forms project.(I added it to all projects but it didn't seem to make a difference for this issue) Add the SixLabors.ImageSharp nuget package.NET 6 to see if this is still a problem because those have once again decided to not work on my computer again) Steps to Reproduce Is it possible and is there anything on the roadmap to improve handling of generics or is this as good as it gets?. #Xcode for mac 10.22 codeIs this revealing an issue with the compiler, or is there something that was overlooked in ImageSharp code which is a no-no for Xamarin.iOS apps?.Is it safe to use enable mono interpreter in a production app, if so what art the possible drawbacks?.Without doing a deep dive on the library myself and taking it on the word of the project creator there is no dynamic/reflected code being executed in this library so the issue is with the Xamarin side of things. Looking around it appears we should not enable the mono interpreter for release code, but there was initially no issues with apps being approved with this enabled.įrom what I understand the exception is throw while trying to build (build meaning not AOT?) the ProcessRgbaScaneline method, this is called in ProcessDefilterdScanline. The problem goes away if you enable mono interpreter (can also repro in debug mode if you disable mono interpreter which is the default for release, not default for debug). I am able to replicate this with the attached project. Using ImageSharp in a Xamarin project, it was recently reported of a crash using on iOS device in release mode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |