Comment 2 for bug 2042743

Revision history for this message
John Ubuntu (user597489) wrote :

I have the same issue.
Running "raw" (not snap) vlc under Ubuntu 22.04
vlc/jammy-apps-security,now 3.0.16-1ubuntu0.1~esm1 amd64 [installed]

$ vlc
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000555be8b125a0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000555be8bb27b0] main playlist: playlist is empty
[00007f7578005110] gl gl: Initialized libplacebo v4.192.1 (API v192)
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
[00007f7592382af0] avcodec decoder: Using Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1 for hardware decoding
[h264 @ 0x7f7592397800] A hardware frames or device context is required for hardware accelerated decoding.
[h264 @ 0x7f7592397800] Failed setup for format vaapi_vld: hwaccel initialisation returned error.
[00007f7592382af0] avcodec decoder error: existing hardware acceleration cannot be reused
[00007f75787fa680] gl gl: Initialized libplacebo v4.192.1 (API v192)
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
[00007f757847d1f0] gl gl: Initialized libplacebo v4.192.1 (API v192)
Assertion !p->parent->stash_hwaccel failed at src/libavcodec/pthread_frame.c:671
Aborted (core dumped)

Note #1: disabling hardware acceleration works around the issue.
`vlc --avcodec-hw=none` does not abort when seeking.

Note #2: I was not able to get a proper call stack because libavcodec.so.58 symbols are not available.
https://ubuntu.com/server/docs/service-debuginfod

[00007fff98006b30] gl gl: Initialized libplacebo v4.192.1 (API v192)
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
[00007fff923de020] avcodec decoder: Using Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1 for hardware decoding
[Thread 0x7fff7bfff640 (LWP 208405) exited]
[h264 @ 0x7fff92458300] get_buffer() failed
[h264 @ 0x7fff92458300] thread_get_buffer() failed
[h264 @ 0x7fff92458300] decode_slice_header error
[h264 @ 0x7fff92458300] no frame!
[h264 @ 0x7fff923f2d40] A hardware frames or device context is required for hardware accelerated decoding.
[h264 @ 0x7fff923f2d40] Failed setup for format vaapi_vld: hwaccel initialisation returned error.
[00007fff923de020] avcodec decoder error: existing hardware acceleration cannot be reused
[Thread 0x7fff677fe640 (LWP 208429) exited]
[Thread 0x7fff67fff640 (LWP 208428) exited]
[New Thread 0x7fff67fff640 (LWP 208430)]
[New Thread 0x7fff677fe640 (LWP 208431)]
[00007fff987ff6e0] gl gl: Initialized libplacebo v4.192.1 (API v192)
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
[Thread 0x7fff677fe640 (LWP 208431) exited]
[Thread 0x7fff67fff640 (LWP 208430) exited]
[New Thread 0x7fff67fff640 (LWP 208432)]
[New Thread 0x7fff677fe640 (LWP 208433)]
[00007fff983b65a0] gl gl: Initialized libplacebo v4.192.1 (API v192)
Assertion !p->parent->stash_hwaccel failed at src/libavcodec/pthread_frame.c:671

Thread 49 "vlc" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff97fff640 (LWP 208416)]
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140735743522368) at ./nptl/pthread_kill.c:44
Download failed: Invalid argument. Continuing without source file ./nptl/./nptl/pthread_kill.c.
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140735743522368) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140735743522368) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140735743522368, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff7d94476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff7d7a7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007fff7aa497cb in ?? () from /lib/x86_64-linux-gnu/libavcodec.so.58
#6 0x00007fff7a78c2ca in ?? () from /lib/x86_64-linux-gnu/libavcodec.so.58
#7 0x00007fff7aa498ea in ?? () from /lib/x86_64-linux-gnu/libavcodec.so.58
#8 0x00007ffff7de6ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9 0x00007ffff7e78a40 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81