Bug 482673 - Systemsettings crash when selecting Energy Saving
Summary: Systemsettings crash when selecting Energy Saving
Status: RESOLVED DUPLICATE of bug 482668
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_powerdevil (other bugs)
Version First Reported In: 6.0.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-07 09:18 UTC by Ennea
Modified: 2024-03-07 22:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
powerdevilrc file that triggers the crash (215 bytes, text/plain)
2024-03-07 16:15 UTC, Ennea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ennea 2024-03-07 09:18:40 UTC
SUMMARY
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x000074ae28cab393 in __pthread_kill_internal (signo=11, threadid=<optimized out>) at pthread_kill.c:78
#2  0x000074ae28c5a6c8 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x000074ae2a87143f in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kcrash/kcrash-6.0.0/src/kcrash.cpp:586
#4  0x000074ae28c5a770 in <signal handler called> () at /usr/lib/libc.so.6
#5  0x000074ae27ecc527 in _mm_loadu_si128(long long __vector(2) const*) (__P=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/emmintrin.h:706
#6  aeshash128_lt16 (len=2, p=0x101 <error: Cannot access memory at address 0x101>, state0=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qhash.cpp:630
#7  aeshash256 (p=p@entry=0x101 <error: Cannot access memory at address 0x101>, len=len@entry=2, seed=seed@entry=13649200082604250666, seed2=seed2@entry=13409816059069492356)
    at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qhash.cpp:744
#8  0x000074ae27eccb6d in aeshash (seed2=13409816059069492356, seed=13649200082604250666, len=2, p=0x101 <error: Cannot access memory at address 0x101>)
    at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qhash.cpp:785
#9  0x000074ae27eccbb3 in qHash (key=..., seed=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/tools/qhash.cpp:963
#10 0x000074ae2a85797d in qHash (seed=<optimized out>, key=<optimized out>) at /usr/include/qt6/QtCore/qhashfunctions.h:155
#11 QHashPrivate::calculateHash<QString> (seed=<optimized out>, t=<optimized out>) at /usr/include/qt6/QtCore/qhash.h:57
#12 QHashPrivate::Data<QHashPrivate::Node<QString, QString> >::findBucket (this=0x614ce5d64910, key=<optimized out>) at /usr/include/qt6/QtCore/qhash.h:683
#13 0x000074ae2a850f46 in QHash<QString, QString>::find (this=0x614ce5d18180, key=...) at /usr/include/qt6/QtCore/qhash.h:1274
#14 QHash<QString, QString>::constFind (key=..., this=0x614ce5d18180) at /usr/include/qt6/QtCore/qhash.h:1281
#15 KIconLoaderPrivate::preferredIconPath (this=0x614ce5d180b0, name=...) at /usr/src/debug/kiconthemes/kiconthemes-6.0.0/src/kiconloader.cpp:862
#16 0x000074ae2a85158b in KIconLoader::hasIcon (this=<optimized out>, name=<optimized out>) at /usr/src/debug/kiconthemes/kiconthemes-6.0.0/src/kiconloader.cpp:1446
#17 0x000074ae2a849ddc in KIconEngine::isNull (this=<optimized out>) at /usr/src/debug/kiconthemes/kiconthemes-6.0.0/src/kiconengine.cpp:211
#18 0x000074ae2002682e in KQuickStyleItem::sizeFromContents (this=0x614ce6b85330, width=<optimized out>, height=20) at /usr/src/debug/qqc2-desktop-style/qqc2-desktop-style-6.0.0/plugin/kquickstyleitem.cpp:1122
#19 0x000074ae2002e1d1 in KQuickStyleItem::updateSizeHint (this=0x614ce6b85330) at /usr/src/debug/qqc2-desktop-style/qqc2-desktop-style-6.0.0/plugin/kquickstyleitem.cpp:1326
#20 KQuickStyleItem::setProperties (props=<optimized out>, this=0x614ce6b85330) at /usr/src/debug/qqc2-desktop-style/qqc2-desktop-style-6.0.0/plugin/kquickstyleitem_p.h:388
#21 KQuickStyleItem::setProperties (props=<optimized out>, this=0x614ce6b85330) at /usr/src/debug/qqc2-desktop-style/qqc2-desktop-style-6.0.0/plugin/kquickstyleitem_p.h:383
#22 KQuickStyleItem::qt_static_metacall (_o=0x614ce6b85330, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>)
    at /usr/src/debug/qqc2-desktop-style/build/plugin/qqc2desktopstyleplugin_autogen/include/moc_kquickstyleitem_p.cpp:1141
