Summary: | Systemsettings 5.24 crashes when switching from icon view to sidebar view | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Christian (Fuchs) <kde> |
Component: | generic-crash | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | CC: | bugseforuns, nate, postix, qydwhotmail, trmdi |
Priority: | NOR | Keywords: | drkonqi, regression |
Version: | 5.24.0 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=247827 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
Stacktrace: openSUSE TW (SidebarMode::requestToolTip ) New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Christian (Fuchs)
2022-02-09 13:25:28 UTC
*** This bug has been marked as a duplicate of bug 444599 *** Created attachment 146798 [details]
New crash information added by DrKonqi
systemsettings (5.24.0) using Qt 5.15.2
- What I was doing when the application crashed:
Switching from icon view to sidebar view via the button in the toolbar.
-- Backtrace (Reduced):
#6 QAbstractAnimation::stop (this=0x560de9da6bb0) at animation/qabstractanimation.cpp:1378
#7 0x00007fee1075a607 in QPropertyAnimation::~QPropertyAnimation (this=this@entry=0x560de9da6bb0, __in_chrg=<optimized out>) at animation/qpropertyanimation.cpp:167
#8 0x00007fee08c80273 in Breeze::Animation::~Animation (this=<optimized out>, this=<optimized out>) at /usr/src/debug/breeze-5.24.0-1.1.x86_64/build/kstyle/breeze_autogen/4NBMFDNHZT/../../../../kstyle/animations/breezeanimation.h:18
#9 Breeze::Animation::~Animation (this=<optimized out>, this=<optimized out>) at /usr/src/debug/breeze-5.24.0-1.1.x86_64/build/kstyle/breeze_autogen/4NBMFDNHZT/../../../../kstyle/animations/breezeanimation.h:18
#10 0x00007fee1097cbae in QObjectPrivate::deleteChildren (this=0x560dea1ac230) at kernel/qobject.cpp:2104
*** Bug 444599 has been marked as a duplicate of this bug. *** I suspect it was caused by some changes in the title. I set a breakpoint at `Breeze::Animation::~Animation()`, and Breeze::Animation::~Animation() refers to the page title. I can't reproduce with the same version with OP on Tumbleweed. Can also reproduce with Adwaita theme. So the bug is not Breeze-specific. Created attachment 146861 [details]
Stacktrace: openSUSE TW (SidebarMode::requestToolTip )
I could reproduce a crash on openSUSE TW (Wayland) once too, when I switched from one view to another, but I got a different stacktrace:
```
#4 <signal handler called>
#5 QWeakPointer<QObject>::internalData (this=0x5648837943b0) at ../../include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:696
#6 QPointer<QObject>::data (this=0x5648837943b0) at ../../include/QtCore/../../src/corelib/kernel/qpointer.h:77
#7 QPointer<QObject>::operator QObject* (this=0x5648837943b0) at ../../include/QtCore/../../src/corelib/kernel/qpointer.h:83
#8 QCoreApplicationPrivate::sendThroughObjectEventFilters (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1183
#9 QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x564a8368b450, event=event@entry=0x7ffce32e9370) at kernel/qcoreapplication.cpp:1179
#10 0x00007f202f072a6e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x564a8368b450, e=0x7ffce32e9370) at kernel/qapplication.cpp:3626
#11 0x00007f202e3bfe2a in QCoreApplication::notifyInternal2 (receiver=0x564a8368b450, event=0x7ffce32e9370) at kernel/qcoreapplication.cpp:1064
#12 0x00007f202f0b44dd in QWidgetPrivate::setVisible (this=<optimized out>, visible=<optimized out>) at kernel/qwidget.cpp:8145
#13 0x00007f201c3364da in ToolTipManager::requestToolTip (rect=..., index=..., this=0x564a83791790) at /usr/src/debug/systemsettings5-5.24.0-1.1.x86_64/sidebar/ToolTips/tooltipmanager.cpp:110
#14 ToolTipManager::requestToolTip (this=0x564a83791790, index=..., rect=...) at /usr/src/debug/systemsettings5-5.24.0-1.1.x86_64/sidebar/ToolTips/tooltipmanager.cpp:105
#15 0x00007f201c33919d in SidebarMode::requestToolTip (rect=..., index=..., this=0x564a835d7040) at /usr/src/debug/systemsettings5-5.24.0-1.1.x86_64/sidebar/SidebarMode.cpp:415
```
(In reply to postix from comment #7) > Created attachment 146861 [details] > Stacktrace: openSUSE TW (SidebarMode::requestToolTip ) > > I could reproduce a crash on openSUSE TW (Wayland) once too, when I switched > from one view to another, but I got a different stacktrace: Your stack trace is very useful. I can prevent the crash by not initializing the most used model. A possibly relevant merge request was started @ https://invent.kde.org/plasma/systemsettings/-/merge_requests/129 My assumption: The bug can only occur on not-so-fast computers because the placeholder widget is loaded and hidden instantly on fast computers, but on not-so-fast computers, the placeholder widget is loaded, and starts processing events. However during the event processing process, the module widget is loaded and the placeholder widget is hidden, therefore some events that are still being processed can't be handled correctly anymore (is it possible?). I marked my fix as CCBUG because I was not sure if it's the real fix or not. I have tested many times and no crash happened. (In reply to Fushan Wen from comment #10) > My assumption: > The bug can only occur on not-so-fast computers I could only reproduce it once so far, though I wouldn't say that my computer does belong to the group of "not-so-fast" computers: Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor Memory: 31,2 GiB of RAM Graphics Processor: AMD Radeon RX 580 Series NVMe SSD I can't reproduce it on both X and Wayland. If you use intel and have xf86-video-intel installed, try removing it? (In reply to trmdi from comment #12) > I can't reproduce it on both X and Wayland. If you use intel and have > xf86-video-intel installed, try removing it? The package is not installed. Now I can still sometimes (better than every time) reproduce the crash with my patch applied. Created attachment 146916 [details]
New crash information added by DrKonqi
systemsettings (5.24.0) using Qt 5.15.2
- What I was doing when the application crashed:
Adwaita theme, with my patch applied, and the bug still occurs sometimes.
-- Backtrace (Reduced):
#6 QAbstractAnimation::stop (this=0x55da9d892660) at animation/qabstractanimation.cpp:1378
#7 0x00007fc075612607 in QPropertyAnimation::~QPropertyAnimation (this=this@entry=0x55da9d892660, __in_chrg=<optimized out>) at animation/qpropertyanimation.cpp:167
#8 0x00007fc06daeaf47 in Adwaita::Animation::~Animation (this=<optimized out>, this=<optimized out>) at /usr/src/debug/adwaita-qt-1.4.0-1.4.x86_64/build/src/lib/adwaitaqtpriv_autogen/4NBMFDNHZT/../../../../../src/lib/animations/adwaitaanimation.h:46
#9 Adwaita::Animation::~Animation (this=<optimized out>, this=<optimized out>) at /usr/src/debug/adwaita-qt-1.4.0-1.4.x86_64/build/src/lib/adwaitaqtpriv_autogen/4NBMFDNHZT/../../../../../src/lib/animations/adwaitaanimation.h:46
#10 0x00007fc075834bae in QObjectPrivate::deleteChildren (this=0x55da9dc7c080) at kernel/qobject.cpp:2104
Git commit e7dab85368331b97ed859c50353a5681ad3daf12 by Fushan Wen. Committed on 18/02/2022 at 14:05. Pushed by fusionfuture into branch 'master'. sidebar: Load placeHolderWidget only when needed This slightly reduces the startup time of the sidebar mode, and potentially fixes the crash when switching from the icon mode to the sidebar mode. M +35 -18 sidebar/SidebarMode.cpp M +1 -0 sidebar/SidebarMode.h https://invent.kde.org/plasma/systemsettings/commit/e7dab85368331b97ed859c50353a5681ad3daf12 Git commit f2909a903e125d904ae3e49f372634c2fc39db9d by Fushan Wen. Committed on 19/02/2022 at 13:10. Pushed by fusionfuture into branch 'Plasma/5.24'. sidebar: Load placeHolderWidget only when needed This slightly reduces the startup time of the sidebar mode, and potentially fixes the crash when switching from the icon mode to the sidebar mode. (cherry picked from commit e7dab85368331b97ed859c50353a5681ad3daf12) M +35 -18 sidebar/SidebarMode.cpp M +1 -0 sidebar/SidebarMode.h https://invent.kde.org/plasma/systemsettings/commit/f2909a903e125d904ae3e49f372634c2fc39db9d *** This bug has been marked as a duplicate of bug 444599 *** Created attachment 154303 [details]
New crash information added by DrKonqi
systemsettings (5.26.80) using Qt 5.15.7
Switched from Icon View to Sidebar View, and system settings crashed.
-- Backtrace (Reduced):
#6 QAbstractAnimation::stop (this=0x55a19d06de30) at animation/qabstractanimation.cpp:1378
#7 0x00007f53c68e23e7 in QPropertyAnimation::~QPropertyAnimation (this=this@entry=0x55a19d06de30, __in_chrg=<optimized out>) at animation/qpropertyanimation.cpp:167
#8 0x00007f53c0118313 in Breeze::Animation::~Animation (this=<optimized out>, this=<optimized out>) at /usr/src/debug/breeze-5.26.80git.20221202T030836~0eca335/build/kstyle/breeze_autogen/4NBMFDNHZT/../../../../kstyle/animations/breezeanimation.h:17
#9 Breeze::Animation::~Animation (this=<optimized out>, this=<optimized out>) at /usr/src/debug/breeze-5.26.80git.20221202T030836~0eca335/build/kstyle/breeze_autogen/4NBMFDNHZT/../../../../kstyle/animations/breezeanimation.h:17
#10 0x00007f53c6b057de in QObjectPrivate::deleteChildren (this=this@entry=0x55a19cfaf7b0) at kernel/qobject.cpp:2137
Cannot reproduce recently |