Bug 463342

Summary: plasmashell crashes in ImageColors::postProcess() when returning from hibernation or suspend
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Lyon Lemmens <lyon.lemmens>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: REPORTED ---    
Severity: crash CC: kde, nate, notmart, qydwhotmail, tobias, yonatan3058
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.102.0   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: output of kquitapp5 plasmashell && kstart5 plasmashell >& plasmashell.log
KCrash Document

Description Lyon Lemmens 2022-12-22 13:40:17 UTC
Application: plasmashell (5.25.5)

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 5.19.0-26-generic x86_64
Windowing System: X11
Distribution: Ubuntu 22.10
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
I'm using a dual monitor system.
Every time my system wakes from suspend or hibernation, plasmashell crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f41681a7f03 in  () at /usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/libKirigamiPlugin.so
#5  0x00007f41888f36ff in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f41886d6f2d in QFutureWatcherBase::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f418956bf32 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f41888bae38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f41888bdeb1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f4188915427 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f4186de54f9 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007f4186e3a228 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007f4186de2cb0 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007f4188914aea in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f41888b97cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f41888c1c2a in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x0000562224a2d567 in  ()
#18 0x00007f4187e23510 in __libc_start_call_main (main=main@entry=0x562224a2c6b0, argc=argc@entry=1, argv=argv@entry=0x7ffdbe926738) at ../sysdeps/nptl/libc_start_call_main.h:58
#19 0x00007f4187e235c9 in __libc_start_main_impl (main=0x562224a2c6b0, argc=1, argv=0x7ffdbe926738, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdbe926728) at ../csu/libc-start.c:381
#20 0x0000562224a2d685 in  ()
[Inferior 1 (process 516675) detached]

Reported using DrKonqi
Comment 1 Lyon Lemmens 2022-12-22 13:43:57 UTC
Created attachment 154758 [details]
output of kquitapp5 plasmashell && kstart5 plasmashell >& plasmashell.log
Comment 2 tobias 2022-12-28 23:22:01 UTC
@Lyon Lemmens:
What Graphic Card do you use?

I have an Nvidia Card, using the proprietary driver.

Operating System: Manjaro Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 5.15.85-1-MANJARO (64-bit)
Graphics Platform: Wayland
Graphics Processor: NVIDIA GeForce GTX 750 Ti
Comment 3 Lyon Lemmens 2022-12-29 01:05:52 UTC
I've got an integrated video card on my intel nuc:
Lspcinsays: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)
Comment 4 tobias 2022-12-29 16:16:29 UTC
(In reply to Lyon Lemmens from comment #3)
> I've got an integrated video card on my intel nuc:
> Lspcinsays: Intel Corporation Alder Lake-P Integrated Graphics Controller
> (rev 0c)

Interesting, so it is not an Nvidia or Wayland issue.
Comment 5 David Edmundson 2023-01-03 10:29:22 UTC
We are missing symbols for #4  0x00007f41681a7f03 in  () at /usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/libKirigamiPlugin.so

which is the only part of KDE code.

Please install the symbols and reopen if you still have a crash
Comment 6 tobias 2023-01-03 22:34:51 UTC
(In reply to David Edmundson from comment #5)
> We are missing symbols for #4  0x00007f41681a7f03 in  () at
> /usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/libKirigamiPlugin.so
> 
> which is the only part of KDE code.
> 
> Please install the symbols and reopen if you still have a crash

So you want a log with debug symbols of Kirigami2?
Or should other packages also have debug symbols activated?
And if its not Kirigami2, it is related to Qt?
Comment 7 tobias 2023-01-07 16:04:58 UTC
Created attachment 155087 [details]
KCrash Document

One crash that occured.
Comment 8 Nate Graham 2023-01-09 21:51:06 UTC
Thanks. Pasting inline for searchability:

[KCrash Handler]
#4  0x00007f565a236c28 in QtQml::qmlAttachedPropertiesObject(QObject*, QObject* (*)(QObject*), bool) () at /usr/lib/libQt5Qml.so.5
#5  0x00007f5640ba15af in qmlAttachedPropertiesObject<Kirigami::PlatformTheme>(QObject const*, bool) (obj=<optimized out>, create=<optimized out>) at /usr/include/qt/QtQml/qqml.h:703
#6  0x00007f5640b9b077 in ImageColors::postProcess(ImageData&) const (this=this@entry=0x55e4fe781450, imageData=...) at /usr/src/debug/kirigami2/kirigami2-5.101.0/src/imagecolors.cpp:450
#7  0x00007f5640b9e94d in ImageColors::generatePalette(QImage const&) const (this=0x55e4fe781450, sourceImage=<optimized out>) at /usr/src/debug/kirigami2/kirigami2-5.101.0/src/imagecolors.cpp:436
#8  0x00007f5640ba311b in operator() (__closure=0x55e4fee9f840) at /usr/src/debug/kirigami2/kirigami2-5.101.0/src/imagecolors.cpp:181
#9  QtConcurrent::StoredFunctorCall0<ImageData, ImageColors::update()::<lambda()>::<lambda()> >::runFunctor (this=0x55e4fee9f7a0) at /usr/include/qt/QtConcurrent/qtconcurrentstoredfunctioncall.h:60
#10 QtConcurrent::RunFunctionTask<ImageData>::run() (this=0x55e4fee9f7a0) at /usr/include/qt/QtConcurrent/qtconcurrentrunbase.h:108
#11 0x00007f5658ae8211 in  () at /usr/lib/libQt5Core.so.5
#12 0x00007f5658ae42ea in  () at /usr/lib/libQt5Core.so.5
#13 0x00007f565849f8fd in  () at /usr/lib/libc.so.6
#14 0x00007f5658521a60 in  () at /usr/lib/libc.so.6
Comment 9 Nate Graham 2023-01-09 21:51:33 UTC
Can anyone reproduce this on Frameworks 5.101 or later?
Comment 10 tobias 2023-01-09 23:14:04 UTC
(In reply to Nate Graham from comment #9)
> Can anyone reproduce this on Frameworks 5.101 or later?

My version is:
KDE Frameworks Version: 5.101.0
Comment 11 Nate Graham 2023-01-10 14:37:00 UTC
*** Bug 463877 has been marked as a duplicate of this bug. ***
Comment 12 Fushan Wen 2023-01-10 14:39:01 UTC
Unable to find anything wrong from Qt source code. I wonder how attached properties can crash a program.
Comment 13 Nate Graham 2023-01-10 16:46:48 UTC
*** Bug 464061 has been marked as a duplicate of this bug. ***
Comment 14 Yonatan Avhar 2023-01-11 06:49:49 UTC
(In reply to Nate Graham from comment #9)
> Can anyone reproduce this on Frameworks 5.101 or later?

I'm also experiencing this on Frameworks 5.101.0, I reported it in #463877
Comment 15 tobias 2023-01-17 23:04:34 UTC
Still an issue with 5.102.0, crash log shows the same, but I can also post a new one if needed.
Comment 16 tobias 2023-01-21 21:36:14 UTC
Is there anything else that can be done?
git bisect or something?

Does someone remember a working version?
It should be before 5.98.0.