Bug 510033

Summary: plasmashell crashes when restarting powerdevil
Product: [Plasma] plasmashell Reporter: Nicolas Fella <nicolas.fella>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: crash CC: akselmo, kde, nate
Priority: NOR Keywords: drkonqi
Version First Reported In: 6.5.80   
Target Milestone: 1.0   
Platform: Compiled Sources   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=509982
Latest Commit: Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/263098/events/340c384246644bb4994d112ff598f5e5/
Attachments: New crash information added by DrKonqi

Description Nicolas Fella 2025-09-28 20:43:22 UTC
Application: plasmashell (6.5.80)
 (Compiled from sources)
ApplicationNotResponding [ANR]: false
Qt Version: 6.10.0
Frameworks Version: 6.19.0
Operating System: Linux 6.16.8-200.fc42.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 42 (KDE Plasma Desktop Edition)"
DrKonqi: 6.5.80 [CoredumpBackend]

-- Information about the crash:
run "systemctl --user restart plasma-powerdevil.service"

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  0x00007f1fef3b4d0c in QMetaProperty::metaType (this=this@entry=0x7fff56cf6ea0) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qmetaobject.cpp:3851
#6  0x00007f1ff112780f in QQmlPrivate::loadFallbackAsVariant (lookup=lookup@entry=0x2e94cf30, object=0x319018b0, target=target@entry=0x7fff56cf7038, aotContext=aotContext@entry=0x7fff56cf7120) at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqml.cpp:1458
#7  0x00007f1ff112e2f6 in QQmlPrivate::AOTCompiledContext::getObjectLookup (this=this@entry=0x7fff56cf7120, index=index@entry=340, object=<optimized out>, target=target@entry=0x7fff56cf7038) at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqml.cpp:2801
#8  0x00007f1f4bfac043 in QmlCacheGeneratedCode::_qt_qml_plasma_applet_org_kde_plasma_battery_main_qml::aotBuiltFunctions::{lambda(QQmlPrivate::AOTCompiledContext const*, void**)#29}::operator()(QQmlPrivate::AOTCompiledContext const*, void**) const (__closure=<optimized out>, aotContext=0x7fff56cf7120, argv=0x7fff56cf74b8) at /home/nico/kde/build/powerdevil/applets/batterymonitor/.rcc/qmlcache/org.kde.plasma.battery_main_qml.cpp:6762
#9  0x00007f1ff10f803e in operator() (argc=<optimized out>, __closure=0x7fff56cf71f0, argv=0x7fff56cf74b8) at /home/nico/workspace/qt6/qtdeclarative/src/qml/jsruntime/qv4vme_moth.cpp:452
#10 QV4::coerceAndCall<(anonymous namespace)::AOTCompiledMetaMethod, QV4::Moth::VME::exec(QV4::MetaTypesStackFrame*, QV4::ExecutionEngine*)::<lambda(void**, int)> >(QV4::ExecutionEngine *, const (anonymous namespace)::AOTCompiledMetaMethod *, void **, const QMetaType *, int, struct {...}) (engine=engine@entry=0x2cf7cd90, typedFunction=typedFunction@entry=0x7fff56cf7228, argv=<optimized out>, types=<optimized out>, argc=<optimized out>, call=...) at /home/nico/workspace/qt6/qtdeclarative/src/qml/jsruntime/qv4jscall_p.h:560
#11 0x00007f1ff1100708 in QV4::Moth::VME::exec (frame=frame@entry=0x7fff56cf72c0, engine=engine@entry=0x2cf7cd90) at /home/nico/workspace/qt6/qtdeclarative/src/qml/jsruntime/qv4stackframe_p.h:156
#12 0x00007f1ff1024659 in QV4::Function::call (this=0x2e94f870, thisObject=0x2eeadb70, a=a@entry=0x7fff56cf74b8, types=types@entry=0x7fff56cf74c0, argc=argc@entry=0, context=<optimized out>) at /home/nico/workspace/qt6/qtdeclarative/src/qml/jsruntime/qv4function.cpp:37
#13 0x00007f1ff11b20ca in QQmlJavaScriptExpression::evaluate (this=this@entry=0x2d1429b0, a=a@entry=0x7fff56cf74b8, types=types@entry=0x7fff56cf74c0, argc=argc@entry=0) at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:270
#14 0x00007f1ff113abbe in QQmlBinding::evaluate (this=0x2d1429b0, result=0x7fff56cf7480, type=...) at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlbinding_p.h:86
#15 QQmlBinding::doUpdate (this=0x2d1429b0, watcher=..., flags=..., scope=<optimized out>) at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlbinding.cpp:702
#16 0x00007f1ff113e6c7 in QQmlBinding::update (this=0x2d1429b0, flags=...) at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlbinding.cpp:165
#17 0x00007f1ff11e494d in QQmlObjectCreator::finalize (this=0x32ffe1f0, interrupt=...) at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1552
#18 0x00007f1ff115c9fa in QQmlComponentPrivate::complete (enginePriv=0x2cd92d30, state=state@entry=0x3008d150) at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/ftw/qbipointer_p.h:133
#19 0x00007f1ff1162f79 in QQmlComponentPrivate::completeCreate (this=0x3008d0d0) at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:1344
#20 0x00007f1ff334457b in PlasmaQuick::SharedQmlEngine::completeInitialization (this=0x33094ef0, initialProperties=<optimized out>) at /home/nico/kde/src/libplasma/src/plasmaquick/sharedqmlengine.cpp:270


Reported using DrKonqi
Comment 1 Nicolas Fella 2025-09-28 20:43:24 UTC
Created attachment 185351 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Akseli Lahtinen 2025-09-29 08:36:49 UTC
Can't repro but I'm on Qt 6.9.2. 

Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 3 David Edmundson 2025-09-29 12:49:48 UTC
QML at frame 14 is:
battery/main.qml:311 updating the checked state of a PlasmaCore.Action in the contextualActions

Nico also shared:
>it doesn't seem to happen with QV4_FORCE_INTERPRETER=1
Comment 4 TraceyC 2025-09-29 16:18:39 UTC
I'm not able to reproduce the crash on git-master
Qt V 6.9.2