crash on mediaplayer stop with callbacks (3.4.3+)
Summary
"An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module." when calling mediaplayer stop
Minimal project and steps to reproduce
https://github.com/ispysoftware/testlibvlcsharp/
using latest VLC 3.0.10 64 bit set the path to vlc directory, run the application, see a crash in the CLR This works fine on 3.4.2 and is crashing out on 3.4.3+
What is the current bug behavior?
"An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module." when calling mediaplayer stop
What is the expected correct behavior?
Application stops the media player and exits
Does it work on other plaforms? Does it work with the official VLC apps?
no, n/a
vlc: display name changed: VLC media player (LibVLC 3.0.10) vlc: VLC media player - 3.0.10 Vetinari vlc: Copyright © 1996-2020 the VideoLAN team vlc: configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable-shout' '--enable-goom' '--enable-caca' '--enable-qt' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--host=x86_64-w64-mingw32' '--with-breakpad=https://win.crashes.videolan.org' 'host_alias=x86_64-w64-mingw32' 'PKG_CONFIG_LIBDIR=/home/jenkins/workspace/vlc-release/windows/vlc-release-win32-x64/contrib/x86_64-w64-mingw32/lib/pkgconfig' vlc: revision 3.0.10-0-g7f145afa84 vlc: creating audio output vlc: looking for audio output module matching "any": 6 candidates vlc: version 2 session control unavailable vlc: using default device vlc: volume from -64.000000 dB to +0.000000 dB with 0.031250 dB increments vlc: using audio output module "mmdevice" vlc: keeping audio output vlc: Creating an input for 'screen://' vlc: using timeshift granularity of 50 MiB vlc: using timeshift path: C:\Users\sporn\AppData\Local\Temp vlc: 'screen://' gives access
screen' demux 'any' path '
vlc: creating demux: access='screen' demux='any' location='' file='(null)'
vlc: looking for access_demux module matching "screen": 15 candidates
vlc: screen width: 3440, height: 1440, depth: 32
vlc: capturing subscreen top: 0, left: 0, width: 3440, height: 1440
vlc: looking for video decoder module matching "any": 19 candidates
vlc: using access_demux module "screen"
vlc: selecting program id=0
vlc: invalid frame rate 0/0, using 25 fps instead
vlc: using video decoder module "rawvideo"
vlc: looking for meta reader module matching "any": 2 candidates
vlc: Trying Lua scripts in C:\Users\sporn\AppData\Roaming\vlc\lua\meta\reader
vlc: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader
vlc: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.luac
vlc: no meta reader modules matched
vlc: screen://' successfully opened vlc: Buffering 0% vlc: looking for text renderer module matching "any": 3 candidates vlc: Using DWrite backend vlc: DWrite_GetFamily(): family name: Arial vlc: DWrite_ParseFamily(): using font at index 2 with weight 400 for bold: 0, italic: 1 vlc: using text renderer module "freetype" vlc: looking for video converter module matching "any": 24 candidates vlc: DWrite_ParseFamily(): using font at index 3 with weight 700 for bold: 1, italic: 1 vlc: DWrite_ParseFamily(): using font at index 0 with weight 400 for bold: 0, italic: 0 vlc: DWrite_ParseFamily(): using font at index 1 with weight 700 for bold: 1, italic: 0 vlc: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality) vlc: using video converter module "swscale" vlc: looking for video converter module matching "any": 24 candidates vlc: YUVP to YUVA converter vlc: using video converter module "yuvp" vlc: looking for vout window module matching "none": 3 candidates vlc: Opening vout display wrapper vlc: Deinterlacing available vlc: no vout window modules matched vlc: looking for vout display module matching "vmem": 12 candidates vlc: deinterlace -1, mode auto, is_needed 0 VideoFormat vlc: VoutDisplayEvent 'resize' 3440x1440 vlc: using vout display module "vmem" vlc: VoutDisplayEvent 'window state' 0 vlc: VoutDisplayEvent 'resize' 3440x1440 vlc: looking for text renderer module matching "any": 3 candidates vlc: original format sz 3440x1440, of (0,0), vsz 3440x1440, 4cc RV32, sar 1:1, msk r0xff0000 g0xff00 b0xff vlc: removing module "freetype" vlc: Using DWrite backend vlc: DWrite_ParseFamily(): using font at index 0 with weight 400 for bold: 0, italic: 0 vlc: DWrite_ParseFamily(): using font at index 1 with weight 700 for bold: 1, italic: 0 vlc: DWrite_GetFamily(): family name: Arial vlc: DWrite_ParseFamily(): using font at index 2 with weight 400 for bold: 0, italic: 1 vlc: DWrite_ParseFamily(): using font at index 3 with weight 700 for bold: 1, italic: 1 vlc: VoutDisplayEvent 'window state' 0 vlc: using text renderer module "freetype" vlc: Failed to set on top vlc: Received first picture vlc: Stream buffering done (1000 ms in 1001 ms) vlc: Decoder wait done in 0 ms vlc: buffer deadlock prevented vlc: auto hiding mouse cursor vlc: killing decoder fourcc
RV32'
vlc: reusing provided vout
vlc: removing module "screen"
vlc: Program doesn't contain anymore ES
vlc: removing module "mmdevice"
vlc: removing module "rawvideo"
vlc: saving a free vout
An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module.`
Environment
- OS: Windows 10 64 bit
- Version 3.4.5 (libvlcsharp) 3.0.10 VLC
- Device: Windows 10 64 bit
- LibVLC version and architecture 3.0.10 x64
- LibVLCSharp version 3.4.5
Possible fixes
Works fine on 3.4.2, broken on 3.4.3+