mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
26.71k stars 2.84k forks source link

vo=vaapi crash issue #14253

Closed dudangman closed 1 month ago

dudangman commented 1 month ago

mpv Information

[cplayer] mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer] libplacebo version: v6.338.2
[cplayer] FFmpeg version: 6.1.1-3ubuntu5
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       58.29.100
[cplayer]    libavcodec      60.31.102
[cplayer]    libavformat     60.16.100
[cplayer]    libswscale      7.5.100
[cplayer]    libavfilter     9.12.100
[cplayer]    libswresample   4.12.100

Other Information

Reproduction Steps

use --hwdec=vaapi --vo=gpu works well. use --hwdec=vaapi --vo=vaapi cause #crash. crash backtrace:

warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/spa-0.2/audioconvert/libspa-audioconvert.so
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [vaapi] 1920x1080 vaapi[nv12]
AV: 00:00:00 / 00:01:31 (0%) A-V: -0.030 Dropped: 1
Thread 12 "vo" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd34006c0 (LWP 32083)]
0x00005555556927c3 in ta_set_parent (ptr=0x7fffb0273f90, ta_parent=<optimized out>) at ../ta/ta.c:95
95              ch->prev->next = ch->next;
(gdb) bt
#0  0x00005555556927c3 in ta_set_parent (ptr=0x7fffb0273f90, ta_parent=<optimized out>) at ../ta/ta.c:95
#1  0x0000555555692bcc in ta_free (ptr=0x7fffb0273f90) at ../ta/ta.c:244
#2  0x0000555555692b9e in ta_free (ptr=0x7fffb0020470) at ../ta/ta.c:242
#3  0x00005555556da23a in draw_frame (vo=0x5555559299e0, frame=<optimized out>) at ../video/out/vo_vaapi.c:582
#4  0x0000555555680189 in render_frame (vo=0x5555559299e0) at ../video/out/vo.c:973
#5  vo_thread (ptr=0x5555559299e0) at ../video/out/vo.c:1105
#6  0x00007ffff329ca94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#7  0x00007ffff3329c3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Expected Behavior

--vo=vaapi work well.

Actual Behavior

crash when play

Log File

mpv_vaapi.log

Sample Files

na

I carefully read all instruction and confirm that I did the following: