Bug 163607 - Plasma crashes at logout or shutdown
Summary: Plasma crashes at logout or shutdown
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 164861 165021 165675 165830 166101 166159 166333 166528 167253 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-09 14:11 UTC by Johannes von Scheidt
Modified: 2008-09-24 08:53 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace (4.80 KB, text/plain)
2008-07-05 06:31 UTC, Sebastian Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes von Scheidt 2008-06-09 14:11:04 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 
OS:                Linux

If I close Plasma, I get 2 crash messages with this output:

Application: Plasma-Arbeitsfläche (plasma), signal SIGSEGV
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb55de720 (LWP 5973)]
[New Thread 0xb24fab90 (LWP 17173)]
[New Thread 0xb2cfbb90 (LWP 5983)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0x000408ff in ?? ()
#7  0xb6c6ec0c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#8  0xb6c737a9 in QApplication::notify () from /usr/lib/libQtGui.so.4
#9  0xb7b0c603 in KApplication::notify () from /usr/lib/kde4/lib/libkdeui.so.5
#10 0xb768e6a9 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#11 0xb7220314 in QGraphicsWidget::sceneEvent () from /usr/lib/libQtGui.so.4
#12 0xb71f73cc in ?? () from /usr/lib/libQtGui.so.4
#13 0xb71f7dce in QGraphicsScene::setFocusItem () from /usr/lib/libQtGui.so.4
#14 0xb71d973e in QGraphicsItem::clearFocus () from /usr/lib/libQtGui.so.4
#15 0xb721dc3c in QGraphicsWidget::~QGraphicsWidget ()
   from /usr/lib/libQtGui.so.4
#16 0xb7ceea5e in Plasma::Applet::~Applet ()
   from /usr/lib/kde4/lib/libplasma.so.2
#17 0xb7d18c98 in Plasma::Containment::~Containment ()
   from /usr/lib/kde4/lib/libplasma.so.2
#18 0xb2d81eab in ?? ()
   from /usr/lib/kde4/lib/kde4/plasma_containment_panel.so
#19 0xb7d1cd66 in ?? () from /usr/lib/kde4/lib/libplasma.so.2
#20 0xb7d1ce85 in ?? () from /usr/lib/kde4/lib/libplasma.so.2
#21 0xb7d1d868 in ?? () from /usr/lib/kde4/lib/libplasma.so.2
#22 0xb7d1ca33 in Plasma::Corona::~Corona ()
   from /usr/lib/kde4/lib/libplasma.so.2
#23 0xb7f6170d in ?? () from /usr/lib/kde4/lib/libkdeinit4_plasma.so
#24 0xb7f6571a in ?? () from /usr/lib/kde4/lib/libkdeinit4_plasma.so
#25 0xb7f65806 in ?? () from /usr/lib/kde4/lib/libkdeinit4_plasma.so
#26 0xb76a34f9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#27 0xb76a3bc2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#28 0xb76e0817 in QCoreApplication::aboutToQuit ()
   from /usr/lib/libQtCore.so.4
#29 0xb768fd5e in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#30 0xb6c6e567 in QApplication::exec () from /usr/lib/libQtGui.so.4
#31 0xb7f64456 in kdemain () from /usr/lib/kde4/lib/libkdeinit4_plasma.so
#32 0x08048582 in _start ()
#0  0xb7f7c410 in __kernel_vsyscall ()

Application: Plasma-Arbeitsfläche (<unknown>), signal SIGSEGV
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb5555720 (LWP 28524)]
[New Thread 0xb3affb90 (LWP 28525)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0x0b000020 in ?? ()
#7  0xb2f98321 in ?? ()
   from /usr/lib/kde4/lib/kde4/plasma_engine_soliddevice.so
#8  0xb7c9cdc6 in ?? () from /usr/lib/kde4/lib/libplasma.so.2
#9  0xb7c9c164 in Plasma::DataEngineManager::~DataEngineManager ()
   from /usr/lib/kde4/lib/libplasma.so.2
#10 0xb7c9d3cd in ?? () from /usr/lib/kde4/lib/libplasma.so.2
#11 0xb7c9c1dd in ?? () from /usr/lib/kde4/lib/libplasma.so.2
#12 0xb7c5b92b in ?? () from /usr/lib/kde4/lib/libplasma.so.2
#13 0xb7d96084 in exit () from /lib/tls/i686/cmov/libc.so.6
#14 0xb5b8d501 in _IceDefaultIOErrorHandler () from /usr/lib/libICE.so.6
#15 0xb5b953d1 in _IceRead () from /usr/lib/libICE.so.6
#16 0xb5b9972f in IceProcessMessages () from /usr/lib/libICE.so.6
#17 0xb6c412e8 in ?? () from /usr/lib/libQtGui.so.4
#18 0xb6c4134f in ?? () from /usr/lib/libQtGui.so.4
#19 0xb761a4f9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#20 0xb761abc2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#21 0xb7657ca3 in QSocketNotifier::activated () from /usr/lib/libQtCore.so.4
#22 0xb7620b8f in QSocketNotifier::event () from /usr/lib/libQtCore.so.4
#23 0xb6be5c0c in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#24 0xb6bea7a9 in QApplication::notify () from /usr/lib/libQtGui.so.4
#25 0xb7a83603 in KApplication::notify () from /usr/lib/kde4/lib/libkdeui.so.5
#26 0xb76056a9 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#27 0xb7630e23 in ?? () from /usr/lib/libQtCore.so.4
#28 0xb59c1bf8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0xb59c4e5e in ?? () from /usr/lib/libglib-2.0.so.0
#30 0xb59c53ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#31 0xb7630f98 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#32 0xb6c791b5 in ?? () from /usr/lib/libQtGui.so.4
#33 0xb760492d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#34 0xb7604abd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#35 0xb7606d3d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#36 0xb6be5567 in QApplication::exec () from /usr/lib/libQtGui.so.4
#37 0xb7edb456 in kdemain () from /usr/lib/kde4/lib/libkdeinit4_plasma.so
#38 0x08048582 in _start ()
#0  0xb7ef3410 in __kernel_vsyscall ()
Comment 1 Anne-Marie Mahfouf 2008-06-18 16:54:09 UTC
Did you update your KDE version and do you still have it? If it's still happening, can you please install the debug packages for your distribution and get the backtrace again so we can use it.
Thanks in advance!
Comment 2 Anne-Marie Mahfouf 2008-06-29 14:24:05 UTC
Johannes, any news on that report? Is the crash still present and can you get a better backtrace please?
http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 3 Christophe Marin 2008-07-04 18:13:33 UTC
*** Bug 165675 has been marked as a duplicate of this bug. ***
Comment 4 Christophe Marin 2008-07-04 18:16:33 UTC
Annma : for the complete backtrace : bug 164861 #5 (Sebsauer also posted a testcase)
Comment 5 Sebastian Sauer 2008-07-05 04:31:47 UTC
re comment #4; seems I was only able to reproduce that with Mandriva Cooker. At my other systems - Arch, Kubuntu and openSuse - I failed there with the steps I described at http://bugs.kde.org/show_bug.cgi?id=164861#c6 :-/
Since the other report says that it did happen with debian, it also doesn't seem to be distributors fault but just hard to trigger/reproduce though at Cooker it's 100% reproducable for me with those steps described.
Comment 6 Sebastian Sauer 2008-07-05 06:31:11 UTC
Created attachment 25848 [details]
backtrace

and now it did happen also with a checkout from some hours ago on !=Cooker.

The reason seems to be a QEvent::FocusOut that got send on destruction.
Comment 7 Sebastian Sauer 2008-07-05 06:37:22 UTC
and the actual crash happens on;

bool QGraphicsWidget::event(QEvent *event)
{
    Q_D(QGraphicsWidget);
    // Forward the event to the layout first.
    if (d->layout)
        d->layout->widgetEvent(event); //<==CRASH
...
}
Comment 8 Aaron J. Seigo 2008-07-05 07:04:30 UTC
this is a Qt problem. on deleting a layout it doesn't reset the layout pointer in the parent item. this really must be taken care of within QGraphicsWidget and/or QGraphicsLayout because there are situations, such as on destruction, that there is no rational opportunity to reset the layout but, due to being QObjects, may be automatically deleted. 

it's either fix it in Qt, or every QGraphicsWidget subclass will have tto do setLayout(0) in its dtor.

Andreas: am i reading your code right here?
Comment 9 Sebastian Sauer 2008-07-05 23:57:12 UTC
*** Bug 164861 has been marked as a duplicate of this bug. ***
Comment 10 Thomas Georgiou 2008-07-06 05:39:22 UTC
*** Bug 165830 has been marked as a duplicate of this bug. ***
Comment 11 Christophe Marin 2008-07-09 11:46:03 UTC
*** Bug 166101 has been marked as a duplicate of this bug. ***
Comment 12 Christophe Marin 2008-07-09 11:47:56 UTC
*** Bug 165021 has been marked as a duplicate of this bug. ***
Comment 13 Frank Reininghaus 2008-07-11 21:18:36 UTC
*** Bug 166159 has been marked as a duplicate of this bug. ***
Comment 14 Frank Reininghaus 2008-07-11 23:54:51 UTC
*** Bug 166333 has been marked as a duplicate of this bug. ***
Comment 15 Christophe Marin 2008-07-14 15:18:38 UTC
*** Bug 166528 has been marked as a duplicate of this bug. ***
Comment 16 Andreas Aardal Hanssen 2008-07-21 12:04:19 UTC
I left for vacation on the 5th ;-). Sorry about that. Yes, this is a serious 
bug in QGraphicsLayout that must be fixed in Qt. The only workaround I can 
see is to completely recreate the layout without reusing the parent at all.

