[SOLVED] VLC Segfault MP4 and MKV Files

Hello,

Some weeks ago VLC started to segfault when trying to play MP4 and MKV videos. It loads the file then crashes after about 4 seconds.
I have no trouble playing them with MPV, also there is no issue with AVI, MOV or audio files.

I have tried looking around for a fix, but nothing I found seems similar to my issue.

I’m hoping someone here will be able to help.

(I’m quite happy with MPV but I like to stream to my Chromecast and VLC makes it easy.)

(Sorry, a lot of info to follow)

VLC 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)

When I play an MP4 with the following specification.

MP4

Size: 440707 KB (430 MB)
Length: 00:05:58
Demuxer: lavf

Video
Resolution: 2538 x 1080
Aspect ratio: 2.35
Format: h264
Bitrate: 13977 kbps
Frames per second: 23.976025
Selected codec: h26

Audio
Format: aac
Bitrate: 321 kbps
Rate: 48000 Hz
Channels: 2
Selected codec: aac

I get this error.

[000055d1b74615b0] main libvlc: Running vlc with the default interface. Use ‘cvlc’ to use vlc without interface.
[000055d1b7521450] main playlist: playlist is empty
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[00007f34a0006fa0] gl gl: Initialized libplacebo v2.72.0 (API v72)
[00007f34b8cbad00] avcodec decoder: Using Mesa Gallium driver 20.3.1 for AMD CAICOS (DRM 2.50.0 / 5.10.2-2-MANJARO, LLVM 11.0.0) for hardware decoding
Segmentation fault (core dumped)

When I play MKV with these specs I get a different error.

MKV

Size: 3301698 KB (3224 MB)
Length: 00:52:47
Demuxer: mkv

Video
Resolution: 1920 x 1080
Aspect ratio: 1.77778
Format: h264
Bitrate: 8960 kbps
Frames per second: 24.000000
Selected codec: h264

Audio
Format: eac3
Bitrate: 640 kbps
Rate: 48000 Hz
Channels: 6
Selected codec: eac3

[000056493e9065b0] main libvlc: Running vlc with the default interface. Use ‘cvlc’ to use vlc without interface.
[000056493e9c6450] main playlist: playlist is empty
kf.kio.core: We got some errors while running testparm “Error loading services.”
kf.kio.core: We got some errors while running ‘net usershare info’
kf.kio.core: “Can’t load /etc/samba/smb.conf - run testparm to debug it\n”
[000056493e9feb60] main audio output error: too low audio sample frequency (0)
[00007f8ae4d12dc0] main decoder error: failed to create audio output
[000056493e9feb60] vlcpulse audio output error: digital pass-through stream connection failure: Not supported
[000056493e9feb60] main audio output error: module not functional
[00007f8ae4d12dc0] main decoder error: failed to create audio output
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[00007f8ad0006fa0] gl gl: Initialized libplacebo v2.72.0 (API v72)
[00007f8ae4c15450] avcodec decoder: Using Mesa Gallium driver 20.3.1 for AMD CAICOS (DRM 2.50.0 / 5.10.2-2-MANJARO, LLVM 11.0.0) for hardware decoding
Segmentation fault (core dumped)

System Info:>

System:
Kernel: 5.10.2-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=809dd66d-5120-40d1-94ff-00d4130e88ca rw quiet apparmor=1
security=apparmor resume=UUID=be9fadf8-acff-441b-98a7-024e5a49a0bd
udev.log_priority=3
Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM
Distro: Manjaro Linux
Machine:
Type: Desktop System: ASUS product: All Series v: N/A serial:
Mobo: ASUSTeK model: AM1M-A v: Rev X.0x serial:
BIOS: American Megatrends v: 0702 date: 06/25/2014
CPU:
Info: Quad Core model: AMD Athlon 5350 APU with Radeon R3 bits: 64 type: MCP
arch: Jaguar family: 16 (22) model-id: N/A stepping: 1 microcode: 700010F
L2 cache: 2 MiB
flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 16373
Speed: 798 MHz min/max: 800/2050 MHz Core speeds (MHz): 1: 798 2: 798 3: 798
4: 798
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Full AMD retpoline, STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]
vendor: XFX Pine driver: radeon v: kernel bus ID: 01:00.0 chip ID: 1002:6779
Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: ati,radeon
unloaded: modesetting alternate: fbdev,vesa display ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 102
size: 477x268mm (18.8x10.6") diag: 547mm (21.5")
OpenGL: renderer: AMD CAICOS (DRM 2.50.0 / 5.10.2-2-MANJARO LLVM 11.0.0)
v: 3.3 Mesa 20.3.1 compat-v: 3.1 direct render: Yes
Audio:
Device-1: AMD FCH Azalia vendor: ASUSTeK driver: snd_hda_intel v: kernel
bus ID: 00:14.2 chip ID: 1022:780d
Sound Server: ALSA v: k5.10.2-2-MANJARO
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8169 v: kernel port: d000 bus ID: 02:00.0
chip ID: 10ec:8168
IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac:
Drives:
Local Storage: total: 763.85 GiB used: 518.92 GiB (67.9%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: DT01ACA050
size: 465.76 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
serial: rev: A750
ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Seagate model: External Drive
size: 298.09 GiB block size: physical: 512 B logical: 512 B serial:
Partition:
ID-1: / raw size: 39.06 GiB size: 38.2 GiB (97.79%) used: 26.08 GiB (68.3%)
fs: ext4 dev: /dev/sda2 maj-min: 8:2
ID-2: /home raw size: 418.88 GiB size: 411.31 GiB (98.19%)
used: 245.5 GiB (59.7%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
mapped: luks-6e4d9781-155e-471e-9b7c-9d89d7b2ac00
Swap:
Kernel: swappiness: 60 (default) cache pressure: 100 (default)
ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sda1 maj-min: 8:1
Sensors:
System Temperatures: cpu: 25.9 C mobo: N/A gpu: radeon temp: 52.5 C
Fan Speeds (RPM): N/A
Info:
Processes: 209 Uptime: 53m wakeups: 0 Memory: 9.66 GiB
used: 2.78 GiB (28.7%) Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages:
pacman: 1476 lib: 433 flatpak: 0 Shell: Bash v: 5.1.0 running in: konsole
inxi: 3.2.01

Have you tried to set in Video settings the output to VDPAU, restart VLC and make the test?

1 Like

Hi bogdancovacui, thank you for the suggestion. Although VDPAU didn’t work it led me to try other outputs and XVideo (XCB) did the trick.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.