Bug 109534 - Crash in Minecraft due to a swp[chan] assertion fail in src/gallium/drivers/r600/sb/sb_ir.cpp alu_packed_node::update_packed_items
Summary: Crash in Minecraft due to a swp[chan] assertion fail in src/gallium/drivers/r...
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: 18.3
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-02 19:49 UTC by Romain Diss
Modified: 2019-09-18 19:26 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Minecraft crash log (685.60 KB, text/plain)
2019-02-02 19:49 UTC, Romain Diss
Details
minecraft log with MESA_GLSL=dump ST_DEBUG=tgsi R600_DEBUG=vs,gs,ps (66.73 KB, text/plain)
2019-03-10 09:11 UTC, Ian Campbell
Details

Description Romain Diss 2019-02-02 19:49:39 UTC
Created attachment 143275 [details]
Minecraft crash log

Minecraft crashes in some cases since (in my opinion) the debian sid upgrade of the mesa package (18.3.2-1 the Thu, 17 Jan 2019 20:36:15 +0200).

I reported a bug at Mojang : https://bugs.mojang.com/browse/MC-143424

They have closed it with a "Driver issue." message.
The Minecraft log says :

[0201/080510:INFO:GameCallbacks.cpp(199)] launcher/launcher (main) info 
../src/gallium/drivers/r600/sb/sb_ir.cpp:340:update_packed_items: Assertion `!swp[chan] || swp[chan] == v' failed.

I also join the Minecraft log in case it helps.

My environment:

# uname -a
Linux 4.19.0-2-amd64 #1 SMP Debian 4.19.16-1 (2019-01-17) x86_64 GNU/Linux

# apt show xserver-xorg-video-{all,radeon}
Package: xserver-xorg-video-all
Version: 1:7.7+19
Depends: xserver-xorg-video-amdgpu, xserver-xorg-video-ati, xserver-xorg-video-fbdev, xserver-xorg-video-nouveau, xserver-xorg-video-vesa, xserver-xorg-video-vmware

Package: xserver-xorg-video-radeon
Version: 1:18.1.0-1
Depends: libc6 (>= 2.17), libdrm-radeon1 (>= 2.4.39), libgbm1 (>= 8.1~0), libudev1 (>= 183), xorg-video-abi-24, xserver-xorg-core (>= 2:1.18.99.901)

# apt changelog mesa-va-drivers
Package: mesa-va-drivers
Version: 18.3.2-1
Comment 1 Romain Diss 2019-02-08 21:15:46 UTC
Should I join some more informations. Please let me know.
Comment 2 vanyasmart 2019-02-21 22:11:08 UTC
I've faced with same problem on following configuration:

> $ glxinfo  | grep Device
>     Device: AMD JUNIPER (DRM 2.50.0 / 4.18.0-15-generic, LLVM 7.0.0) (0x68ba)
> $ glxinfo | grep 'OpenGL version string'
> OpenGL version string: 3.1 Mesa 18.3.3
> $ lspci | grep 'VGA.*Radeon'
> 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Juniper XT [Radeon HD 6770]
> $ lspci -vv -s 01:00.0 | grep driver
> 	Kernel driver in use: radeon
> $ . /etc/lsb-release ; echo $DISTRIB_DESCRIPTION
> Ubuntu 18.04.2 LTS
> $ uname -a
> Linux ivanhome 4.18.0-15-generic #16~18.04.1-Ubuntu SMP Thu Feb 7 14:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Comment 3 vanyasmart 2019-03-09 13:24:35 UTC
FYI: I've tried to rebuild Mesa packages for Ubuntu 18.04 from x-swat-team ppa, but on codebase of Mesa 18.3.4 (instead of 18.3.3 used there), and even with mesa 18.3.4 this problem has not gone.
Comment 4 Ian Campbell 2019-03-10 09:11:48 UTC
Created attachment 143606 [details]
minecraft log with MESA_GLSL=dump ST_DEBUG=tgsi R600_DEBUG=vs,gs,ps

I'm seeing this too, so far only when opening a chest.

Based on this IRC snippet/log https://people.freedesktop.org/~cbrill/dri-log/?channel=dri-devel&date=2016-04-17 I tried running it with `MESA_GLSL=dump ST_DEBUG=tgsi R600_DEBUG=vs,gs,ps` and captured the attached.

```
$ lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV710 [Radeon HD 4350/4550]
```

I'm also running Debian Sid and there does seem to be some correlation with an `dist-upgrade` I did on 3 March.


```
$ grep -iE '(upgrade|install) .*(mesa|radeon|xorg)' /var/log/dpkg.log 
2019-03-03 14:28:14 upgrade libdrm-radeon1:amd64 2.4.95-1 2.4.97-1
2019-03-03 14:28:14 upgrade libdrm-radeon1:i386 2.4.95-1 2.4.97-1
2019-03-03 14:28:25 upgrade libgl1-mesa-dev:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:28:25 upgrade libegl1-mesa-dev:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:28:26 upgrade mesa-common-dev:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:28:44 upgrade libosmesa6:i386 18.2.6-1 18.3.4-1
2019-03-03 14:28:45 upgrade libosmesa6:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:28:45 upgrade libglx-mesa0:i386 18.2.6-1 18.3.4-1
2019-03-03 14:28:46 upgrade libglx-mesa0:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:28:46 upgrade libglapi-mesa:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:28:47 upgrade libglapi-mesa:i386 18.2.6-1 18.3.4-1
2019-03-03 14:28:48 upgrade mesa-vdpau-drivers:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:28:49 upgrade mesa-vdpau-drivers:i386 18.2.6-1 18.3.4-1
2019-03-03 14:28:53 upgrade mesa-va-drivers:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:28:53 upgrade mesa-va-drivers:i386 18.2.6-1 18.3.4-1
2019-03-03 14:29:00 upgrade libgl1-mesa-dri:i386 18.2.6-1 18.3.4-1
2019-03-03 14:29:01 upgrade libgl1-mesa-dri:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:30:19 upgrade libegl-mesa0:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:32:09 upgrade libgl1-mesa-glx:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:32:09 upgrade libgl1-mesa-glx:i386 18.2.6-1 18.3.4-1
2019-03-03 14:45:26 upgrade libegl1-mesa:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:45:38 upgrade libgles2-mesa-dev:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:48:01 upgrade libwayland-egl1-mesa:amd64 18.2.6-1 18.3.4-1
2019-03-03 14:49:05 upgrade mesa-utils:amd64 8.4.0-1 8.4.0-1+b1
2019-03-03 14:49:05 install mesa-vulkan-drivers:i386 <none> 18.3.4-1
2019-03-03 14:56:28 upgrade xserver-xorg-video-amdgpu:amd64 18.1.0-1 18.1.99+git20190207-1
2019-03-03 14:56:29 upgrade xserver-xorg-video-radeon:amd64 1:18.1.0-1 1:18.1.99+git20190207-1
```
Comment 5 vanyasmart 2019-03-30 19:56:20 UTC
Problem has gone with Mesa 19.0 (I've checked on OpenSUSE Tumbleweed):

> $ glxinfo  | grep Device
    Device: AMD JUNIPER (DRM 2.50.0 / 5.0.3-1-default, LLVM 7.0.1) (0x68ba)
> $ glxinfo | grep 'OpenGL version string'
OpenGL version string: 3.1 Mesa 19.0.0
> $ /sbin/lspci | grep 'VGA.*Radeon'
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Juniper XT [Radeon HD 6770]
> $ /sbin/lspci -vv -s 01:00.0 | grep driver
        Kernel driver in use: radeon
> $ cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20190327"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20190327"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20190327"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
> $ uname -a
Linux ivanhome 5.0.3-1-default #1 SMP Fri Mar 22 17:30:35 UTC 2019 (2a31831) x86_64 x86_64 x86_64 GNU/Linux
Comment 6 vanyasmart 2019-08-25 19:49:37 UTC
I've again faced with this issue on Ubuntu 18.04 with Mesa 19.1.4 from x-swat-ppa.

After some digging I've found that current problem may not be related to Mesa, but may be related to JVM (like in #33175, which has similar symptoms, but different exception).

So I've tried to run Minecraft on latest Oracle JRE, and it seems like the problem has gone.

Also, I think that problem may be not in OpenJRE code, but in the way how OpenJRE package built, because, as I said, everything worked for me on OpenSUSE Tumbleweed / Mesa 19.0 / OpenJRE 11, while on Ubuntu 18.04 / Mesa 19.1.4 / OpenJRE 11 doesn't.
Comment 7 vanyasmart 2019-08-25 19:55:20 UTC
No, sorry. Still happening with Oracle JRE, but more rarely.
Comment 8 GitLab Migration User 2019-09-18 19:26:58 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/651.


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.