Bug 351275

Summary: Plasma crash after switching to battery then AC
Product: [I don't know] kde Reporter: Ian Newton <i.newton>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: cfeck
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ian Newton 2015-08-14 07:12:54 UTC
Application: plasma-desktop (4.11.21)
KDE Platform Version: 4.14.10
Qt Version: 4.8.7
Operating System: Linux 4.0.0-sabayon x86_64
Distribution: "Sabayon Linux amd64 15.09"

-- Information about the crash:
- What I was doing when the application crashed:

Gentoo/Sabayon on a Lenovo Ideapad laptop with i7 processor the problem occurs from this sequence:
1) Power is switched to battery
2) Laptop goes through sleep/wake cycle
3) After waking and restoring AC power
4) After a few minutes Plasma crashes leaving applications operatonal

-- Backtrace:
Application: Plasma Desktop Shell (plasma-desktop), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f8bc3627750 in QObject::property(char const*) const () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f8b951434f4 in energyRate (this=<optimized out>) at /home/ixnewton/Downloads/WattRate/build/upowerdevices.h:61
#7  WattRate::updateWattUsage (this=0x7f8bc6f59e50) at /home/ixnewton/Downloads/WattRate/wattrate.cpp:125
#8  0x00007f8bc362953f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f8bc362df03 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007f8bc262587c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007f8bc262cc88 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00007f8bc448036d in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#13 0x00007f8bc361058d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007f8bc364aa0a in ?? () from /usr/lib64/qt4/libQtCore.so.4
#15 0x00007f8bc3646b23 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#16 0x00007f8bbeefd43c in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#17 0x00007f8bbeefd748 in ?? () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f8bbeefd851 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#19 0x00007f8bc36477d4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#20 0x00007f8bc26e87bb in ?? () from /usr/lib64/qt4/libQtGui.so.4
#21 0x00007f8bc360ea75 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007f8bc360eef5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#23 0x00007f8bc361581a in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00007f8bacc4e7fa in kdemain () from /usr/lib64/libkdeinit4_plasma-desktop.so
#25 0x00007f8bc4b34e89 in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2015-08-22 14:55:42 UTC
Crash is in third-party "WattRate" plasmoid. Please report to its authors.
Comment 2 Ian Newton 2015-08-30 22:05:39 UTC
Though this may be the initial analysis, removing WattRate still produced the same result. Booting with an older kernel 3.19.8 was an interim fix as it was more stable for suspend/resume. 

However the recent update to:- Qt: 4.8.7, KDE Development Platform: 4.14.11, Plasma Desktop Shell: 4.11.22, with Kernel: 4.0.0 resolves the issue which is probably a number of dependencies which WattRate and PowerDevil depend on.

I will check in future for obvious debug info to correctly report issues.

Thanks