-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Graphical corruption and memory page faults on Vega 56/64 under Linux #1792
Comments
I'm also encountering the same issue, but instead of just crashing the game, it crashes the whole compositor for me, both on Hyprland using Wayland and on KDE using X11. |
setting Chunk Memory Allocator to Swap (the default being Async) fixed this on my system (AMD Vega 56, Mesa 23.1.1, Wayland) |
Pretty sure I'm having the exact same issue on Vega 64 (Mesa 23.1.2 on Fedora 38 Plasma Wayland). Changing Async to Swap does resolve it, as does running Minecraft through Zink. I've had nothing but stability issues with Vega across OpenGL/OpenCL for years, so maybe this is a Mesa or amdgpu issue more than a Sodium issue. |
Encountered the same issue on a friend's system, and joining a world brought the entire system down to a screen-flickering state. AMD Vega 64, Mesa 23.1.3, plasma X11. Switching to swap also seems to fix it. |
I'm having the same issue here. AMD Vega 56, Arch Linux. Downgrading to mesa 23.0.3 fixed my issue. |
Hm. I haven't been able to reproduce any of these issues on my system (RX 6900 XT, Mesa 23.1.2, Linux 6.3.8), but it also seems that this problem exclusively affects the Vega 56/64 (which are a known problem child on Linux...) The problem seems to be related to persistently mapped memory under OpenGL, hence the reason why switching the "Chunk Memory Allocator" strategy to "Swap" fixes the crashes. Both the corruption and hardware page faults would seem to agree with this. I am going to see if we can bisect where the problem appeared in Mesa, and look into filing a bug. They've been helpful in the past with these things, so I think we have a good chance at fixing this. To be clear, I don't think there is any bug with Sodium here, rather this is a regression in the Mesa graphics stack. |
For the time being, the solutions we've seen solve this problem are:
|
We do not have any way to debug or fix this. The problem seems exclusively limited to the Vega 56/64 (and professional cards of that series) and we do not have any such graphics cards on hand. That said, I'm almost certain this problem has nothing to do with Sodium, as there's no good explanation for what could be going wrong on our side. The only option here would be to make a bug report to Mesa about this problem. I suspect it would help them a lot if you could provide an API trace. |
This is working for me as well. |
Working as well |
I'm using the Zink workaround as downgrading Mesa isn't a viable option for me. Works nicely without shaders but when using shaders, Zink's performance isn't very good |
This might be accidentally fixed with Sodium 0.5.1 since we now use a 16-byte alignment on vertex data. |
I've just tested Sodium 0.5.2 and unfortunately the system freeze still occurs. |
Bisected to this commit. Unfortunately it's not cleanly reversible on later versions. |
I have opened an issue on the mesa repo. |
Option is in newer versions not available anymore, forcing vega user to start with MESA_LOADER_DRIVER_OVERRIDE=zink. |
I tried that a couple of weeks ago, the current version of zink is broken globally on Vega 56 Linux rn so that workaround is out the window (Nixos for reference) |
Works fine for me on Arch with zink. |
Sorry. We are not going to re-implement the option people were using to workaround this problem. If it is useful, a technical explanation is provided below for why the option ever existed, and why it was removed.
|
Sorry to bother but is there any workaround that does not involve zink or downgrading? Zink heavily impacts shader performance, and downgrading breaks a lot of stuff. |
Sadly not, but looks like someone got assigned to the bug on the stated MESA issue. So keep a look there. |
At this point I'm having to accept the best solution is just to switch back to Forge until Mesa resolves since downgrading no longer works for me. |
Hopefully it gets fixed soon |
For anyone experiencing issues with loading Zink drivers, this article helped me fix it https://www.supergoodcode.com/preemptive/. |
I am on kernel 6.8.1 and mesa 24.0.4. The issue seems to be gone! |
very nice |
This issue was listed as fixed in the Mesa 24.0.4 release notes. The issue has an identical crash and GPU architecture as this one, so I assume that is what fixed it. |
Version information
mc1.19.4-0.4.10+build.24
Expected Behavior
Game renders
Actual Behavior
Game doesn't render. Creating huge artifacts. While bring the GPU to 100%
Reproduction Steps
Launch the game
Join a world and wait a few seconds
Java version
Java 17.0.7 & Java 20.0.1
CPU
Intel i7-8700
GPU
AMD ATI Radeon RX Vega 56/64
Additional information
I am running Arch Linux on 6.3.5-arch1-1 with a AMD GPU.
I was asked to launch the mod with Fabric API api which had no effect. Vanilla Minecraft runs fine and optifine works
This was the log after launching the game then once it began lagging force killing the game.
https://paste.ee/p/yqLZu
The only sort of error I am getting is in the kernel buffer.
GPU driver info:
Please just ask if you need more info about my system
The text was updated successfully, but these errors were encountered: