Summary: | [HSW]JPEG decode would core dumped with loadjpeg | ||
---|---|---|---|
Product: | libva | Reporter: | Yang Lianyue <lianyuex.yang> |
Component: | intel | Assignee: | haihao <haihao.xiang> |
Status: | REOPENED --- | QA Contact: | Sean V Kelley <seanvk> |
Severity: | normal | ||
Priority: | medium | CC: | ouping.zhang, tienan.liu |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=91626 https://bugzilla.gnome.org/show_bug.cgi?id=762500 |
||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | test file for crash |
Description
Yang Lianyue
2013-07-22 02:45:52 UTC
Is this a HSW specific issue ? Where to get jpegdecode and 2.jpg ? jpegdecode is not used any more. This problem still exist in Haswell, and most surely in further chipsets with jpeg decoding capabilities. The steps to reproduce it: ./loadjpeg vaapi-assert.jpg ERROR:We only support YUV images WARNING:Height need to be a multiple of 16 (current height is 1417) WARNING:Width need to be a multiple of 16 (current Width is 1429) Decoding JPEG image 1429x1417... libva info: VA-API version 0.38.1 libva info: va_getDriverName() returns 0 libva info: Trying to open /opt/gnome/jh/lib/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_0_38 libva info: va_openDriver() returns 0 lt-loadjpeg: gen75_mfd.c:2203: void gen75_mfd_jpeg_decode_init(VADriverContextP, struct decode_state *, struct gen7_mfd_context *): Assertion `0' failed. Aborted The problem is not that the driver doesn't support more than 3 components or sizes multiple of 16. The problem is the error handling in libva-intel-driver: in my opinion an assert is not error handling. As this is a driver specific restriction, the client doesn't have to do the verification, the driver should notify the client that it is unable to process the data, without crashing. Furthermore, asserts can be disabled at compilation time, making the behavior unpredictable. This is very similar to bug 91626, where an assert is also used for error handling. Created attachment 121978 [details]
test file for crash
|
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.