Skip to content
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

QT version crahses on Wayland #586

Open
DaniElectra opened this issue Aug 24, 2024 · 0 comments
Open

QT version crahses on Wayland #586

DaniElectra opened this issue Aug 24, 2024 · 0 comments

Comments

@DaniElectra
Copy link

DaniElectra commented Aug 24, 2024

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant