Bug 224063 - Adding battery monitor to system tray => Plasma segfaults
Summary: Adding battery monitor to system tray => Plasma segfaults
Status: RESOLVED DUPLICATE of bug 210146
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-24 18:07 UTC by jm.ouwerkerk
Modified: 2010-01-25 00:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jm.ouwerkerk 2010-01-24 18:07:22 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Adding a battery monitor to the System Tray crashes Plasma once changes are confirmed with the OK button in the System Tray Settings dialog.

After the crash & restart of Plasma the newly added battery monitor does not appear in the tray; i.e. either the code handling the Ok button click does not save changes to disk (immediately) or the crash occurs before that point.

I am using the KDE 4.4 RC 2 packages from Kubuntu Lucid Lynx (which is 4.3.95).

The crash occurs as the result of a segfault (SIGSEV) but the crash handler is unable to collect useful debugging symbols and therefore refuses to let me post an automated report.

Anyways in case it is still useful here are the contents of backtrace:

Application: Plasma Workspace (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f2fd66da800 (LWP 1615))]

Thread 2 (Thread 0x7f2fb4780710 (LWP 1620)):
#0  0x00007f2fd49206cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f2fd4bac66b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f2fd335807c in ?? () from /usr/lib/libQtNetwork.so.4
#3  0x00007f2fd4bab6b5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f2fd491bb14 in start_thread () from /lib/libpthread.so.0
#5  0x00007f2fd36dc05d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2fd66da800 (LWP 1615)):
[KCrash Handler]
#5  0x00007f2fd4463b75 in ?? () from /usr/lib/libQtGui.so.4
#6  0x00007f2fd446603d in ?? () from /usr/lib/libQtGui.so.4
#7  0x00007f2fd4466682 in QGraphicsScene::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#8  0x00007f2fcc303165 in Plasma::Corona::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libplasma.so.3
#9  0x00007f2fc8ae6dd3 in ?? () from /usr/lib/libkdeinit4_plasma-desktop.so
#10 0x00007f2fd4cae789 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#11 0x00007f2fd4462690 in QGraphicsScene::event(QEvent*) () from /usr/lib/libQtGui.so.4
#12 0x00007f2fd3e43f2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#13 0x00007f2fd3e4a53d in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#14 0x00007f2fd51e3b66 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#15 0x00007f2fd4c9eabc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#16 0x00007f2fd4ca1237 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#17 0x00007f2fd4cc8513 in ?? () from /usr/lib/libQtCore.so.4
#18 0x00007f2fcfe9bd4e in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#19 0x00007f2fcfe9f718 in ?? () from /lib/libglib-2.0.so.0
#20 0x00007f2fcfe9f840 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#21 0x00007f2fd4cc8053 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#22 0x00007f2fd3ef23de in ?? () from /usr/lib/libQtGui.so.4
#23 0x00007f2fd4c9d3e2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0x00007f2fd4c9d7bc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#25 0x00007f2fd4ca14fb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#26 0x00007f2fc8aedec2 in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#27 0x0000000000406fb8 in _start ()
Comment 1 Dario Andres 2010-01-24 20:03:11 UTC
Please install the "kdelibs5-dbg" and "libqt4-dbg" packages and get a new backtrace (you can get more information at http://techbase.kde.org/User:DarioAndres/Basic_Guide_about_Crash_Reporting ) Thanks
Comment 2 jm.ouwerkerk 2010-01-24 23:08:09 UTC
Ok, colour me confused: ran an update and installed the dbg packages. Now I can no longer add any widgets to the System Tray itself anymore -- something eats them. No crash, they just do not appear at all (and they are not listed as checked in the System Tray Settings dialog on inspection either). On the other hand, adding widgets to a plain panel itself provokes (the exact same behaviour, just a different container):

Application: Plasma Workspace (kdeinit4), signal: Segmentation fault
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f30a0521800 (LWP 1645))]

