Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt6/GNOME/Wayland/Adwaita: Crash (SIGSEGV) on Startup #12014

Closed
uklotzde opened this issue Sep 23, 2023 · 13 comments
Closed

Qt6/GNOME/Wayland/Adwaita: Crash (SIGSEGV) on Startup #12014

uklotzde opened this issue Sep 23, 2023 · 13 comments

Comments

@uklotzde
Copy link
Contributor

uklotzde commented Sep 23, 2023

Bug Description

Worked before, but currently it crashes:

debug [Main] Loading resources from  "/home/uk/volumes/Build/cpp/mixxx/build.qt6/../res/"

Thread 1 "mixxx" received signal SIGSEGV, Segmentation fault.
0x00007fffe98d1f84 in QtWaylandClient::QWaylandAbstractDecoration::update() ()
   from /lib64/libQt6WaylandClient.so.6

#0  0x00007fffe98d1f84 in QtWaylandClient::QWaylandAbstractDecoration::update() () at /lib64/libQt6WaylandClient.so.6
#1  0x00007fffc0218e7a in QAdwaitaDecorations::forceRepaint() () at /usr/lib64/qt6/plugins/wayland-decoration-client/libqadwaitadecorations.so
#2  0x00007fffc021c131 in QAdwaitaDecorations::initConfiguration() () at /usr/lib64/qt6/plugins/wayland-decoration-client/libqadwaitadecorations.so
#3  0x00007ffff2bcfe67 in QObject::event(QEvent*) () at /lib64/libQt6Core.so.6
#4  0x00007ffff61c0af8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt6Widgets.so.6
#5  0x00007ffff2b7cdc8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt6Core.so.6
#6  0x00007ffff2b808e5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt6Core.so.6
#7  0x00007ffff2e2106f in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt6Core.so.6
#8  0x00007ffff519b4fc in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#9  0x00007ffff51f96b8 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#10 0x00007ffff5198b83 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#11 0x00007ffff2e2090f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#12 0x00007ffff2bde3a4 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6
#13 0x0000000000d929ab in mixxx::CoreServices::initializationProgressUpdate(int, QString const&) (_t2=..., _t1=<optimized out>, this=0x1884f50)
    at /home/uk/volumes/Build/cpp/mixxx/build.qt6/mixxx-lib_autogen/include/moc_coreservices.cpp:188
#14 mixxx::CoreServices::initialize(QApplication*) (this=0x1884f50, pApp=<optimized out>) at /home/uk/volumes/Build/cpp/mixxx/src/coreservices.cpp:239
#15 0x000000000065c03e in (anonymous namespace)::runMixxx (args=<optimized out>, pApp=0x7fffffffd400) at /home/uk/volumes/Build/cpp/mixxx/src/main.cpp:61
#16 main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /home/uk/volumes/Build/cpp/mixxx/src/main.cpp:213

Might be caused by recent OS updates, didn't check.

Version

main

OS

Fedora 38

@uklotzde uklotzde added the bug label Sep 23, 2023
@Swiftb0y
Copy link
Member

Swiftb0y commented Sep 24, 2023

Can not confirm for now. Might try again in a couple weeks with more updates applied.

image

Qt5 is also unaffected for me.

@Swiftb0y
Copy link
Member

Just to be sure, this was a -DQT6=ON -DQML=OFF build, right?

@uklotzde
Copy link
Contributor Author

Just to be sure, this was a -DQT6=ON -DQML=OFF build, right?

Correct. Deleting the build directory didn't fix it. I am using separate build directories for Qt5 and Qt6.

@uklotzde uklotzde changed the title Qt6/GNOME/Wayland/Adwaita: Crash on Startup Qt6/GNOME/Wayland/Adwaita: Crash (SIGSEGV) on Startup Sep 24, 2023
@daschuer daschuer added the QT6 label Sep 24, 2023
@daschuer daschuer added this to the 2.5.0 milestone Sep 24, 2023
@uklotzde uklotzde closed this as completed Oct 9, 2023
@uklotzde uklotzde reopened this Oct 11, 2023
@uklotzde
Copy link
Contributor Author

uklotzde commented Nov 2, 2023

Still crashes and I have no clue how to resolve this. Even commenting out the code initializationProgressUpdate() doesn't help.

@uklotzde
Copy link
Contributor Author

uklotzde commented Nov 6, 2023

Still crashes after a fresh install of Fedora 39 with Qt 6.6.

@ronso0
Copy link
Member

ronso0 commented Nov 6, 2023

Additionally, can you try deactivating the entire LaunchImage code in MixxxMainWindow
here

