Environment: -------------- Platform:SGB Libva: (staging) commit 38c94cd922473095814ed9a9f99ad98fcc9c285d Intel-driver: (staging) commit c0ef9d99df37ae45589fecb898727be495e50304 gst-vaapi: (qa) commit 01c92b04b095be9163976a53ac2c4305c84fa274 Bug Info: -------------- GPU hang during decoding FM1_FT_E.264 [20438.602011] [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung FM1_FT_E.264 176x144 Baseline 2.0 interlace? no Reproduce Steps: -------------- 1.xinit& 2.gst-launch-0.10 filesrc location=/home/AVC_conformance/Base_Ext_Main_profile/FM1_FT_E.264 ! h264parse ! vaapidecode ! vaapisink sync=false Comments: -------------- On IVB platform: There is garbage when playing FM1_FT_E.264 file by gst-vaapi, but it won’t cause GPU hang.
I didn't reproduce this bug on xiaowei's platform, not sure whether difference outside of video create the issue, let's check it offline. by the way, you'd add " ! video/x-h264,framerate=10/1 " in the command line. otherwise there will be some exception for raw stream since no fps is provided, -- sometimes you see one freezed frame with error from gst.
Created attachment 72704 [details] skip stream parsing/decoding when there is corrupt sps/pps until a future correct one reset got_sps/got_pps when there are corrupted sps/pps header. this can stop (incorrect) slice parsing and frame decoding until there is a new valid one.
Created attachment 72705 [details] update the patch made mistake in the previous patch, correct it
Test with the patch, it won't cause hang on SNB now. but the clip still can't be decoded correctly, garbage shown, same behavior as IVB/HSW.
the media content itself is corrupted, one PPS doesn't have enough data. so, what we could do is to playback the correctly segment correctly. the rest part(with corrupted header) can't playback well. mplayer stops playback when it meets the corrupt header: mplayer: i965_decoder_utils.c:269: gen5_fill_avc_ref_idx_state: Assertion `frame_idx < 16' failed.
this issue can't be reproduced.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.