-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Arc A750 (DG2) shows segfault or bus error with raw video from GStreamer ximagesrc (works fine with AMD) #1800
Comments
unaligned size when copy vaImage data to surface |
Auto Created VSMGWL-73515 for further analysis. |
@ehfd Do you mean it is Kernel espcail issue? Thanks |
@fenhu Not sure. Check: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3331 |
@ehfd Thanks |
@fenhu , gdb --args gst-launch-1.0 ximagesrc show-pointer=0 remote=1 blocksize=16384 use-damage=0 ! "video/x-raw,framerate=60/1" ! vapostproc scale-method=fast ! "video/x-raw(memory:VAMemory),format=NV12" ! vah264lpenc aud=false b-frames=0 cpb-size=67 dct8x8=false key-int-max=1024 mbbrc=enabled num-slices=4 rate-control=cbr target-usage=4 bitrate=4000 ! "video/x-h264,profile=high,stream-format=byte-stream" ! h264parse ! queue ! fakesink |
Install necessary GStreamer 1.24 packages (gst-plugins-{base,good,bad}). The funny thing here is that when gdb is used the SIGSEGV or bus error occurs less frequently. |
Filter the history test data about upstream for 2 month refer media part on DG2 platform, couldn't find the same issue refer vah264lpenc |
Which component impacted?
Encode, Video Processing
Is it regression? Good in old configuration?
No, this issue exist a long time
What happened?
gdb --args gst-launch-1.0 ximagesrc show-pointer=0 remote=1 blocksize=16384 use-damage=0 ! "video/x-raw,framerate=60/1" ! vapostproc scale-method=fast ! "video/x-raw(memory:VAMemory),format=NV12" ! vah264lpenc aud=false b-frames=0 cpb-size=67 dct8x8=false key-int-max=1024 mbbrc=enabled num-slices=4 rate-control=cbr target-usage=4 bitrate=4000 ! "video/x-h264,profile=high,stream-format=byte-stream" ! h264parse ! queue ! fakesink
Similar issue with AV1 and VP9 encoder and replacing
vapostproc
to softwarevideoconvert
works fine, so very likely that this is a postproc issue.ximagesrc
outputs a BGRx formatvideo/x-raw
stream.The same pipeline works totally fine in an AMD Vega Frontier Edition in the same environment. The GStreamer va plugin maintainer (He Junyan, Intel @HeJunyan) requested to post the issue here, as this is seemingly an Arc driver issue.
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3331
Backtrace:
arc_segfault.txt
arc_segfault2.txt
arc_bus.txt
Either the segfault or the bus error (after a brief flash of valid video) happens about 80-90% of the time (the parameters of the encoder and postproc doesn't matter), and even if the encoder is started, it is stuck at around 30 fps (the AMD encoder achieves full 60 fps). Similar issues existed back in Ubuntu 22.04 with Intel's repository but was expected to be fixed in Ubuntu 24.04 and kernel module 6.8.
What's the usage scenario when you are seeing the problem?
Transcode for media delivery
What impacted?
Basic postproc and encoding is very unstable on the Arc A750 GPU with Linux, thus usage for transcoding is very unreliable.
Debug Information
by-path card0 card1 renderD128 renderD129
&pci-0000:07:00.0-card pci-0000:07:00.0-render pci-0000:0e:00.0-card pci-0000:0e:00.0-render
(by-path)07:00.0 VGA compatible controller [0300]: Intel Corporation DG2 [Arc A750] [8086:56a1] (rev 08)
0e:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XTX [Radeon Vega Frontier Edition] [1002:6863]
4.
libva_trace.zip
6.
No Hanging
Do you want to contribute a patch to fix the issue?
None
The text was updated successfully, but these errors were encountered: