Skip to content

[Xamarin.iOS] Crash on System.ExecutionEngineException: Attempting to JIT compile method... #15

Description

@ryancheung

I received the following exception when decompressing brotli file with Stream method:


{System.ExecutionEngineException: Attempting to JIT compile method '(wrapper other) void BrotliSharpLib.Brotli/BrotliDecoderStateStruct:PtrToStructure (intptr,object)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.

at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.PtrToStructure(intptr,System.Type)
at System.Runtime.InteropServices.Marshal.PtrToStructure[T] (System.IntPtr ptr) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs:930
at BrotliSharpLib.Brotli.CreateStruct[T] () [0x00021] in <8abe3495f7f047ed822d11fb9d962483>:0
at BrotliSharpLib.Brotli.BrotliCreateDecoderState () [0x00000] in <8abe3495f7f047ed822d11fb9d962483>:0
at BrotliSharpLib.BrotliStream..ctor (System.IO.Stream stream, System.IO.Compression.CompressionMode mode, System.Boolean leaveOpen) [0x00079] in <8abe3495f7f047ed822d11fb9d962483>:0
at BrotliSharpLib.BrotliStream..ctor (System.IO.Stream stream, System.IO.Compression.CompressionMode mode) [0x00000] in <8abe3495f7f047ed822d11fb9d962483>:0
at ...
at ...
base: {System.SystemException}


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions