intel / libvpl

Intel® Video Processing Library (Intel® VPL) API, dispatcher, and examples
https://intel.github.io/libvpl/
MIT License
262 stars 80 forks source link

[BUG]onevpl runtime call TileSet error #59

Closed wenqingx closed 1 year ago

wenqingx commented 2 years ago

platform:ADL TGL DG2 describe:When I run the code stream of decode AV1 in gst-libvpl, I will encounter segmentation fault (core dumped).It is random. cmd: gst-launch-1.0 -vf filesrc location=input_av1.ivf ! ivfparse ! av1parse ! msdkav1dec ! videoconvert chroma-mode=none dither=0 ! video/x-raw,format=I420 ! checksumsink2 qos=false file-checksum=false frame-checksum=false plane-checksum=false eos-after=100 dump-output=true dump-location=output.yuv

gdb gst-launch-1.0: run filesrc location=input_av1.ivf ! ivfparse ! av1parse ! msdkav1dec ! fakesink

log:Thread 66 "ivfparse0:sink" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffea7fc700 (LWP 954016)] __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:262 262 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory. (gdb) where

0 __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:262

1 0x00007ffff632aeec in UMC_AV1_DECODER::TileSet::TileSet(UMC::MediaData*, std::vector<UMC_AV1_DECODER::TileLocation, std::allocator > const&) ()

at /home/media-ci/gst-vaapi/media/build/lib/libmfx-gen.so.1.2.7

2 0x00007ffff632b4bf in UMC_AV1_DECODER::AV1DecoderFrame::AddTileSet(UMC::MediaData*, std::vector<UMC_AV1_DECODER::TileLocation, std::allocator > const&) ()

at /home/media-ci/gst-vaapi/media/build/lib/libmfx-gen.so.1.2.7

3 0x00007ffff632814d in UMC_AV1_DECODER::AV1Decoder::GetFrame(UMC::MediaData, UMC::MediaData) () at /home/media-ci/gst-vaapi/media/build/lib/libmfx-gen.so.1.2.7

4 0x00007ffff6323f9b in VideoDECODEAV1::SubmitFrame(mfxBitstream, mfxFrameSurface1, mfxFrameSurface1**) () at /home/media-ci/gst-vaapi/media/build/lib/libmfx-gen.so.1.2.7

5 0x00007ffff63243ff in VideoDECODEAV1::DecodeFrameCheck(mfxBitstream, mfxFrameSurface1, mfxFrameSurface1*, MFX_ENTRY_POINT) () at /home/media-ci/gst-vaapi/media/build/lib/libmfx-gen.so.1.2.7

peterxie1 commented 2 years ago

Looks like a GPU Runtime issue. we will file a bug and track it. Thanks.

wangyan-intel commented 1 year ago

Just sync with @xhaihao If this is regression, we need know which commit has not this issue for bisect. If it is bug, need more debugging for root cause.

wenqingx commented 1 year ago

@wangyan-intel sorry,this is not a regression, but a random R2R problem.

wangyan-intel commented 1 year ago

@wenqingx Could you please provide the clip for debugging?

wangyan-intel commented 1 year ago

This issue has been fixed by https://github.com/intel-innersource/drivers.gpu.media.vpl.public/pull/3147

wangyan-intel commented 1 year ago

@wenqingx Could you please close this issue? Thanks.

wenqingx commented 1 year ago

@wangyan-intel thanks your patch, close.