#23 0x000074ae29031298 in QQmlPropertyData::writeProperty (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/qml/qqmlpropertydata_p.h:298
#24 0x000074ae290ed2dc in tryConvertAndAssign (isUrl=false, variantMetaType=..., propertyMetaType=..., flags=..., value=..., property=..., object=0x614ce6b85330)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/qml/qqmlproperty.cpp:1448
#25 QQmlPropertyPrivate::write (object=0x614ce6b85330, property=..., value=..., context=<optimized out>, flags=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/qml/qqmlproperty.cpp:1555
#26 0x000074ae2904442a in QQmlBinding::slowWrite (this=this@entry=0x614ce6b2b270, core=..., valueTypeData=..., result=..., isUndefined=isUndefined@entry=false, flags=..., flags@entry=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/qml/qqmlbinding.cpp:540
#27 0x000074ae2903d08d in GenericBinding<0>::write (this=0x614ce6b2b270, result=..., isUndefined=false, flags=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/qml/qqmlbinding.cpp:268
#28 0x000074ae290452ea in QQmlBinding::doUpdate (this=0x614ce6b2b270, watcher=..., flags=..., scope=...) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/qml/qqmlbinding.cpp:700
#29 0x000074ae29043d04 in QQmlBinding::update (this=0x614ce6b2b270, flags=...) at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/qml/qqmlbinding.cpp:164
#30 0x000074ae28fb0e15 in QV4::QObjectWrapper::setProperty (engine=engine@entry=0x614ce6c73e20, object=object@entry=0x614ce6b85330, property=0x74adf42572e0, value=...) at /usr/include/qt6/QtCore/qflags.h:74
#31 0x000074ae28fb157e in QV4::QObjectWrapper::setQmlProperty (engine=engine@entry=0x614ce6c73e20, qmlContext=..., object=0x614ce6b85330, name=name@entry=0x74ae0a7bf750, flags=..., flags@entry=..., value=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/jsruntime/qv4qobjectwrapper.cpp:465
#32 0x000074ae28fb1700 in QV4::QObjectWrapper::virtualPut (m=0x74ae0a7bf740, id=..., value=..., receiver=0x74ae0a7bf740)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/jsruntime/qv4qobjectwrapper.cpp:837
#33 0x000074ae28f88183 in QV4::Lookup::setterFallback (l=0x614ce80ef210, engine=0x614ce6c73e20, object=<optimized out>, value=...)
    at /usr/src/debug/qt6-declarative/qtdeclarative-everywhere-src-6.6.2/src/qml/jsruntime/qv4lookup.cpp:591
#34 0x000074ae18a153e0 in ??? ()
#35 0x00007ffefa10f650 in ??? ()
#36 0x000000000000000c in ??? ()
#37 0x0000614ce81a1220 in ??? ()
#38 0x0000000000000000 in ??? ()


STEPS TO REPRODUCE
1. Open systemsettings
2. Click on the Energy Saving category/entry

OBSERVED RESULT
It crashes immediately

EXPECTED RESULT
It doesn't crash ;)

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
Comment 1 Ennea 2024-03-07 16:15:04 UTC
Created attachment 166610 [details]
powerdevilrc file that triggers the crash

I've worked around this issue by deleting my `~/.config/powerdevilrc`. Attached is the one that caused the crash.
Comment 2 Jakob Petsovits 2024-03-07 22:08:14 UTC
Thanks for the bug report. We just got to the bottom of Bug 482668 - could this one be similar, in that the Sleep action was once supported on your system but is now disabled in systemd? Or because you moved your OS drive to a different system?
Comment 3 Ennea 2024-03-07 22:11:34 UTC
(In reply to Jakob Petsovits from comment #2)
> Thanks for the bug report. We just got to the bottom of Bug 482668 - could
> this one be similar, in that the Sleep action was once supported on your
> system but is now disabled in systemd? Or because you moved your OS drive to
> a different system?

Definitely not the latter. Sleep was supported at one point, but it was also something I've disabled pretty much immediately (as one of the first things) after setting up this install of Arch. More than a year and a half ago.
Comment 4 Jakob Petsovits 2024-03-07 22:25:24 UTC
(In reply to Ennea from comment #3)
> (In reply to Jakob Petsovits from comment #2)
> > Thanks for the bug report. We just got to the bottom of Bug 482668 - could
> > this one be similar, in that the Sleep action was once supported on your
> > system but is now disabled in systemd? Or because you moved your OS drive to
> > a different system?
> 
> Definitely not the latter. Sleep was supported at one point, but it was also
> something I've disabled pretty much immediately (as one of the first things)
> after setting up this install of Arch. More than a year and a half ago.

Okay, then that looks like the same root cause. In Plasma 5.x, config files were generated immediately when the desktop was first started. The "Sleep" power actions were probably configured that way, and the lines were not dropped because they're different than your current default (which can't be "Sleep" because that's disabled). You've already identified a workaround and the fix will be the same, so I'll mark this as a duplicate.

Your "TurnOffDisplayWhenIdle=false" setting is harmless, you can put that back if desired.

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