Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • LibVLCSharp LibVLCSharp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 77
    • Issues 77
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLAN
  • LibVLCSharpLibVLCSharp
  • Issues
  • #222

Closed
Open
Created Sep 23, 2019 by Diego Stamigni@diegostamigni

tvOS crashes when listening to MediaPlayer events on device build

What is the current bug behavior?

tvOS app crashes when listening to MediaPlayer events (or any event coming from LibVLCSharp) on device build, for example, OnTimeChanged event.

What is the expected correct behavior?

The app should not crash.

Relevant logs and/or screenshots

System.ExecutionEngineException: Attempting to JIT compile method '(wrapper native-to-managed) void LibVLCSharp.Shared.MediaPlayerEventManager:OnTimeChanged (intptr)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/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+Native.LibVLCEventAttach(intptr,LibVLCSharp.Shared.EventType,LibVLCSharp.Shared.EventCallback,intptr)
  at LibVLCSharp.Shared.EventManager.AttachNativeEvent (LibVLCSharp.Shared.EventType eventType, LibVLCSharp.Shared.EventCallback eventCallback) [0x0000c] in <39c5ff9aca5246f28f6e67d4683b1d22>:0 
  at LibVLCSharp.Shared.EventManager.Attach (LibVLCSharp.Shared.EventType eventType, System.Int32& registrationCount, System.Action managedSubscribe, System.Func`1[TResult] setCallback) [0x00013] in <39c5ff9aca5246f28f6e67d4683b1d22>:0 
  at LibVLCSharp.Shared.MediaPlayerEventManager.AttachEvent[T] (LibVLCSharp.Shared.EventType eventType, System.EventHandler`1[TEventArgs] eventHandler) [0x002a6] in <39c5ff9aca5246f28f6e67d4683b1d22>:0 
  at LibVLCSharp.Shared.MediaPlayer.add_TimeChanged (System.EventHandler`1[TEventArgs] value) [0x00006] in <39c5ff9aca5246f28f6e67d4683b1d22>:0 

Environment

  • OS: tvOS
  • Version 12 and 13
  • Device: Apple TV
  • LibVLC version and architecture: tvOS 3.2.0
  • LibVLCSharp version 3.2.2
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking

VideoLAN code repository instance