Was this also posted to our bug tracker btw?

Andreas

On Sat July 5 2008 07:04:31 Aaron J.Seigo wrote:
[bugs.kde.org quoted mail]
Comment 17 Christophe Marin 2008-07-23 00:08:13 UTC
*** Bug 167253 has been marked as a duplicate of this bug. ***
Comment 18 Ronny Standtke 2008-07-30 23:35:18 UTC
I just had the same crash on Kubuntu-8.04.1 with final KDE-4.1 release when logging out from the session.
Comment 19 Aardwolf 2008-07-31 10:51:31 UTC
If plasma crashes, all settings of my panel are reset to an empty state next time I login. This empty state is also problematic because plasmoids added to it are either tiny (2 pixels in size) or huge (a clock 400 pixels high :s) and make plasma crash a lot while adding plasmoids or icons to start an application.

That plasma crashes is one thing, but that you need to create all your panel settings again is a much bigger problem! Settings shouldn't be reset by the crash.

Can it be fixed as a separate fix that your panel settings (including the position of all icons to launch applications and all enabled plasmoids) will not be reset if plasma crashes?

That will solve a huge side effect of the crash!
Comment 20 Aaron J. Seigo 2008-09-23 19:27:27 UTC
upstream bug; upstream is aware of it.

@Aardwolf: settings in plasma are flushed to disk 30s after the last change; we may end up shortening that down to something like 10s, but the purpose is to prevent random synchronizations that end up eating more battery life as well as sync'ing in between sets of changes leaving the config in a potentially uncoordinated state.
Comment 21 Alexander Vodomerov 2008-09-24 08:53:51 UTC
Can someone put this into upstream bugzilla and post a link here? I want to be sure that upstream is really aware of it and the bug won't be lost forever.