Segmentation fault when using libVlc.Log
Summary
Minimal project and steps to reproduce
What is the current bug behavior?
Application crashes upon start with Segmentation fault message. If you comment out line 12 https://github.com/sajmons/LibVLCSharp.Avalonia.Sample/blob/69b3536f21706d736068357c57273a8e4f04f31a/ViewModels/MainWindowViewModel.cs#L12 from code application starts without problem.
So I guess bug happens when this line is executed: _libVlc.Log += _libVlc_Log;
What is the expected correct behavior?
Application should start normally.
Does it work on other plaforms? Does it work with the official VLC apps?
This bug only occours on Raspberry PI OS Bullseye ARM64 Linux platform (Raspberry PI 4 B+ 4GB RAM). On Windows 11 Pro 22H2 x64 (AMD Ryzen 7 3700X 8-Core Processor, 16GB RAM) it works.
Relevant LibVLC logs and/or screenshots
simon@raspberrypi:~/Downloads/linux-arm64 $ ./LibVLCSharp.Avalonia.Sample
Xlib: sequence lost (0x1002d > 0x2f) in reply type 0x0!
Xlib: sequence lost (0x10032 > 0x34) in reply type 0x0!
Xlib: sequence lost (0x10050 > 0x52) in reply type 0x0!
Xlib: sequence lost (0x10055 > 0x57) in reply type 0x0!
revision `C
VLC media player - `C
`C
configured with ��a�
Segmentation fault
simon@raspberrypi:~/Downloads/linux-arm64 $ apt show libvlc-dev
Package: libvlc-dev
Version: 1:3.0.20-0+rpt1+deb11u1
Priority: optional
Section: libdevel
Source: vlc
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Installed-Size: 443 kB
Depends: libvlc5 (= 1:3.0.20-0+rpt1+deb11u1)
Homepage: https://www.videolan.org/vlc/
Download-Size: 170 kB
APT-Manual-Installed: yes
APT-Sources: http://archive.raspberrypi.org/debian bullseye/main arm64 Packages
Description: development files for libvlc
This package contains headers and a static library required to build
standalone applications that use VLC features.
.
VLC is the VideoLAN project's media player. It plays MPEG, MPEG-2, MPEG-4,
DivX, MOV, WMV, QuickTime, WebM, FLAC, MP3, Ogg/Vorbis files, DVDs, VCDs,
podcasts, and multimedia streams from various network sources.
Environment
- OS: Raspberry PI OS
- Version Bullseye ARM64 bit
- Device: Raspberry PI 4 B+
- LibVLC version and architecture: libvlc-dev 1:3.0.20-0+rpt1+deb11u1 arm64
- LibVLCSharp: LibVLCSharp.Avalonia 3.8.2