[FFmpeg-trac] #10847(avcodec:new): Segmentaion fault using vulkan decoder on Windows with NVIDIA
FFmpeg
trac at avcodec.org
Thu Jun 27 07:48:03 EEST 2024
#10847: Segmentaion fault using vulkan decoder on Windows with NVIDIA
-----------------------------------+-----------------------------------
Reporter: Sn0wCrack | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: 6.1 | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-----------------------------------+-----------------------------------
Comment (by triffid_hunter):
I ran into this today via mpv on Linux.
Using ffmpeg-6.1.1-r5 Gentoo package, nVidia proprietary driver 550.90.07
on an RTX3070.
$ mpv --gpu-api=vulkan --hwdec=vulkan file.mp4
…
[vo/gpu-next/libplacebo] Available surface configurations:
[vo/gpu-next/libplacebo] 0: VK_FORMAT_B8G8R8A8_UNORM
VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
[vo/gpu-next/libplacebo] 1: VK_FORMAT_B8G8R8A8_SRGB
VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
[vo/gpu-next/libplacebo] Picked surface configuration 0:
VK_FORMAT_B8G8R8A8_UNORM + VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
[vo/gpu-next] Assuming 59.950550 FPS for display sync.
[vo/gpu-next] Loading hwdec drivers for format: 'vulkan'
[vo/gpu-next] Loading hwdec driver 'vulkan'
Thread 1 "mpv" received signal SIGSEGV, Segmentation fault.
0x00007ffff729113e in ff_vk_exec_add_dep_frame () from
/usr/lib64/libavcodec.so.60
(gdb) bt
#0 0x00007ffff729113e in ff_vk_exec_add_dep_frame () at
/usr/lib64/libavcodec.so.60
#1 0x00007ffff7295f28 in ff_vk_decode_frame () at
/usr/lib64/libavcodec.so.60
#2 0x00007ffff7298a42 in vk_h264_end_frame () at
/usr/lib64/libavcodec.so.60
#3 0x00007ffff6e9bc01 in ff_h264_field_end () at
/usr/lib64/libavcodec.so.60
#4 0x00007ffff6eaca6f in h264_decode_frame () at
/usr/lib64/libavcodec.so.60
#5 0x00007ffff6dbeac7 in decode_receive_frame_internal () at
/usr/lib64/libavcodec.so.60
#6 0x00007ffff6dbf16c in avcodec_send_packet () at
/usr/lib64/libavcodec.so.60
#7 0x0000555555625db7 in ??? ()
#8 0x00005555555b88c9 in ??? ()
…
The patch kindly offered by Sn0wCrack does seem to prevent the crash from
occurring with a quick test.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10847#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list