Sodium Reloaded (Unofficial)

Sodium Reloaded (Unofficial)

0 Downloads

Closing the game crashes the desktop environment

LeilaVerbeeck opened this issue ยท 4 comments

commented

Bug Description

Saving the world causes the desktop to blackscreen, making fans kick to 100%. As far as I can see, no issues actually saving the world, and sound from videos also keeps playing in during the crash.
Not sure if it's even a sodium bug, since the crash log shows an error in a steam library, but it happened always when running minecraft with sodium, and has not happened when playing any other game.

It's my first time making a bug report like this, if you need more info I'd be happy to give it.

Reproduction Steps

Open minecraft with sodium installed, load a world, exit out of the world after x minutes. (happened most reliably for me on longer play sessions)

Driver info:

leila@leila-dev:~$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon RX Vega (radeonsi, vega10, LLVM 18.1.1, DRM 3.57, 6.8.7-300.fc40.x86_64) (0x687f)
    Version: 24.0.5
    Accelerated: yes
    Video memory: 8192MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 6843 MB, largest block: 6843 MB
    VBO free aux. memory - total: 23785 MB, largest block: 23785 MB
    Texture free memory - total: 6843 MB, largest block: 6843 MB
    Texture free aux. memory - total: 23785 MB, largest block: 23785 MB
    Renderbuffer free memory - total: 6843 MB, largest block: 6843 MB
    Renderbuffer free aux. memory - total: 23785 MB, largest block: 23785 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8192 MB
    Total available memory: 32235 MB
    Currently available dedicated video memory: 6843 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX Vega (radeonsi, vega10, LLVM 18.1.1, DRM 3.57, 6.8.7-300.fc40.x86_64)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.0.5
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.5
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Crash info in "Crashed Processes Viewer":

           PID: 33364 (gldriverquery)
           UID: 1000 (leila)
           GID: 1000 (leila)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-04-25 16:12:46 CEST (17h ago)
  Command Line: /home/leila/.local/share/Steam/ubuntu12_32/../ubuntu12_32/gldriverquery
    Executable: /home/leila/.local/share/Steam/ubuntu12_32/gldriverquery
 Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/app-steam-79ec9cdee680478fa0208754cefc5393.scope
          Unit: [email protected]
     User Unit: app-steam-79ec9cdee680478fa0208754cefc5393.scope
         Slice: user-1000.slice
     Owner UID: 1000 (leila)
       Boot ID: fae77988b35843dca756221bddbbd285
    Machine ID: d782cc43a0104129ab8d2d77d63d4fe1
      Hostname: leila-dev
       Storage: /var/lib/systemd/coredump/core.gldriverquery.1000.fae77988b35843dca756221bddbbd285.33364.1714054366000000.zst (present)
  Size on Disk: 1.6M
       Message: Process 33364 (gldriverquery) of user 1000 dumped core.
                
                Module libpciaccess.so.0 from rpm libpciaccess-0.16-12.fc40.i386
                Module libtinfo.so.6 from rpm ncurses-6.4-12.20240127.fc40.i386
                Module libedit.so.0 from rpm libedit-3.1-50.20230828cvs.fc40.i386
                Module libdrm_intel.so.1 from rpm libdrm-2.4.120-3.fc40.i386
                Module libdrm_nouveau.so.2 from rpm libdrm-2.4.120-3.fc40.i386
                Module libdrm_amdgpu.so.1 from rpm libdrm-2.4.120-3.fc40.i386
                Module libelf.so.1 from rpm elfutils-0.191-4.fc40.i386
                Module libdrm_radeon.so.1 from rpm libdrm-2.4.120-3.fc40.i386
                Module libsensors.so.4 from rpm lm_sensors-3.6.0-18.fc40.i386
                Module libz.so.1 from rpm zlib-ng-2.1.6-2.fc40.i386
                Module radeonsi_dri.so from rpm mesa-24.0.5-1.fc40.i386
                Module libxshmfence.so.1 from rpm libxshmfence-1.3.2-3.fc40.i386
                Module libxcb-sync.so.1 from rpm libxcb-1.16-4.fc40.i386
                Module libxcb-present.so.0 from rpm libxcb-1.16-4.fc40.i386
                Module libxcb-dri3.so.0 from rpm libxcb-1.16-4.fc40.i386
                Module libwayland-server.so.0 from rpm wayland-1.22.0-3.fc40.i386
                Module libdrm.so.2 from rpm libdrm-2.4.120-3.fc40.i386
                Module libxcb-xfixes.so.0 from rpm libxcb-1.16-4.fc40.i386
                Module libxcb-randr.so.0 from rpm libxcb-1.16-4.fc40.i386
                Module libxcb-dri2.so.0 from rpm libxcb-1.16-4.fc40.i386
                Module libX11-xcb.so.1 from rpm libX11-1.8.9-1.fc40.i386
                Module libexpat.so.1 from rpm expat-2.6.2-1.fc40.i386
                Module libglapi.so.0 from rpm mesa-24.0.5-1.fc40.i386
                Module libgbm.so.1 from rpm mesa-24.0.5-1.fc40.i386
                Module libEGL_mesa.so.0 from rpm mesa-24.0.5-1.fc40.i386
                Module libEGL.so.1 from rpm libglvnd-1.7.0-4.fc40.i386
                Module libXau.so.6 from rpm libXau-1.0.11-6.fc40.i386
                Module libxcb.so.1 from rpm libxcb-1.16-4.fc40.i386
                Module libGLdispatch.so.0 from rpm libglvnd-1.7.0-4.fc40.i386
                Module libXext.so.6 from rpm libXext-1.3.6-1.fc40.i386
                Module libX11.so.6 from rpm libX11-1.8.9-1.fc40.i386
                Module libGLX.so.0 from rpm libglvnd-1.7.0-4.fc40.i386
                Module libGL.so.1 from rpm libglvnd-1.7.0-4.fc40.i386
                Module libdecor-0.so.0 from rpm libdecor-0.2.2-3.fc40.i386
                Module libxkbcommon.so.0 from rpm libxkbcommon-1.6.0-2.fc40.i386
                Module libwayland-cursor.so.0 from rpm wayland-1.22.0-3.fc40.i386
                Module libwayland-egl.so.1 from rpm wayland-1.22.0-3.fc40.i386
                Module libffi.so.8 from rpm libffi-3.4.4-7.fc40.i386
                Module libwayland-client.so.0 from rpm wayland-1.22.0-3.fc40.i386
                Module libzstd.so.1 from rpm zstd-1.5.6-1.fc40.i386
                Module liblzma.so.5 from rpm xz-5.4.6-3.fc40.i386
                Module liblz4.so.1 from rpm lz4-1.9.4-6.fc40.i386
                Module libcap.so.2 from rpm libcap-2.69-8.fc40.i386
                Module libsystemd.so.0 from rpm systemd-255.4-1.fc40.i386
                Module libdbus-1.so.3 from rpm dbus-1.14.10-3.fc40.i386
                Module libSDL2-2.0.so.0 from rpm SDL2-2.30.1-1.fc40.i386
                Stack trace of thread 33364:
                #0  0x000000000836e118 n/a (n/a + 0x0)
                #1  0x00000000ee1777ee _ZN4llvm17PMTopLevelManager12schedulePassEPNS_4PassE (libLLVM.so.18.1 + 0x7d67ee)
                #2  0x00000000ee17e279 _ZN12_GLOBAL__N_113MPPassManager25addLowerLevelRequiredPassEPN4llvm4PassES3_ (libLLVM.so.18.1 + 0x7dd279)
                #3  0x00000000ee17e4cb _ZThn16_N12_GLOBAL__N_113MPPassManager25addLowerLevelRequiredPassEPN4llvm4PassES3_ (libLLVM.so.18.1 + 0x7dd4cb)
                #4  0x00000000ee17a260 _ZN4llvm13PMDataManager3addEPNS_4PassEb (libLLVM.so.18.1 + 0x7d9260)
                #5  0x00000000ee17c001 _ZN4llvm10ModulePass17assignPassManagerERNS_7PMStackENS_15PassManagerTypeE (libLLVM.so.18.1 + 0x7db001)
                #6  0x00000000ee178085 _ZN4llvm17PMTopLevelManager12schedulePassEPNS_4PassE (libLLVM.so.18.1 + 0x7d7085)
                #7  0x00000000ee17bcad _ZN4llvm6legacy11PassManager3addEPNS_4PassE (libLLVM.so.18.1 + 0x7dacad)
                #8  0x00000000f54f1b10 ac_create_passmgr (radeonsi_dri.so + 0x948b10)
                #9  0x00000000f54f332b ac_init_llvm_compiler (radeonsi_dri.so + 0x94a32b)
                #10 0x00000000f53dbf9f si_create_llvm_compiler (radeonsi_dri.so + 0x832f9f)
                #11 0x00000000f5425473 si_shader_select (radeonsi_dri.so + 0x87c473)
                #12 0x00000000f5a69709 _Z17si_update_shadersIL13amd_gfx_level11EL11si_has_tess0EL9si_has_gs0EL10si_has_ngg0EEbP10si_context (radeonsi_dri.so + 0xec0709)
                #13 0x00000000f5a6f410 _Z11si_draw_vboIL13amd_gfx_level11EL11si_has_tess0EL9si_has_gs0EL10si_has_ngg0EL22si_has_sh_pairs_packed0EEvP12pipe_contextPK14pipe_draw_infojPK23pipe_draw_indirect_infoPK26pipe_draw_start_count_biasj (radeonsi_dri.so + 0xec6410)
                #14 0x00000000f5a684c3 _ZL17si_draw_rectangleP15blitter_contextPvPFS1_S0_Eiiiifj19blitter_attrib_typePK14blitter_attrib (radeonsi_dri.so + 0xebf4c3)
                #15 0x00000000f58f73f6 util_blitter_clear_custom.constprop.0 (radeonsi_dri.so + 0xd4e3f6)
                #16 0x00000000f546de45 si_clear (radeonsi_dri.so + 0x8c4e45)
                #17 0x00000000f51b7832 tc_call_clear (radeonsi_dri.so + 0x60e832)
                #18 0x00000000f51b85cd tc_batch_execute (radeonsi_dri.so + 0x60f5cd)
                #19 0x00000000f51b8eec _tc_sync.isra.0 (radeonsi_dri.so + 0x60feec)
                #20 0x00000000f51c0852 tc_flush (radeonsi_dri.so + 0x617852)
                #21 0x00000000f4c9633b st_glFlush (radeonsi_dri.so + 0xed33b)
                #22 0x00000000f4ddfdaa _mesa_make_current (radeonsi_dri.so + 0x236daa)
                #23 0x00000000f4cb1d46 st_api_make_current (radeonsi_dri.so + 0x108d46)
                #24 0x00000000f4bdb2e1 dri_unbind_context (radeonsi_dri.so + 0x322e1)
                #25 0x00000000f4bded12 driUnbindContext (radeonsi_dri.so + 0x35d12)
                #26 0x00000000f74cb84e dri2_make_current (libEGL_mesa.so.0 + 0x1a84e)
                #27 0x00000000f74bb52d eglMakeCurrent (libEGL_mesa.so.0 + 0xa52d)
                #28 0x00000000f7501179 InternalLoseCurrent (libEGL.so.1 + 0x4179)
                #29 0x00000000f7e5d69d SDL_EGL_MakeCurrent (libSDL2-2.0.so.0 + 0xcd69d)
                #30 0x00000000f7eaf88b Wayland_GLES_MakeCurrent (libSDL2-2.0.so.0 + 0x11f88b)
                #31 0x00000000f7e6e5f7 SDL_GL_MakeCurrent_REAL (libSDL2-2.0.so.0 + 0xde5f7)
                #32 0x00000000f7e7587a SDL_DestroyWindow_REAL.part.0 (libSDL2-2.0.so.0 + 0xe587a)
                #33 0x00000000f7e75984 SDL_VideoQuit_REAL.part.0 (libSDL2-2.0.so.0 + 0xe5984)
                #34 0x00000000f7da4caf SDL_QuitSubSystem_REAL (libSDL2-2.0.so.0 + 0x14caf)
                #35 0x00000000f7da5163 SDL_Quit_REAL (libSDL2-2.0.so.0 + 0x15163)
                #36 0x00000000f7bd546a __run_exit_handlers (libc.so.6 + 0x3e46a)
                #37 0x00000000f7bd5663 exit (libc.so.6 + 0x3e663)
                #38 0x00000000f7bbbbcf __libc_start_call_main (libc.so.6 + 0x24bcf)
                #39 0x00000000f7bbbc88 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x24c88)
                #40 0x0000000008051a71 n/a (/home/leila/.local/share/Steam/ubuntu12_32/gldriverquery + 0x9a71)
                ELF object binary architecture: Intel 80386

