Bug 461601 - plasmashell occasionally crashes on login
Summary: plasmashell occasionally crashes on login
Status: RESOLVED DUPLICATE of bug 447717
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 5.26.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-08 18:07 UTC by Alessandro Astone
Modified: 2022-12-02 19:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
5.26.2 stacktrace (11.12 KB, text/vnd.kde.kcrash-report)
2022-11-08 18:07 UTC, Alessandro Astone
Details
5.26.x stacktrace 1 (1.04 KB, text/vnd.kde.kcrash-report)
2022-11-08 18:07 UTC, Alessandro Astone
Details
5.26.x stacktrace 2 (18.02 KB, text/vnd.kde.kcrash-report)
2022-11-08 18:08 UTC, Alessandro Astone
Details
5.26.x stacktrace 3 (10.63 KB, text/vnd.kde.kcrash-report)
2022-11-08 18:08 UTC, Alessandro Astone
Details
5.26.4 stacktrace (9.44 KB, text/vnd.kde.kcrash-report)
2022-12-02 14:57 UTC, Morice Olbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Astone 2022-11-08 18:07:14 UTC
Created attachment 153591 [details]
5.26.2 stacktrace

SUMMARY
This is a regression since 5.26.0.
Plasmashell is often slow at loading, sometimes the desktop background will turn black for a second, then reappear together with the panels. Other times you get greeted with a crash. Not sure if the slowness/sloppyness is correlated to the crash.
Attaching some stacktraces i gathered with drkonqi after the crashes. They may be from different plasma dot releases.


STEPS TO REPRODUCE
1. Log into Plasma Wayland

OBSERVED RESULT
Crash, occasionally

EXPECTED RESULT
No crash :)

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 36 KDE
(available in About System)
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Comment 1 Alessandro Astone 2022-11-08 18:07:50 UTC
Created attachment 153592 [details]
5.26.x stacktrace 1
Comment 2 Alessandro Astone 2022-11-08 18:08:20 UTC
Created attachment 153593 [details]
5.26.x stacktrace 2
Comment 3 Alessandro Astone 2022-11-08 18:08:40 UTC
Created attachment 153594 [details]
5.26.x stacktrace 3
Comment 4 Alessandro Astone 2022-11-08 18:11:29 UTC
It may not be very clear. By "This is a regression since 5.26.0" i mean that it started happening in 5.26.0 included.
Comment 5 Nate Graham 2022-11-09 20:02:04 UTC
Hmm, none of these backtraces show an issue in any KDE code. Pasting them inline for searchability:

Application: Plasma (plasmashell), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f6b24ae8805 in QMutex::lock() () at /lib64/libQt5Core.so.5
#5  0x00007f6b24caa12e in QCoreApplicationPrivate::lockThreadPostEventList(QObject*) () at /lib64/libQt5Core.so.5
#6  0x00007f6b24caa85d in QCoreApplication::postEvent(QObject*, QEvent*, int) () at /lib64/libQt5Core.so.5
#7  0x00007f6b24cdb9a6 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#8  0x00007f6b268a716c in QQuickWindowPrivate::renderSceneGraph(QSize const&, QSize const&) () at /lib64/libQt5Quick.so.5
#9  0x00007f6b26846cc3 in QSGRenderThread::syncAndRender(QImage*) () at /lib64/libQt5Quick.so.5
#10 0x00007f6b2684799b in QSGRenderThread::run() () at /lib64/libQt5Quick.so.5
#11 0x00007f6b24ae8487 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#12 0x00007f6b2428cded in start_thread () at /lib64/libc.so.6
#13 0x00007f6b24312370 in clone3 () at /lib64/libc.so.6


Application: Plasma (plasmashell), signal: Segmentation fault

[KCrash Handler]
#4  0x00007feb1919c150 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#5  0x00007feb1919f534 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#6  0x00007feb191ed537 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#7  0x00007feb173c5faf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#8  0x00007feb1741b2c8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#9  0x00007feb173c3940 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#10 0x00007feb191ed02a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#11 0x00007feb1919ac1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#12 0x00007feb191a2ce2 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#13 0x0000557ae3b77373 in main ()
[Inferior 1 (process 1441) detached]


Application: Plasma (plasmashell), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fefe5e50a85 in QQuickItemGrabResult::render() () at /lib64/libQt5Quick.so.5
#5  0x00007fefe43619a6 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#6  0x00007fefe5dc016c in QQuickWindowPrivate::renderSceneGraph(QSize const&, QSize const&) () at /lib64/libQt5Quick.so.5
#7  0x00007fefe5d5fcc3 in QSGRenderThread::syncAndRender(QImage*) () at /lib64/libQt5Quick.so.5
#8  0x00007fefe5d6099b in QSGRenderThread::run() () at /lib64/libQt5Quick.so.5
#9  0x00007fefe416e487 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#10 0x00007fefe3cdcded in start_thread () at /lib64/libc.so.6
#11 0x00007fefe3d62370 in clone3 () at /lib64/libc.so.6


I suspect a regression in Qt or the graphics drivers that just happened to coincide with the Plasma 5.26 update.
Comment 6 Alessandro Astone 2022-11-29 22:39:58 UTC
Just a guess, but this looks very possibly related: https://invent.kde.org/plasma/plasma-workspace/-/commit/0fff87982b7164a442b549509fa9fa792007880a

Unfortunately I see it's being reverted https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2380/commits
Comment 7 Morice Olbert 2022-12-02 14:57:52 UTC
Created attachment 154229 [details]
5.26.4 stacktrace
Comment 8 Morice Olbert 2022-12-02 15:00:50 UTC
(In reply to Alessandro Astone from comment #6)
> Just a guess, but this looks very possibly related:
> https://invent.kde.org/plasma/plasma-workspace/-/commit/
> 0fff87982b7164a442b549509fa9fa792007880a
> 
> Unfortunately I see it's being reverted
> https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2380/commits

Yeah applying this patches fixes it for me.
Comment 9 Nate Graham 2022-12-02 19:15:45 UTC

*** This bug has been marked as a duplicate of bug 447717 ***