SUMMARY I can not open any KDE program anymore without it crashing. Even the crash handler crashes as soon as I press "Developer Information" or "Report Bug". The signal I get is a Segmentation fault (11). I've been trying to find what is causing this, but can not find a single clue or way to fix it. Doing the backtrace stuff also does not seem to give many results to help me fix it (or maybe it's obvious and I'm just not good at this kind of stuff). When I run coredumpctl gdb PID I get this: *** warning: Can't open file /memfd:/.glXXXXXX (deleted) during file-backed mapping note processing warning: Can't open file /memfd:/.nvidia_drv.XXXXXX (deleted) during file-backed mapping note processing warning: Can't open file /memfd:JSGCHeap:QtQml (deleted) during file-backed mapping note processing warning: Can't open file /memfd:JSVMStack:QtQml (deleted) during file-backed mapping note processing warning: Can't open file /memfd:JITCode:QtQml (deleted) during file-backed mapping note processing warning: Can't open file /memfd:unknown-usage:QtQml (deleted) during file-backed mapping note processing [New LWP 3153] [New LWP 3157] [New LWP 3156] [New LWP 3154] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `systemsettings'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f117b44549c in ?? () from /usr/lib/libc.so.6 [Current thread is 1 (Thread 0x7f117626aa80 (LWP 3153))] *** And the backtrace is this: *** #0 0x00007ffff768e820 in ?? () from /usr/lib/libQt5Widgets.so.5 #1 0x00007ffff7695bee in ?? () from /usr/lib/libQt5Widgets.so.5 #2 0x00007fffe9c982d9 in ?? () from /usr/lib/qt/qml/org/kde/qqc2desktopstyle/private/libqqc2desktopstyleplugin.so #3 0x00007ffff4d192ea in QQuickWindowPrivate::polishItems() () from /usr/lib/libQt5Quick.so.5 #4 0x00007ffff4daaec4 in QQuickRenderControl::polishItems() () from /usr/lib/libQt5Quick.so.5 #5 0x00007ffff5054ec8 in ?? () from /usr/lib/libQt5QuickWidgets.so.5 #6 0x00007ffff7628384 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5 #7 0x00007ffff75f1b1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 #8 0x00007ffff6a6bb68 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5 #9 0x00007ffff76230b3 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () from /usr/lib/libQt5Widgets.so.5 #10 0x00007ffff76270b8 in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5 #11 0x00007ffff762770d in QWidgetPrivate::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5 #12 0x00007ffff7627513 in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5 #13 0x00007ffff76270d6 in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5 #14 0x00007ffff762770d in QWidgetPrivate::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5 #15 0x00007ffff7612b62 in QStackedLayout::setCurrentIndex(int) () from /usr/lib/libQt5Widgets.so.5 #16 0x00007ffff7612f6b in QStackedLayout::insertWidget(int, QWidget*) () from /usr/lib/libQt5Widgets.so.5 #17 0x0000555555565bfe in ?? () #18 0x0000555555568e24 in ?? () #19 0x00007ffff6a8f500 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5 #20 0x00007ffff7f3a2be in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libKF5XmlGui.so.5 #21 0x00007ffff75f1b1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 --Type <RET> for more, q to quit, c to continue without paging--<RET> #22 0x00007ffff6a6bb68 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5 #23 0x00007ffff6a6c673 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5 #24 0x00007ffff6ab2708 in ?? () from /usr/lib/libQt5Core.so.5 #25 0x00007ffff50b4b2b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #26 0x00007ffff510ae79 in ?? () from /usr/lib/libglib-2.0.so.0 #27 0x00007ffff50b2252 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #28 0x00007ffff6ab64ec in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #29 0x00007ffff6a6430c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5 #30 0x00007ffff6a6ee39 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5 #31 0x000055555555fb7a in ?? () #32 0x00007ffff63e2290 in ?? () from /usr/lib/libc.so.6 #33 0x00007ffff63e234a in __libc_start_main () from /usr/lib/libc.so.6 #34 0x00005555555604d5 in ?? () *** STEPS TO REPRODUCE 1. Open any KDE application (systemsettings, kdenlive, ...) OBSERVED RESULT Instant crashes with a window saying that it crashed, which then results in crashing itself when you press a button. EXPECTED RESULT To not crash when simply opening a program. SOFTWARE/OS VERSIONS Linux: Arch Linux lts 5.15.67-1-lts (Same problem happens on the linux (non lts) kernel) Qt Version: QT5 and QT6 installed
Just found out that applications start as soon as I add the programs to ignored applications in qt5ct. So maybe a QT bug?
Fixed by disabling stylesheets inside of qt5ct. I still want to know what actually caused this problem as I wasted 2 day's trying to fix this. Is this a qt problem or a KDE problem, because none of my other qt programs were affected by this.
I see the same backtrace when using the bluetooth settings and then I click on my headphone entry. The crash happens in Qt code in widgets/styles/qstylesheetstyle.cpp:2467 2467 if (const QAbstractScrollArea *sa = qobject_cast<const QAbstractScrollArea *>(w->parentWidget())) { since "w" is a nullptr. backtrace: (gdb) bt #0 containerWidget(QWidget const*) (w=w@entry=0x0) at styles/qstylesheetstyle.cpp:2467 #1 0x00007f011105058e in QStyleSheetStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*, QPainter*, QWidget const*) const (this=0x173efe0, pe=QStyle::PE_PanelLineEdit, opt=0x25101a0, p=0x7ffda9d7f150, w=0x0) at styles/qstylesheetstyle.cpp:4452 #2 0x00007f00f474128d in KQuickStyleItem::paint(QPainter*) (painter=0x7ffda9d7f150, this=0x250ea50) at /usr/src/debug/qqc2-desktop-style-5.98.0-1.2.x86_64/plugin/kquickstyleitem.cpp:1670 #3 KQuickStyleItem::updatePolish() (this=0x250ea50) at /usr/src/debug/qqc2-desktop-style-5.98.0-1.2.x86_64/plugin/kquickstyleitem.cpp:1930 #4 0x00007f010f4979d2 in QQuickWindowPrivate::polishItems() () at /lib64/libQt5Quick.so.5 #5 0x00007f010f521d8e in QQuickRenderControl::polishItems() () at /lib64/libQt5Quick.so.5 ... From what I see, it's a bug in Qt since QStyle::drawPrimitive() allows the QWidget argument to be a nullptr, but the case PE_PanelLineEdit does not check this. Still something must have been changed recently in KDE since the same dialog worked just before my last openSuse Tumbleweed upgrade.
Have you encountered this bug again?
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.