Please confirm the following.
What version of the Modrinth App are you using?
0.15.12
What operating systems are you seeing the problem on?
Linux
Describe the bug
Hi! 👋
After spending a few hours debugging this issue, I think I found a reproducible workaround and a conflict between two NVIDIA-related workarounds that may help both users and developers.
Environment
- OS: Arch Linux (EndeavourOS)
- Desktop: KDE Plasma 6
- Session: Wayland
- GPU: NVIDIA GeForce RTX 3050 Laptop
- Driver: nvidia-open 610.43.03
- WebKitGTK: webkit2gtk-4.1 2.52.5
- Modrinth App: latest Arch package
Problem
Modrinth App crashed immediately on launch with:
Segmentation fault (core dumped)
A GDB backtrace consistently showed the crash occurring inside:
What I tested
None of the following solved the problem:
- Clearing Modrinth config/cache
- Reinstalling the package
- Official package
- AUR package
- Flatpak
- X11 session
WEBKIT_DISABLE_DMABUF_RENDERER=1
WEBKIT_DISABLE_COMPOSITING_MODE=1
LIBGL_ALWAYS_SOFTWARE=1
GSK_RENDERER=cairo
Discovery
Launching the binary directly with:
__NV_DISABLE_EXPLICIT_SYNC=1 /usr/lib/modrinth-app
works perfectly.
However, launching through the default wrapper still crashes.
After investigating, I found the reason.
The launcher automatically exports:
WEBKIT_DISABLE_DMABUF_RENDERER=1
for NVIDIA users.
On my system these two workarounds conflict.
| Configuration |
Result |
WEBKIT_DISABLE_DMABUF_RENDERER=1 |
❌ Crash |
__NV_DISABLE_EXPLICIT_SYNC=1 |
✅ Works |
| Both together |
❌ Crash |
Removing the automatic
export WEBKIT_DISABLE_DMABUF_RENDERER=1
from /usr/bin/modrinth-app and only using
__NV_DISABLE_EXPLICIT_SYNC=1
makes the application launch normally.
Additional information
While debugging I also encountered:
Gdk-Message: Error 71 (Protocol error) dispatching to Wayland display.
ERROR: WebKit encountered an internal error.
This is a WebKit bug.
/usr/src/debug/webkit2gtk-4.1/webkitgtk-2.52.5/Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(640)
Suggestion
It may be worth revisiting the NVIDIA launcher workaround.
On this configuration, WEBKIT_DISABLE_DMABUF_RENDERER=1 appears to conflict with __NV_DISABLE_EXPLICIT_SYNC=1, while using only __NV_DISABLE_EXPLICIT_SYNC=1 allows the application to run normally.
Steps to reproduce
No response
Expected behavior
No response
Additional context
No response
Please confirm the following.
What version of the Modrinth App are you using?
0.15.12
What operating systems are you seeing the problem on?
Linux
Describe the bug
Hi! 👋
After spending a few hours debugging this issue, I think I found a reproducible workaround and a conflict between two NVIDIA-related workarounds that may help both users and developers.
Environment
Problem
Modrinth App crashed immediately on launch with:
A GDB backtrace consistently showed the crash occurring inside:
What I tested
None of the following solved the problem:
WEBKIT_DISABLE_DMABUF_RENDERER=1WEBKIT_DISABLE_COMPOSITING_MODE=1LIBGL_ALWAYS_SOFTWARE=1GSK_RENDERER=cairoDiscovery
Launching the binary directly with:
works perfectly.
However, launching through the default wrapper still crashes.
After investigating, I found the reason.
The launcher automatically exports:
for NVIDIA users.
On my system these two workarounds conflict.
WEBKIT_DISABLE_DMABUF_RENDERER=1__NV_DISABLE_EXPLICIT_SYNC=1Removing the automatic
export WEBKIT_DISABLE_DMABUF_RENDERER=1from
/usr/bin/modrinth-appand only usingmakes the application launch normally.
Additional information
While debugging I also encountered:
Suggestion
It may be worth revisiting the NVIDIA launcher workaround.
On this configuration,
WEBKIT_DISABLE_DMABUF_RENDERER=1appears to conflict with__NV_DISABLE_EXPLICIT_SYNC=1, while using only__NV_DISABLE_EXPLICIT_SYNC=1allows the application to run normally.Steps to reproduce
No response
Expected behavior
No response
Additional context
No response