m_pLaunchImage = m_pSkinLoader->loadLaunchImage(this);
m_pCentralWidget = (QWidget*)m_pLaunchImage;
setCentralWidget(m_pCentralWidget);

and, if that doesn't work, delay show() until the skin is loaded?

@uklotzde
Copy link
Contributor Author

uklotzde commented Nov 6, 2023

and, if that doesn't work, delay show() until the skin is loaded?

Delaying the invocation of show() until after loadConfiguredSkin() returned doesn't work either.

@uklotzde
Copy link
Contributor Author

uklotzde commented Nov 6, 2023

Retried with a vanilla main branch at 7c1bb1b (+ recent Qt 6.6 fixes from 2.4) on Fedora 39 using Qt 6.6.0. Still crashes.

#0  0x00007fffe9159934 in QtWaylandClient::QWaylandAbstractDecoration::update() () at /lib64/libQt6WaylandClient.so.6
#1  0x00007fffc0254c3a in QAdwaitaDecorations::forceRepaint() (this=0x16b4c20) at /usr/src/debug/qadwaitadecorations-0.1.3-1.fc39.x86_64/src/qadwaitadecorations.cpp:698
#2  0x00007fffc0258cac in QAdwaitaDecorations::initConfiguration() (this=0x16b4c20)
    at /usr/src/debug/qadwaitadecorations-0.1.3-1.fc39.x86_64/src/qadwaitadecorations.cpp:157
#3  0x00007ffff29f3657 in QObject::event(QEvent*) () at /lib64/libQt6Core.so.6
#4  0x00007ffff71c2b38 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt6Widgets.so.6
#5  0x00007ffff29a0be8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt6Core.so.6
#6  0x00007ffff29a4ae5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt6Core.so.6
#7  0x00007ffff2c410af in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt6Core.so.6
#8  0x00007ffff50c0e5c in g_main_context_dispatch_unlocked.lto_priv () at /lib64/libglib-2.0.so.0
#9  0x00007ffff511bdd8 in g_main_context_iterate_unlocked.isra () at /lib64/libglib-2.0.so.0
#10 0x00007ffff50bead3 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#11 0x00007ffff2c4095f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#12 0x00007ffff2a02051 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6
#13 0x00000000007d132b in mixxx::CoreServices::initializationProgressUpdate(int, QString const&) (_t2=..., _t1=<optimized out>, this=0x17a45c0)
    at /home/uk/volumes/Build/cpp/mixxx/build.qt6/mixxx-lib_autogen/include/moc_coreservices.cpp:188
#14 mixxx::CoreServices::initialize(QApplication*) (this=0x17a45c0, pApp=<optimized out>) at /home/uk/volumes/Build/cpp/mixxx/src/coreservices.cpp:240
#15 0x000000000064c5f7 in (anonymous namespace)::runMixxx (args=<optimized out>, pApp=0x7fffffffda80) at /home/uk/volumes/Build/cpp/mixxx/src/main.cpp:60
#16 main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /home/uk/volumes/Build/cpp/mixxx/src/main.cpp:211

https://github.com/FedoraQt/QAdwaitaDecorations/blob/795bd8d6099d91851201ca5a39e6fb4a93a5eddf/src/qadwaitadecorations.cpp#L698

@uklotzde
Copy link
Contributor Author

uklotzde commented Nov 6, 2023

Similar report:

https://www.mail-archive.com/kde-bugs-dist@kde.org/msg847684.html

But here it still happens for qadwaitadecorations-0.1.3-1.fc39 even though a fix should be in place since version 0.1.2-5.fc39.

@ronso0
Copy link
Member

ronso0 commented Nov 6, 2023

So, this is not a Mixxx issue, correct?

@uklotzde
Copy link
Contributor Author

uklotzde commented Nov 6, 2023

So, this is not a Mixxx issue, correct?

I would expect many more reports if this affects all Qt6 applications running on Wayland under GNOME.

I am giving up. No one seems to be testing Mixxx on Wayland.

@uklotzde uklotzde closed this as completed Nov 6, 2023
@Swiftb0y
Copy link
Member

Swiftb0y commented Nov 6, 2023

No one seems to be testing Mixxx on Wayland.

Not true. As I've stated before. I'm also running F38 and mixxx under wayland and couldn't reproduce it... Lets close for now, I (or someone else) will reopen this once we can reproduce it.

@uklotzde
Copy link
Contributor Author

No more crash on Qt6/Wayland on Fedora 39 after removing the -platform xcb argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants