TrenchBroom / TrenchBroom

Cross-Platform Level Editor
kristianduske.com/trenchbroom
GNU General Public License v3.0
1.88k stars 224 forks source link

Running Trenchbroom in Wayland session causes core dump, however forcing XWayland with QT_QPA_PLATFORM=xcb runs fine #4543

Closed helpvisa closed 2 months ago

helpvisa commented 2 months ago

System Information

TrenchBroom 2024.1 (compiled from master branch) Fedora 39 with kernel 6.8.6 Gnome 45 Wayland session AMD Ryzen 5 7530U with Radeon graphics

Expected Behavior

Creating or loading a map file allows the user to edit the file in TrenchBroom instead of causing a crash / core dump.

Steps to Reproduce

Launch TrenchBroom from within a Wayland session and attempt to create a new map file or load an existing map file. TrenchBroom will crash with a core dump and a note about failing to initialize glew in the logs.

Alternatively, launch TrenchBroom with the environment variable QT_QPA_PLATFORM=xcb and see that it does not crash, but instead runs fine loading / creating any file from within XWayland.

Crash Info

OS: Fedora Linux 39 (Workstation Edition)
Qt: 5.15.12
GL_VENDOR:  unknown
GL_RENDERER:    unknown
GL_VERSION: unknown
TrenchBroom Version:    2024.1
TrenchBroom Build:  v2024.1-50-gd2d8fc268 Release Linux-
Reason: Error initializing glew: Unknown error
Stack trace:
<uncaught exception>

The above is from the generated crash log. It seems that TrenchBroom is unable to find an appropriate renderer when running under a Wayland session. Perhaps forcing it to use xcb in the meantime could be enough?

Unfortunately realizing now after I've already posted this that I've essentially created a duplicate issue of #3326. apologies. My search-fu was lacking.

kduske commented 2 months ago

Duplicate of #4361