[Bug]: System crash on Linux machine BMG when running a specific case in ffmpeg-libvpl/gst-libvpl
- Dominant language
- C
- Stars
- 1.2k
- Forks
- 383
- Avg merge
- 8d 18h
- Merged PRs (30d)
- 4
Description
### Which component impacted?
Decode
### Is it regression? Good in old configuration?
No, this issue exist a long time
### What happened?
On Linux machine BMG, running a specific case in ffmpeg-libvpl or gst-libvpl causes a system crash. The same case runs successfully with ffmpeg-vaapi and gst-va.
cmd:
`ffmpeg -v verbose -hwaccel qsv -init_hw_device qsv=qsv,child_device=/dev/dri/renderD128 -hwaccel_output_format nv12 -hwaccel_flags allow_profile_mismatch -c:v hevc_qsv -i input.bin -lavfi 'null' -c:v rawvideo -pix_fmt yuv420p -fps_mode passthrough -noautoscale -vframes 8 -y -f tee '[f=md5]pipe:1'`
log:
```
[2024-10-29 14:51:32.613905] DEBUG: slash: [in#0/hevc @ 0x56116b298f00] EOF while reading input
[2024-10-29 14:51:32.613973] DEBUG: slash: [in#0/hevc @ 0x56116b298f00] Terminating thread with return code 0 (success)
[2024-10-29 14:51:32.614018] DEBUG: slash: [AVHWDeviceContext @ 0x7f7bd4002dc0] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.4.2 (b6b411f58).
[2024-10-29 14:51:32.614052] DEBUG: slash: [AVHWDeviceContext @ 0x7f7bd4002dc0] Driver not found in known nonstandard list, using standard behaviour.
[2024-10-29 14:51:32.637614] DEBUG: slash: [hevc_qsv @ 0x56116b316080] Decoder: output is video memory surface
[2024-10-29 14:51:32.637663] DEBUG: slash: [hevc_qsv @ 0x56116b316080] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[2024-10-29 14:51:32.641644] DEBUG: slash: [AVHWDeviceContext @ 0x7f7bd400bc40] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.4.2 (b6b411f58).
[2024-10-29 14:51:32.641735] DEBUG: slash: [AVHWDeviceContext @ 0x7f7bd400bc40] Driver not found in known nonstandard list, using standard behaviour.
[2024-10-29 14:51:32.642581] DEBUG: slash: [hevc_qsv @ 0x56116b316080] Decoder: output is video memory surface
[2024-10-29 14:51:32.642629] DEBUG: slash: [hevc_qsv @ 0x56116b316080] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[2024-10-29 14:51:38.537611] DEBUG: slash: [AVHWFramesContext @ 0x7f7bd4014c80] Use Intel(R) oneVPL to create MFX session, API version is 2.13, the required implementation version is 2.13
[2024-10-29 14:51:38.544567] DEBUG: slash: [AVHWFramesContext @ 0x7f7bd4014c80] Initialize MFX session: implementation version is 2.13
[2024-10-29 14:51:38.594117] DEBUG: slash: [graph 0 input from stream 0:0 @ 0x7f7bc00032c0] w:1280 h:720 pixfmt:nv12 tb:1/1200000 fr:25/1 sar:0/1 csp:unknown range:tv
[2024-10-29 14:51:38.594289] DEBUG: slash: [auto_scale_0 @ 0x7f7bc0005fc0] w:iw h:ih flags:'' interl:0
[2024-10-29 14:51:38.594370] DEBUG: slash: [format @ 0x7f7bc0003c80] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_null_0' and the filter 'format'
[2024-10-29 14:51:38.597107] DEBUG: slash: [auto_scale_0 @ 0x7f7bc0005fc0] w:1280 h:720 fmt:nv12 csp:unknown range:tv sar:0/1 -> w:1280 h:720 fmt:yuv420p csp:unknown range:tv sar:0/1 flags:0x00000004
[2024-10-29 14:51:38.597175] DEBUG: slash: [auto_scale_0 @ 0x7f7bc0005fc0] [framesync @ 0x7f7bc0006128] Selected 1/1200000 time base
[2024-10-29 14:51:38.597202] DEBUG: slash: [auto_scale_0 @ 0x7f7bc0005fc0] [framesync @ 0x7f7bc0006128] Sync level 1
[2024-10-29 14:51:38.597244] DEBUG: slash: [graph 0 input from stream 0:0 @ 0x7f7bc00032c0] video frame properties congruent with link at pts_time: 0
[2024-10-29 14:51:38.600628] DEBUG: slash: [tee @ 0x56116b354bc0] filename:'pipe:1' format:md5
[2024-10-29 14:51:38.600681] DEBUG: slash: [tee @ 0x56116b354bc0] stream:0 codec:rawvideo type:video bsfs: null
[2024-10-29 14:51:38.600704] DEBUG: slash: Output #0, tee, to '[f=md5]pipe:1':
[2024-10-29 14:51:38.600721] DEBUG: slash: Metadata:
[2024-10-29 14:51:38.600744] DEBUG: slash: encoder : Lavf61.9.100
[2024-10-29 14:51:38.600762] DEBUG: slash: Stream #0:0: Video: rawvideo, 1 reference frame (I420 / 0x30323449), yuv420p(tv, progressive, left), 1280x720, q=2-31, 276480 kb/s, 25 fps, 25 tbn
[2024-10-29 14:51:38.600780] DEBUG: slash: Metadata:
[2024-10-29 14:51:38.600798] DEBUG: slash: encoder : Lavc61.22.100 rawvideo
[2024-10-29 14:51:38.600815] DEBUG: slash: [out#0/tee @ 0x56116b2de400] Starting thread...
[2024-10-29 14:51:38.603465] DEBUG: slash: [vist#0:0/hevc @ 0x56116b262140] [dec:hevc_qsv @ 0x56116b3155c0] Decoder thread received EOF packet
[2024-10-29 14:51:39.116824] DEBUG: slash: frame= 2 fps=0.3 q=-0.0 size=N/A time=00:00:00.08 bitrate=N/A speed=0.0133x
......
[2024-10-29 14:53:08.168409] DEBUG: slash: frame= 3 fps=0.0 q=-0.0 size=N/A time=00:00:00.12 bitrate=N/A speed=0.00126x
```
### What's the usage scenario when you are seeing the problem?
Others
### What impacted?
This issue prevents normal testing of ffmpeg-libvpl and gst-libvpl.
### Debug Information
My environment:
kernel: 6.11.0-rc4+
OS: Ubuntu 22.04.5 LTS
```
["libva"]="25381db75af9ff7bb15eb08b4bda95d09cf669b0 (2024-09-25 08:25:55 +0000)"
["gmmlib"]="c743f06b430fab6debcb9e0bf82131636e4ede7b (2024-10-18 20:42:51 +0530)"
["libva-utils"]="908e2014546bf133cdc8a72cc0d3f2518d04cffc (2024-07-16 13:30:52 +0800)"
["media-driver"]="b6b411f58a66e58a7f8e6a6fd3ba4c9a3abb97f5 (2024-10-28 12:35:55 +0800)"
["vpl_runtime"]="887147421dd40e6c5bb025a0588694b43c540cde (2024-10-25 16:17:53 +0800)"
["vpl_dispatcher"]="5f6bd8a1e753c8f63a3fd8b36894d6968b808a6d (2024-08-22 15:59:59 +0800)"
["cartwheel-ffmpeg"]="8ca7b150546496170903fa468fa3df64a2b6929c (2024-10-28 10:00:15 +0000)"
["openh264"]="f70c905b824207da9c5b01902cec429335d05674 (2024-10-10 15:02:38 +0900)"
["cartwheel-gstreamer"]="d01041aba9c87608b6d31d71d5cb9ea0f3a6b482 (2024-10-27 10:00:57 +0000)"
["gst-checksumsink"]="e1994e1b36dea72b3016624ca724ddf6dd6dc986 (2022-10-11 11:26:19 -0400)"
```
### Do you want to contribute a patch to fix the issue?
None
Contributor guide
Assessment
This issue has not been assessed yet.