Bug 241876 - kwin crash in aurorae decoration when closing window
Summary: kwin crash in aurorae decoration when closing window
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Martin Flöser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 03:39 UTC by Justin
Modified: 2010-07-02 21:58 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 Justin 2010-06-16 03:39:02 UTC
Application: kwin (4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2)))
KDE Platform Version: 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2)) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.33-gentoo-r1 x86_64
Distribution (Platform): Gentoo Packages

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

I have a dual monitor setup and had kmix open on one screen and a video playing fullscreen on the other, when I closed kmix kwin crashed.

-- Backtrace:
Application: KWin (kwin), signal: Aborted
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2400.1-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
The current source language is "auto; currently c".
[KCrash Handler]
#6  0x00007f19e8204315 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f19e8205811 in *__GI_abort () at abort.c:88
#8  0x00007f19e8240158 in __libc_message (do_abort=2, fmt=0x7f19e82f2c38 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:170
#9  0x00007f19e8245808 in malloc_printerr (action=2, str=0x7f19e82eff00 "free(): invalid pointer", ptr=<value optimized out>) at malloc.c:6197
#10 0x00007f19ec43f206 in QList<QGraphicsItemPrivate::ExtraStruct>::node_destruct (this=<value optimized out>, data=0x14021f0) at ../../include/QtCore/../../src/corelib/tools/qlist.h:402
#11 QList<QGraphicsItemPrivate::ExtraStruct>::free (this=<value optimized out>, data=0x14021f0) at ../../include/QtCore/../../src/corelib/tools/qlist.h:646
#12 0x00007f19ec48eaa4 in ~QGraphicsItemPrivate (this=0x184f1c0, __in_chrg=<value optimized out>) at graphicsview/qgraphicsitem_p.h:189
#13 ~QGraphicsWidgetPrivate (this=0x184f1c0, __in_chrg=<value optimized out>) at graphicsview/qgraphicswidget_p.cpp:104
#14 0x00007f19ec42971c in QScopedPointerDeleter<QGraphicsItemPrivate>::cleanup (this=0x1ac8050, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#15 ~QScopedPointer (this=0x1ac8050, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#16 ~QGraphicsItem (this=0x1ac8050, __in_chrg=<value optimized out>) at graphicsview/qgraphicsitem.cpp:1396
#17 0x00007f19ec48aa61 in ~QGraphicsObject (this=0x1ac8040, __in_chrg=<value optimized out>) at ../../include/QtGui/../../src/gui/graphicsview/qgraphicsitem.h:537
#18 ~QGraphicsWidget (this=0x1ac8040, __in_chrg=<value optimized out>) at graphicsview/qgraphicswidget.cpp:277
#19 0x00007f19d0e3b68c in ~AuroraeButton (this=0x3d07, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85/kwin/clients/aurorae/src/lib/auroraebutton.cpp:108
#20 0x00007f19ec429639 in ~QGraphicsItem (this=0xf89690, __in_chrg=<value optimized out>) at graphicsview/qgraphicsitem.cpp:1372
#21 0x00007f19ec48aa61 in ~QGraphicsObject (this=0xf89680, __in_chrg=<value optimized out>) at ../../include/QtGui/../../src/gui/graphicsview/qgraphicsitem.h:537
#22 ~QGraphicsWidget (this=0xf89680, __in_chrg=<value optimized out>) at graphicsview/qgraphicswidget.cpp:277
#23 0x00007f19d0e38769 in ~AuroraeButtonGroup (this=0x3d07, __in_chrg=<value optimized out>)
    at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85_build/kwin/clients/aurorae/src/../../../../../kwin-4.4.85/kwin/clients/aurorae/src/lib/auroraebutton.h:40