Thread 2 (Thread 0x7f307e5c7710 (LWP 1651)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f309e9f366b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0xe51a38, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xe51a38, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f309d19f07c in QHostInfoAgent::run (this=0xe51a20) at kernel/qhostinfo.cpp:252
#4  0x00007f309e9f26b5 in QThreadPrivate::start (arg=0xe51a20) at thread/qthread_unix.cpp:244
#5  0x00007f309e762b14 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f309d52305d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f30a0521800 (LWP 1645)):
[KCrash Handler]
#5  QGraphicsScenePrivate::processDirtyItemsRecursive (this=0x814990, item=0x17f0530, dirtyAncestorContainsChildren=false, parentOpacity=0) at graphicsview/qgraphicsscene.cpp:4895
#6  0x00007f309e2ad03d in QGraphicsScenePrivate::_q_processDirtyItems (this=0x814990) at graphicsview/qgraphicsscene.cpp:466
#7  0x00007f309e2ad682 in QGraphicsScene::qt_metacall (this=0x8183b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x1d2baa0) at .moc/release-shared/moc_qgraphicsscene.cpp:130
#8  0x00007f309614a165 in Plasma::Corona::qt_metacall (this=0x814990, _c=25101616, _id=0, _a=0x0) at ./corona.moc:107
#9  0x00007f309292ddd3 in ?? () from /usr/lib/libkdeinit4_plasma-desktop.so
#10 0x00007f309eaf5789 in QObject::event (this=0x8183b0, e=0x1bdba00) at kernel/qobject.cpp:1260
#11 0x00007f309e2a9690 in QGraphicsScene::event (this=0x8183b0, event=0x1bdba00) at graphicsview/qgraphicsscene.cpp:3450
#12 0x00007f309dc8af2c in QApplicationPrivate::notify_helper (this=0x730bc0, receiver=0x8183b0, e=0x1bdba00) at kernel/qapplication.cpp:4242
#13 0x00007f309dc9153d in QApplication::notify (this=0x71a4c0, receiver=0x8183b0, e=0x1bdba00) at kernel/qapplication.cpp:4125
#14 0x00007f309f02ab66 in KApplication::notify (this=0x71a4c0, receiver=0x8183b0, event=0x1bdba00) at ../../kdeui/kernel/kapplication.cpp:302
#15 0x00007f309eae5abc in QCoreApplication::notifyInternal (this=0x71a4c0, receiver=0x8183b0, event=0x1bdba00) at kernel/qcoreapplication.cpp:704
#16 0x00007f309eae8237 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x6aeda0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#17 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x6aeda0) at kernel/qcoreapplication.cpp:1345
#18 0x00007f309eb0f513 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#19 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#20 0x00007f3099ce2d4e in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#21 0x00007f3099ce6718 in ?? () from /lib/libglib-2.0.so.0
#22 0x00007f3099ce6840 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#23 0x00007f309eb0f053 in QEventDispatcherGlib::processEvents (this=0x6b03f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#24 0x00007f309dd393de in QGuiEventDispatcherGlib::processEvents (this=0x814990, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#25 0x00007f309eae43e2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#26 0x00007f309eae47bc in QEventLoop::exec (this=0x7fff3feb1b50, flags=) at kernel/qeventloop.cpp:201
#27 0x00007f309eae84fb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#28 0x00007f3092934ec2 in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#29 0x0000000000406fb8 in launch (argc=1, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x40a4c1 "0") at ../../kinit/kinit.cpp:706
#30 0x0000000000407c70 in handle_launcher_request (sock=7, who=<value optimized out>) at ../../kinit/kinit.cpp:1198
#31 0x00000000004081ff in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1391
#32 0x0000000000408e0a in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at ../../kinit/kinit.cpp:1830
Comment 3 jm.ouwerkerk 2010-01-24 23:33:53 UTC
Scratch that... here's a backtrace of adding a battery monitor to System Tray via System Tray Settings:

Application: Plasma Workspace (kdeinit4), signal: Segmentation fault
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f67cfcc1800 (LWP 3067))]