Another crash log, same fenomena with different log:

           PID: 33189 (gldriverquery)
           UID: 1000 (leila)
           GID: 1000 (leila)
        Signal: 11 (SEGV)
     Timestamp: Thu 2024-04-25 16:12:45 CEST (17h ago)
  Command Line: /home/leila/.local/share/Steam/ubuntu12_32/../ubuntu12_64/gldriverquery
    Executable: /home/leila/.local/share/Steam/ubuntu12_64/gldriverquery
 Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/app-steam-79ec9cdee680478fa0208754cefc5393.scope
          Unit: [email protected]
     User Unit: app-steam-79ec9cdee680478fa0208754cefc5393.scope
         Slice: user-1000.slice
     Owner UID: 1000 (leila)
       Boot ID: fae77988b35843dca756221bddbbd285
    Machine ID: d782cc43a0104129ab8d2d77d63d4fe1
      Hostname: leila-dev
       Storage: /var/lib/systemd/coredump/core.gldriverquery.1000.fae77988b35843dca756221bddbbd285.33189.1714054365000000.zst (present)
  Size on Disk: 1.4M
       Message: Process 33189 (gldriverquery) of user 1000 dumped core.
                
                Module libpciaccess.so.0 from rpm libpciaccess-0.16-12.fc40.x86_64
                Module libtinfo.so.6 from rpm ncurses-6.4-12.20240127.fc40.x86_64
                Module libedit.so.0 from rpm libedit-3.1-50.20230828cvs.fc40.x86_64
                Module libdrm_intel.so.1 from rpm libdrm-2.4.120-3.fc40.x86_64
                Module libdrm_nouveau.so.2 from rpm libdrm-2.4.120-3.fc40.x86_64
                Module libdrm_amdgpu.so.1 from rpm libdrm-2.4.120-3.fc40.x86_64
                Module libelf.so.1 from rpm elfutils-0.191-4.fc40.x86_64
                Module libdrm_radeon.so.1 from rpm libdrm-2.4.120-3.fc40.x86_64
                Module libsensors.so.4 from rpm lm_sensors-3.6.0-18.fc40.x86_64
                Module libz.so.1 from rpm zlib-ng-2.1.6-2.fc40.x86_64
                Module radeonsi_dri.so from rpm mesa-24.0.5-1.fc40.x86_64
                Module libxshmfence.so.1 from rpm libxshmfence-1.3.2-3.fc40.x86_64
                Module libxcb-sync.so.1 from rpm libxcb-1.16-4.fc40.x86_64
                Module libxcb-present.so.0 from rpm libxcb-1.16-4.fc40.x86_64
                Module libxcb-dri3.so.0 from rpm libxcb-1.16-4.fc40.x86_64
                Module libwayland-server.so.0 from rpm wayland-1.22.0-3.fc40.x86_64
                Module libdrm.so.2 from rpm libdrm-2.4.120-3.fc40.x86_64
                Module libxcb-xfixes.so.0 from rpm libxcb-1.16-4.fc40.x86_64
                Module libxcb-randr.so.0 from rpm libxcb-1.16-4.fc40.x86_64
                Module libxcb-dri2.so.0 from rpm libxcb-1.16-4.fc40.x86_64
                Module libX11-xcb.so.1 from rpm libX11-1.8.9-1.fc40.x86_64
                Module libexpat.so.1 from rpm expat-2.6.2-1.fc40.x86_64
                Module libglapi.so.0 from rpm mesa-24.0.5-1.fc40.x86_64
                Module libgbm.so.1 from rpm mesa-24.0.5-1.fc40.x86_64
                Module libEGL_mesa.so.0 from rpm mesa-24.0.5-1.fc40.x86_64
                Module libEGL.so.1 from rpm libglvnd-1.7.0-4.fc40.x86_64
                Module libXau.so.6 from rpm libXau-1.0.11-6.fc40.x86_64
                Module libxcb.so.1 from rpm libxcb-1.16-4.fc40.x86_64
                Module libGLdispatch.so.0 from rpm libglvnd-1.7.0-4.fc40.x86_64
                Module libXext.so.6 from rpm libXext-1.3.6-1.fc40.x86_64
                Module libX11.so.6 from rpm libX11-1.8.9-1.fc40.x86_64
                Module libGLX.so.0 from rpm libglvnd-1.7.0-4.fc40.x86_64
                Module libGL.so.1 from rpm libglvnd-1.7.0-4.fc40.x86_64
                Module libdecor-0.so.0 from rpm libdecor-0.2.2-3.fc40.x86_64
                Module libxkbcommon.so.0 from rpm libxkbcommon-1.6.0-2.fc40.x86_64
                Module libwayland-cursor.so.0 from rpm wayland-1.22.0-3.fc40.x86_64
                Module libwayland-egl.so.1 from rpm wayland-1.22.0-3.fc40.x86_64
                Module libffi.so.8 from rpm libffi-3.4.4-7.fc40.x86_64
                Module libwayland-client.so.0 from rpm wayland-1.22.0-3.fc40.x86_64
                Module libzstd.so.1 from rpm zstd-1.5.6-1.fc40.x86_64
                Module liblzma.so.5 from rpm xz-5.4.6-3.fc40.x86_64
                Module liblz4.so.1 from rpm lz4-1.9.4-6.fc40.x86_64
                Module libcap.so.2 from rpm libcap-2.69-8.fc40.x86_64
                Module libsystemd.so.0 from rpm systemd-255.4-1.fc40.x86_64
                Module libdbus-1.so.3 from rpm dbus-1.14.10-3.fc40.x86_64
                Module libSDL2-2.0.so.0 from rpm SDL2-2.30.1-1.fc40.x86_64
                Stack trace of thread 33189:
                #0  0xfffffffffffff000 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