#24 0x00007f19ec44fdb1 in QGraphicsScene::clear (this=<value optimized out>) at graphicsview/qgraphicsscene.cpp:2397
#25 0x00007f19ec44ffc9 in ~QGraphicsScene (this=0x10a28a0, __in_chrg=<value optimized out>) at graphicsview/qgraphicsscene.cpp:1604
#26 0x00007f19d0e3fab1 in ~AuroraeScene (this=0x10a28a0, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85/kwin/clients/aurorae/src/lib/auroraescene.cpp:68
#27 0x00007f19eb233468 in QObjectPrivate::deleteChildren (this=0xbfbd00) at kernel/qobject.cpp:1986
#28 0x00007f19eb23aec0 in ~QObject (this=0x148b0d0, __in_chrg=<value optimized out>) at kernel/qobject.cpp:975
#29 0x00007f19d0e3b293 in ~AuroraeClient (this=0x3d07, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85/kwin/clients/aurorae/src/aurorae.h:61
#30 0x00007f19ee69cf84 in KWin::Client::destroyDecoration (this=0x180de50) at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85/kwin/client.cpp:377
#31 0x00007f19ee69d7a7 in KWin::Client::releaseWindow (this=0x180de50, on_shutdown=false) at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85/kwin/client.cpp:246
#32 0x00007f19ee6ceae3 in KWin::Client::windowEvent (this=0x180de50, e=0x7fff16e8e500) at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85/kwin/events.cpp:655
#33 0x00007f19ee6ceea8 in KWin::Workspace::workspaceEvent (this=0x79f3a0, e=0x7fff16e8e500) at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85/kwin/events.cpp:307
#34 0x00007f19ee6ab540 in KWin::Application::x11EventFilter (this=0x7fff16e8e8f0, e=0x7fff16e8e500) at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85/kwin/main.cpp:362
#35 0x00007f19ebeadf97 in qt_x11EventFilter (ev=0x7fff16e8e500) at kernel/qapplication_x11.cpp:399
#36 0x00007f19ebebeca7 in QApplication::x11ProcessEvent (this=0x7fff16e8e8f0, event=0x7fff16e8e500) at kernel/qapplication_x11.cpp:3231
#37 0x00007f19ebee8672 in x11EventSourceDispatch (s=0x6257f0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#38 0x00007f19e7b05fb4 in g_main_dispatch (context=0x624470) at gmain.c:1960
#39 IA__g_main_context_dispatch (context=0x624470) at gmain.c:2513
#40 0x00007f19e7b099f8 in g_main_context_iterate (context=0x624470, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#41 0x00007f19e7b09c7d in IA__g_main_context_iteration (context=0x624470, may_block=1) at gmain.c:2654
#42 0x00007f19eb24e37c in QEventDispatcherGlib::processEvents (this=0x621980, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#43 0x00007f19ebee8208 in QGuiEventDispatcherGlib::processEvents (this=0x3d07, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007f19eb223292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007f19eb223654 in QEventLoop::exec (this=0x7fff16e8e830, flags=...) at kernel/qeventloop.cpp:201
#46 0x00007f19eb225ae6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#47 0x00007f19ee6acd9e in kdemain (argc=3, argv=0x7fff16e8ede8) at /var/tmp/portage/kde-base/kwin-4.4.85/work/kwin-4.4.85/kwin/main.cpp:523
#48 0x00007f19e81f0a26 in __libc_start_main (main=0x400a60 <main>, argc=3, ubp_av=0x7fff16e8ede8, init=0x400aa0 <__libc_csu_init>, fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fff16e8edd8) at libc-start.c:220
#49 0x0000000000400969 in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2010-06-19 00:23:56 UTC
also see bug #242116
Comment 2 Martin Flöser 2010-06-19 08:39:13 UTC
as I never experienced a crash during development: which theme are you using?
Comment 3 Martin Flöser 2010-06-19 17:15:07 UTC
SVN commit 1139942 by graesslin:

Defer deletion of the AuroraeScene and View to the next event loop. It is possible that the scene get's deleted before processing mouse events is finished which causes crashes.
BUG: 242165
FIXED-IN: 4.5.0
CCBUG: 241876
CCBUG: 242116

 M  +8 -1      aurorae.cpp  
 M  +1 -0      aurorae.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1139942
Comment 4 Martin Flöser 2010-07-02 07:47:05 UTC
As RC1 is now available: is it still crashing or did my commit fix the problem?
Comment 5 Justin 2010-07-02 08:11:58 UTC
(In reply to comment #4)
> As RC1 is now available: is it still crashing or did my commit fix the problem?

I haven't been able to reproduce on RC1, so I believe it's fixed.  Thank you.
Comment 6 Martin Flöser 2010-07-02 21:58:03 UTC
setting to fixed. Please reopen in case you experience the crash again