<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - segfault in radeonsi HEVC hardware decoding"
href="https://bugs.freedesktop.org/show_bug.cgi?id=110702">110702</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>segfault in radeonsi HEVC hardware decoding
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/Gallium/radeonsi
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pierre-bugzilla@ossman.eu
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>A few HEVC files gives me a segfault in radeonsi_dri.so when trying to play
them via Kodi. They work fine when decoding in software, and other HEVC files
work fine being decoded in hardware. I do not know what is special about these
files.
<span class="quote">> amdgpu: Failed to allocate a buffer:
> amdgpu: size : 3221295104 bytes
> amdgpu: alignment : 4096 bytes
> amdgpu: domains : 4
> amdgpu: Failed to allocate a buffer:
> amdgpu: size : 3221295104 bytes
> amdgpu: alignment : 4096 bytes
> amdgpu: domains : 4
> EE ../src/gallium/drivers/radeon/radeon_vcn_dec.c:880 rvcn_dec_message_decode UVD - Can't allocated context buffer.
> /usr/bin/kodi: line 219: 1223 Segmentation fault (core dumped) ${KODI_BINARY} $SAVED_ARGS</span >
Lines seen in ~/.xsession-errors
This is the details Kodi reports about the video:
<span class="quote">> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: Metadata:
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: ENCODER : Lavf58.27.102
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: Duration: 01:29:45.38, start: 0.000000, bitrate: 1598 kb/s
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: Metadata:
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: BPS-eng : 8246896
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: DURATION-eng : 01:29:45.380000000
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: NUMBER_OF_FRAMES-eng: 129120
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: NUMBER_OF_BYTES-eng: 5551584033
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: _STATISTICS_WRITING_APP-eng: mkvmerge v33.1.0 ('Primrose') 64-bit
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: _STATISTICS_WRITING_DATE_UTC-eng: 2019-05-13 00:59:51
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: ENCODER : Lavc58.51.100 libx265
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: DURATION : 01:29:45.380000000
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: Stream #0:1(eng): Audio: eac3, 48000 Hz, 6 channels, fltp (default)
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: Metadata:
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: BPS-eng : 640000
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: DURATION-eng : 01:29:45.376000000
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: NUMBER_OF_FRAMES-eng: 168293
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: NUMBER_OF_BYTES-eng: 430830080
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: _STATISTICS_WRITING_APP-eng: mkvmerge v33.1.0 ('Primrose') 64-bit
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: _STATISTICS_WRITING_DATE_UTC-eng: 2019-05-13 00:59:51
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: DURATION : 01:29:45.384000000
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: Stream #0:2(eng): Subtitle: ass
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: Metadata:
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: BPS-eng : 38
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: DURATION-eng : 01:29:38.000000000
> 2019-05-17 19:51:31.904 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: NUMBER_OF_FRAMES-eng: 955
> 2019-05-17 19:51:31.905 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: NUMBER_OF_BYTES-eng: 26165
> 2019-05-17 19:51:31.905 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: _STATISTICS_WRITING_APP-eng: mkvmerge v33.1.0 ('Primrose') 64-bit
> 2019-05-17 19:51:31.905 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: _STATISTICS_WRITING_DATE_UTC-eng: 2019-05-13 00:59:51
> 2019-05-17 19:51:31.905 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
> 2019-05-17 19:51:31.905 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: ENCODER : Lavc58.51.100 ssa
> 2019-05-17 19:51:31.905 T:140684663195392 INFO: ffmpeg[7FF3B3600700]: DURATION : 01:29:42.162000000</span >
This is with mesa-dri-drivers-19.0.4-1.fc30.x86_64.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>