System.ExecutionEngineException: Attempting to JIT compile method '(wrapper native-to-managed)
Hello!
Today I tried to register to MediaPlayer
events via mediaPlayer.EventManager.TimeChanged += (sender, args) ...
Unfortunately, it crashes on device only (simulator works just fine) [iOS]:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ExecutionEngineException: Attempting to JIT compile method '(wrapper native-to-managed) LibVLCSharp.Shared.MediaPlayerEventManager:OnTimeChanged (intptr)' while running in aot-only mode. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more information.
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_delegate_to_ftnptr(object)
at (wrapper managed-to-native) LibVLCSharp.Shared.EventManager+Internal.LibVLCEventAttach(intptr,LibVLCSharp.Shared.EventType,LibVLCSharp.Shared.EventCallback,intptr)
at LibVLCSharp.Shared.EventManager.AttachEvent (LibVLCSharp.Shared.EventType eventType, LibVLCSharp.Shared.EventCallback eventCallback) <0x1012fd8d0 + 0x0004f> in <b19459fb0452425c81cbd690281cf4a8#a9fdeec3d01afc70eb9d0e128ec42346>:0
at LibVLCSharp.Shared.MediaPlayerEventManager.add_TimeChanged (System.EventHandler`1[TEventArgs] value) <0x10131f884 + 0x00117> in <b19459fb0452425c81cbd690281cf4a8#a9fdeec3d01afc70eb9d0e128ec42346>:0
...
Current configuration is:
- Xcode 9.3.1
- macOS Mojave beta 5
- iOS 12 (and iOS 11.3)
- Xamarin iOS 11.12.0.4
- LibVLCSharp.dll alpha 6
- VideoLAN.LibVLC.iOS 3.0.0-alpha2