Thread 2 (Thread 0x7f67ae49d710 (LWP 3071)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f67ce19366b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0xe18778, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xe18778, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f67cc93f07c in QHostInfoAgent::run (this=0xe18760) at kernel/qhostinfo.cpp:252
#4  0x00007f67ce1926b5 in QThreadPrivate::start (arg=0xe18760) at thread/qthread_unix.cpp:244
#5  0x00007f67cdf02b14 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f67cccc305d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f67cfcc1800 (LWP 3067)):
[KCrash Handler]
#5  QGraphicsScenePrivate::processDirtyItemsRecursive (this=0x8b6390, item=0x88fc10, dirtyAncestorContainsChildren=false, parentOpacity=0) at graphicsview/qgraphicsscene.cpp:4895
#6  0x00007f67cda4d03d in QGraphicsScenePrivate::_q_processDirtyItems (this=0x8b6390) at graphicsview/qgraphicsscene.cpp:466
#7  0x00007f67cda4d682 in QGraphicsScene::qt_metacall (this=0x92a5f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x2762b20) at .moc/release-shared/moc_qgraphicsscene.cpp:130
#8  0x00007f67c58ea165 in Plasma::Corona::qt_metacall (this=0x8b6390, _c=8977424, _id=0, _a=0x0) at ./corona.moc:107
#9  0x00007f67c20cddd3 in ?? () from /usr/lib/libkdeinit4_plasma-desktop.so
#10 0x00007f67ce295789 in QObject::event (this=0x92a5f0, e=0x2732120) at kernel/qobject.cpp:1260
#11 0x00007f67cda49690 in QGraphicsScene::event (this=0x92a5f0, event=0x2732120) at graphicsview/qgraphicsscene.cpp:3450
#12 0x00007f67cd42af2c in QApplicationPrivate::notify_helper (this=0x848760, receiver=0x92a5f0, e=0x2732120) at kernel/qapplication.cpp:4242
#13 0x00007f67cd43153d in QApplication::notify (this=0x832530, receiver=0x92a5f0, e=0x2732120) at kernel/qapplication.cpp:4125
#14 0x00007f67ce7cab66 in KApplication::notify (this=0x832530, receiver=0x92a5f0, event=0x2732120) at ../../kdeui/kernel/kapplication.cpp:302
#15 0x00007f67ce285abc in QCoreApplication::notifyInternal (this=0x832530, receiver=0x92a5f0, event=0x2732120) at kernel/qcoreapplication.cpp:704
#16 0x00007f67ce288237 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x7c6da0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#17 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x7c6da0) at kernel/qcoreapplication.cpp:1345
#18 0x00007f67ce2af513 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#19 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#20 0x00007f67c9482d4e in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#21 0x00007f67c9486718 in ?? () from /lib/libglib-2.0.so.0
#22 0x00007f67c9486840 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#23 0x00007f67ce2af053 in QEventDispatcherGlib::processEvents (this=0x7c83f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#24 0x00007f67cd4d93de in QGuiEventDispatcherGlib::processEvents (this=0x8b6390, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#25 0x00007f67ce2843e2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#26 0x00007f67ce2847bc in QEventLoop::exec (this=0x7fffd3942cc0, flags=) at kernel/qeventloop.cpp:201
#27 0x00007f67ce2884fb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#28 0x00007f67c20d4ec2 in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#29 0x0000000000406fb8 in launch (argc=1, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x40a4c1 "0") at ../../kinit/kinit.cpp:706
#30 0x0000000000407c70 in handle_launcher_request (sock=7, who=<value optimized out>) at ../../kinit/kinit.cpp:1198
#31 0x00000000004081ff in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1391
#32 0x0000000000408e0a in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at ../../kinit/kinit.cpp:1830
Comment 4 Dario Andres 2010-01-25 00:35:51 UTC
The crash is a Qt 4.6.0 bug, fixed in the recently released 4.6.1 version. (bug 210146)

You should report the other issue (widgets not being added on System Tray) as a different issue.

Regards

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