Sample Header Ad - 728x90

QT applications segfault under WAYLAND in GNOME

0 votes
0 answers
34 views
I cannot launch any QT application from gnome-shell because they segfault. e.g. torbrowser-launcher
Jun 28 12:25:43 arch-xps systemd: Started Application launched by gnome-shell.
Jun 28 12:25:43 arch-xps python: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Jun 28 12:25:43 arch-xps python: qt.qpa.xcb: could not connect to display
Jun 28 12:25:43 arch-xps python: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Jun 28 12:25:43 arch-xps python: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                       
                                       Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Jun 28 12:25:43 arch-xps systemd-coredump: Process 4287 (torbrowser-laun) of user 1000 terminated abnormally with signal 6/ABRT, processing...
Jun 28 12:25:43 arch-xps systemd[1] : Created slice Slice /system/systemd-coredump.
Jun 28 12:25:43 arch-xps systemd[1] : Started Process Core Dump (PID 4303/UID 0).
Jun 28 12:25:43 arch-xps systemd-coredump: [🡕] Process 4287 (torbrowser-laun) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 4287:
                                                 #0  0x00007f33c34a774c n/a (libc.so.6 + 0x9774c)
                                                 #1  0x00007f33c344ddc0 raise (libc.so.6 + 0x3ddc0)
                                                 #2  0x00007f33c343557a abort (libc.so.6 + 0x2557a)
                                                 #3  0x00007f33c22982e0 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x982e0)
                                                 #4  0x00007f33be1368c6 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x1368c6)
                                                 #5  0x00007f33be136f99 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x136f99)
                                                 #6  0x00007f33c24c9525 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2c9525)
                                                 #7  0x00007f33be13704e _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x13704e)
                                                 #8  0x00007f33be954d36 _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x154d36)
                                                 #9  0x00007f33bf2d9133 n/a (QtWidgets.abi3.so + 0x2d9133)
                                                 #10 0x00007f33c2c60af7 n/a (sip.cpython-313-x86_64-linux-gnu.so + 0x1aaf7)
                                                 #11 0x00007f33c3863250 n/a (libpython3.13.so.1.0 + 0x263250)
                                                 #12 0x00007f33c37dbc83 n/a (libpython3.13.so.1.0 + 0x1dbc83)
                                                 #13 0x00007f33c3760e3b _PyObject_MakeTpCall (libpython3.13.so.1.0 + 0x160e3b)
                                                 #14 0x00007f33c37752be _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x1752be)
                                                 #15 0x00007f33c37a8dda n/a (libpython3.13.so.1.0 + 0x1a8dda)
                                                 #16 0x00007f33c3760d9d _PyObject_MakeTpCall (libpython3.13.so.1.0 + 0x160d9d)
                                                 #17 0x00007f33c37752be _PyEval_EvalFrameDefault (libpython3.13.so.1.0 + 0x1752be)
                                                 #18 0x00007f33c384c8b9 PyEval_EvalCode (libpython3.13.so.1.0 + 0x24c8b9)
                                                 #19 0x00007f33c388af5c n/a (libpython3.13.so.1.0 + 0x28af5c)
                                                 #20 0x00007f33c388801b n/a (libpython3.13.so.1.0 + 0x28801b)
                                                 #21 0x00007f33c3885718 n/a (libpython3.13.so.1.0 + 0x285718)
                                                 #22 0x00007f33c38849d2 n/a (libpython3.13.so.1.0 + 0x2849d2)
                                                 #23 0x00007f33c3884343 n/a (libpython3.13.so.1.0 + 0x284343)
                                                 #24 0x00007f33c388248b Py_RunMain (libpython3.13.so.1.0 + 0x28248b)
                                                 #25 0x00007f33c3839dcb Py_BytesMain (libpython3.13.so.1.0 + 0x239dcb)
                                                 #26 0x00007f33c34376b5 n/a (libc.so.6 + 0x276b5)
                                                 #27 0x00007f33c3437769 __libc_start_main (libc.so.6 + 0x27769)
                                                 #28 0x0000564d96d2a045 _start (/usr/bin/python3.13 + 0x1045)
                                                 
                                                 Stack trace of thread 4302:
                                                 #0  0x00007f33c34ade22 n/a (libc.so.6 + 0x9de22)
                                                 #1  0x00007f33c34a1fda n/a (libc.so.6 + 0x91fda)
                                                 #2  0x00007f33c34a2024 n/a (libc.so.6 + 0x92024)
                                                 #3  0x00007f33c351c5a6 ppoll (libc.so.6 + 0x10c5a6)
                                                 #4  0x00007f33c1909e04 n/a (libglib-2.0.so.0 + 0x5fe04)
                                                 #5  0x00007f33c1909ee5 g_main_context_iteration (libglib-2.0.so.0 + 0x5fee5)
                                                 #6  0x00007f33c2521489 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x321489)
                                                 #7  0x00007f33c24c807b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2c807b)
                                                 #8  0x00007f33c22f531b _ZN7QThread4execEv (libQt5Core.so.5 + 0xf531b)
                                                 #9  0x00007f33bc8f4d2e n/a (libQt5DBus.so.5 + 0x17d2e)
                                                 #10 0x00007f33c22f1859 n/a (libQt5Core.so.5 + 0xf1859)
                                                 #11 0x00007f33c34a57eb n/a (libc.so.6 + 0x957eb)
                                                 #12 0x00007f33c352918c n/a (libc.so.6 + 0x11918c)
                                                 ELF object binary architecture: AMD x86-64
while launching it from terminal, it starts successfully! and I get:
$ torbrowser-launcher 
Tor Browser Launcher
By Micah Lee & Tor Project, licensed under MIT
version 0.3.7
https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/ 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Launching Tor Browser.
Running /home/mattia/.local/share/torbrowser/tbb/x86_64/tor-browser/start-tor-browser.desktop
Launching './Browser/start-tor-browser --detach'...
same happens with picard, torbrowser or masterpdfeditor instead GPXSee starts fine! It looks like **gnome-shell** ignores customized variable **QT_QPA_PLATFORM** (which I defined in *.bashrc*), so I tried launching torbrowser forcing that variable as empty, and it segfaults, as well:
$ QT_QPA_PLATFORM= torbrowser-launcher 
Tor Browser Launcher
By Micah Lee & Tor Project, licensed under MIT
version 0.3.7
https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/ 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)
Any help is welcome! **EDIT-1:** system does not have XWayland, or better, I disabled it from gnome-shell[[1] ]; --- Arch Linux, GNOME 48 under Wayland, qt{5,6}-wayland packages installed
Asked by mattia.b89 (3398 rep)
Jun 28, 2025, 10:41 AM
Last activity: Jul 6, 2025, 05:39 PM