* [Bug 110702] segfault in radeonsi HEVC hardware decoding
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
@ 2019-05-18 5:47 ` bugzilla-daemon
2019-05-19 14:36 ` bugzilla-daemon
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-05-18 5:47 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 475 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #1 from Pierre Ossman <pierre-bugzilla@ossman.eu> ---
Created attachment 144290
--> https://bugs.freedesktop.org/attachment.cgi?id=144290&action=edit
gdb bt full
A backtrace of the crash from gdb.
It looks like the allocation filed, but then either kodi or the driver went
ahead and tried to clear the buffer anyway.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1367 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
2019-05-18 5:47 ` bugzilla-daemon
@ 2019-05-19 14:36 ` bugzilla-daemon
2019-05-20 19:03 ` [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le bugzilla-daemon
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-05-19 14:36 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 334 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #2 from Pierre Ossman <pierre-bugzilla@ossman.eu> ---
I think I've spotted a difference. The crashing files are all yuv420p10le,
whilst everything else is in yuv420.
Hope this helps.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1112 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
2019-05-18 5:47 ` bugzilla-daemon
2019-05-19 14:36 ` bugzilla-daemon
@ 2019-05-20 19:03 ` bugzilla-daemon
2019-05-25 15:17 ` bugzilla-daemon
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-05-20 19:03 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 750 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
Pierre Ossman <pierre-bugzilla@ossman.eu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|segfault in radeonsi HEVC |segfault in radeonsi HEVC
|hardware decoding |hardware decoding with
| |yuv420p10le
--- Comment #3 from Pierre Ossman <pierre-bugzilla@ossman.eu> ---
I found a lower resolution yuv420p10le video, and it crashes the same way. So
it seems the pixel format is the key issue here, not the resolution.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2047 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (2 preceding siblings ...)
2019-05-20 19:03 ` [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le bugzilla-daemon
@ 2019-05-25 15:17 ` bugzilla-daemon
2019-06-15 8:02 ` bugzilla-daemon
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-05-25 15:17 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 365 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #4 from Pierre Ossman <pierre-bugzilla@ossman.eu> ---
As a workaround, is it possible to configure VA-API to refuse to handle this
specific format? It would be nice to have to disable hardware acceleration
entirely.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1177 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (3 preceding siblings ...)
2019-05-25 15:17 ` bugzilla-daemon
@ 2019-06-15 8:02 ` bugzilla-daemon
2019-06-17 13:53 ` bugzilla-daemon
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-15 8:02 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 263 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #5 from Owen <owen@owened.net> ---
Hi,
I believe I am experiencing the same issue, what can I do to help fix it?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1056 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (4 preceding siblings ...)
2019-06-15 8:02 ` bugzilla-daemon
@ 2019-06-17 13:53 ` bugzilla-daemon
2019-06-17 16:03 ` bugzilla-daemon
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-17 13:53 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 472 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #6 from Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> ---
I can't reproduce it here, but maybe my test file (from
https://github.com/mpv-player/mpv/issues/4736#issuecomment-333505294) isn't
good to trigger the bug.
Does the issue occur with the file above? And could you test with a different
player?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1389 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (5 preceding siblings ...)
2019-06-17 13:53 ` bugzilla-daemon
@ 2019-06-17 16:03 ` bugzilla-daemon
2019-06-18 5:44 ` bugzilla-daemon
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-17 16:03 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 664 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #7 from asavah <irherder@gmail.com> ---
The sample provided in the post above is not triggering the crash.
However a sample was provided to me that reliably crashes.
https://drive.google.com/open?id=1bDhF6U5ccW-K1G63fl1qnO-98kopMJyw
ryzen 2400g
linux 5.1.10
mesa 19.1.0
ffmpeg 4.0.3
libva 2.5.0.pre1 (from git)
kodi 19 (from git)
I have a stacktrace but it's quite useless, if needed I could rebuild all the
packages with debug info and reproduce.
I don't have another player on the affected system atm.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1543 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (6 preceding siblings ...)
2019-06-17 16:03 ` bugzilla-daemon
@ 2019-06-18 5:44 ` bugzilla-daemon
2019-06-19 13:11 ` bugzilla-daemon
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-18 5:44 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 289 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #8 from Owen <owen@owened.net> ---
I believe this file is also triggering the crash condition.
http://www.users.on.net/~ostickley/snip.mkv
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1140 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (7 preceding siblings ...)
2019-06-18 5:44 ` bugzilla-daemon
@ 2019-06-19 13:11 ` bugzilla-daemon
2019-06-19 13:14 ` bugzilla-daemon
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-19 13:11 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 424 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #9 from Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> ---
Thanks, I could reproduce on a Raven setup using the files from comment 7 and
8.
The driver fails when trying to allocate a buffer for this video with a ENOMEM
error (the requested size is 3 GB).
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1298 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (8 preceding siblings ...)
2019-06-19 13:11 ` bugzilla-daemon
@ 2019-06-19 13:14 ` bugzilla-daemon
2019-06-19 13:30 ` bugzilla-daemon
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-19 13:14 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 463 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #10 from Christian König <christian.koenig@amd.com> ---
(In reply to Pierre-Eric Pelloux-Prayer from comment #9)
> The driver fails when trying to allocate a buffer for this video with a
> ENOMEM error (the requested size is 3 GB).
Well that strongly sounds like we miscalculated the necessary size somewhere.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1352 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (9 preceding siblings ...)
2019-06-19 13:14 ` bugzilla-daemon
@ 2019-06-19 13:30 ` bugzilla-daemon
2019-06-21 8:12 ` bugzilla-daemon
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-19 13:30 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 853 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #11 from Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> ---
(In reply to Christian König from comment #10)
> (In reply to Pierre-Eric Pelloux-Prayer from comment #9)
> > The driver fails when trying to allocate a buffer for this video with a
> > ENOMEM error (the requested size is 3 GB).
>
> Well that strongly sounds like we miscalculated the necessary size somewhere.
Indeed.
The size is computed by the `calc_ctx_size_h265_main10()` function.
I'm not familiar enough with hevc to fix it though (but the calculation seems
to overflow because context_buffer_size_per_ctb_row is 1GB and is multiplied by
max_references (= 23) and the result is stored in an unsigned int).
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1818 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (10 preceding siblings ...)
2019-06-19 13:30 ` bugzilla-daemon
@ 2019-06-21 8:12 ` bugzilla-daemon
2019-06-22 1:00 ` bugzilla-daemon
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-21 8:12 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 357 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #12 from Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> ---
Can you try the branch from
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1154 and report if it
fixes the issue for you?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1267 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (11 preceding siblings ...)
2019-06-21 8:12 ` bugzilla-daemon
@ 2019-06-22 1:00 ` bugzilla-daemon
2019-06-28 11:35 ` bugzilla-daemon
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-22 1:00 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 409 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #13 from asavah <irherder@gmail.com> ---
Applied the PR mentioned in 12 as a patch on top of the 19.1.0 tarball release.
All the crashy samples I have now play perfectly.
All the good media I have continues playing perfectly.
Huge thanks for the quick fix.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1208 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (12 preceding siblings ...)
2019-06-22 1:00 ` bugzilla-daemon
@ 2019-06-28 11:35 ` bugzilla-daemon
2019-06-28 22:41 ` bugzilla-daemon
2019-07-09 9:35 ` bugzilla-daemon
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-28 11:35 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 234 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #14 from asavah <irherder@gmail.com> ---
Is there any reason the fix isn't merged yet?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1033 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (13 preceding siblings ...)
2019-06-28 11:35 ` bugzilla-daemon
@ 2019-06-28 22:41 ` bugzilla-daemon
2019-07-09 9:35 ` bugzilla-daemon
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-06-28 22:41 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 347 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
--- Comment #15 from Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> ---
The fix has been merged today
(https://gitlab.freedesktop.org/mesa/mesa/commit/c81c784a4a05f8a957a649d73c8194247de47b56).
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1285 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug 110702] segfault in radeonsi HEVC hardware decoding with yuv420p10le
2019-05-17 19:48 [Bug 110702] segfault in radeonsi HEVC hardware decoding bugzilla-daemon
` (14 preceding siblings ...)
2019-06-28 22:41 ` bugzilla-daemon
@ 2019-07-09 9:35 ` bugzilla-daemon
15 siblings, 0 replies; 17+ messages in thread
From: bugzilla-daemon @ 2019-07-09 9:35 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 550 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=110702
Juan A. Suarez <jasuarez@igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #16 from Juan A. Suarez <jasuarez@igalia.com> ---
And the fix is also included in Mesa 19.1.2 release.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2088 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 17+ messages in thread