Log File

2024-04-24-6.log

Crash Report

There is no crash report since the game correctly saves the world and returns to main menu.
Added is a crash report from earlier in the day before disabling mods from 1.20.4.
crash-2024-04-24_14.40.57-client.txt

commented

Unfortunately it looks like this is a known issue with this hardware
https://github.com/CaffeineMC/sodium-fabric/wiki/Driver-Compatibility#amd-gpus

Reports have been made that updating MESA to 24.0.4 may help. But I see you are already running 24.0.5.
#1792 (comment)

commented

Unfortunately it looks like this is a known issue with this hardware https://github.com/CaffeineMC/sodium-fabric/wiki/Driver-Compatibility#amd-gpus

Reports have been made that updating MESA to 24.0.4 may help. #1792 (comment)

I'm aware of this issue, since people reported that in 24.0.4 the issue was fixed, I switched to fedora which now has the mesa 24 drivers. Before I would get graphical corruptions like in the issue, but now it works flawlessly while ingame. The issue only presents upon saving the game.

But as the log references a steam library I'm confused as to how saving a world with sodium installed could cause a issue like this.

commented

The gldriverquery process has nothing to do with Minecraft or Sodium. Probably it's crashing in the background because your GPU device is disappearing from the bus due to a reset, and Steam is not handling that correctly.

Unfortunately, these GPUs are just not well supported on Linux, and bugs like this are common. I don't think there is anything we can do about it.

commented

This issue seems to have been amended in mesa version 24.0.6 and the latest sodium version for 1.20.6!
I was able to play for multiple hours today without the desktop environment crashing upon closing.