Bug 100972

Summary: r600g: vaapi encoder SIGFPE
Product: Mesa Reporter: Martin Bednar <martin>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact: Default DRI bug account <dri-devel>
Severity: normal    
Priority: medium CC: martin
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: possible fix (is 0 a valid value?)

Description Martin Bednar 2017-05-08 15:48:38 UTC
Created attachment 131262 [details] [review]
possible fix (is 0 a valid value?)

Program received signal SIGFPE, Arithmetic exception.
0x00007fffe5c86f07 in handleVAEncSequenceParameterBufferType (drv=0x5555557ec2b0, context=0x555555a42c70, buf=0x555555819000)
    at /var/tmp/paludis/media-libs-mesa-9999/work/mesa-9999/src/gallium/state_trackers/va/picture.c:374
374     in /var/tmp/paludis/media-libs-mesa-9999/work/mesa-9999/src/gallium/state_trackers/va/picture.c

What happens is that h264->intra_idr_period is 0, which with current parenthesizing results in a division by 0.

Command used : 
ffmpeg -loglevel debug -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i Elephants_Dream_HD.avi -vf format=nv12,hwupload -map 0:0 -map 0:1 -y -f matroska -bf 0 -c:v h264_vaapi ~/test.mkv
Comment 1 GitLab Migration User 2019-09-18 19:23:13 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/602.

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.