wheremyfoodat/Panda3DS

QT version crahses on Wayland

DaniElectra opened this issue · 0 comments

When trying to open the app on Wayland it crashes, giving the following backtrace:

Thread 1 "Alber" received signal SIGSEGV, Segmentation fault.
QWindow::screen (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow.cpp:2184
2184        Q_D(const QWindow);
(gdb) bt
#0  QWindow::screen (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow.cpp:2184
#1  0x00005555556ca375 in ScreenWidget::devicePixelRatioFromScreen (this=0x5555580ef280) at /home/daniel/Sources/ctr-emulation/Panda3DS/src/panda_qt/screen.cpp:82
#2  0x00005555556ca408 in ScreenWidget::scaledWindowWidth (this=0x5555580ef280) at /home/daniel/Sources/ctr-emulation/Panda3DS/src/panda_qt/screen.cpp:91
#3  0x00005555556ca1cc in ScreenWidget::getWindowInfo (this=0x5555580ef280) at /home/daniel/Sources/ctr-emulation/Panda3DS/src/panda_qt/screen.cpp:130
#4  0x00005555556c9ab6 in ScreenWidget::createGLContext (this=0x5555580ef280) at /home/daniel/Sources/ctr-emulation/Panda3DS/src/panda_qt/screen.cpp:70
#5  0x00005555556c99b5 in ScreenWidget::ScreenWidget (this=0x5555580ef280, resizeCallback=..., parent=0x7fffffffd708)
    at /home/daniel/Sources/ctr-emulation/Panda3DS/src/panda_qt/screen.cpp:33
#6  0x00005555556cbb32 in MainWindow::MainWindow (this=0x7fffffffd708, app=0x7fffffffd810, parent=0x0) at /home/daniel/Sources/ctr-emulation/Panda3DS/src/panda_qt/main_window.cpp:23
#7  0x00005555556c9753 in main (argc=1, argv=0x7fffffffd958) at /home/daniel/Sources/ctr-emulation/Panda3DS/src/panda_qt/main.cpp:8

Using SDL or running the app on X11 or XWayland with QT_QPA_PLATFORM=xcb ./Alber makes the app work as expected

Specs:

  • OS: Arch Linux x86_64 (Linux 6.10.6-zen1-1-zen)
  • DE: KDE Plasma 6.1.4
  • CPU: AMD Ryzen 7 5700U (16) @ 4,37 GHz
  • GPU: AMD Lucienne [Integrated] (Mesa drivers)
  • Memory: 16 GiB