Skip to content

LibVLCSharp.Shared.MediaEventManager.OnMediaStateChanged System.NullReferenceException

  • LibVLC: 0.0.3
  • LibVLCSharp Forms: 0.0.1
  • VideoLAN.LibVLC.Android: 3.0.0

From time to time I'm getting "System.NullReferenceException: Object reference not set to an instance of an object." error while trying to Stop MediaPlayer.

The error appears for about 30-40% of time on Stop action process.

Trace: System.NullReferenceException: Object reference not set to an instance of an object. at LibVLCSharp.Shared.MediaEventManager.OnMediaStateChanged (System.IntPtr ptr) [0x00000] in :0 at (wrapper managed-to-native) LibVLCSharp.Shared.MediaPlayer+Native.LibVLCMediaPlayerStop(intptr) at LibVLCSharp.Shared.MediaPlayer.Stop () [0x00006] in :0

Any thoughts concerning this issue?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information