Bug 318777 - karbon crashes on closing
Summary: karbon crashes on closing
Status: RESOLVED FIXED
Alias: None
Product: karbon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Jan Hambrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-23 18:25 UTC by Halla Rempt
Modified: 2013-04-25 08:01 UTC (History)
0 users

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 Halla Rempt 2013-04-23 18:25:15 UTC
Application: karbon (2.7 Pre-Alpha)
KDE Platform Version: 4.10.2 "release 556"
Qt Version: 4.8.4
Operating System: Linux 3.7.10-1.1-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

-- Information about the crash:
Load an svg file, close karbon -- poof!. This is the same issue as 
318775 in Krita.

The crash can be reproduced every time.

-- Backtrace:
Application: Karbon (karbon), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f1cfe406780 (LWP 16397))]

Thread 2 (Thread 0x7f1cd7cfc700 (LWP 16402)):
#0  0x00007f1cf8ec5d11 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1cf9158587 in wait (time=30000, this=0x3b60a90) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x3b5bbc8, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f1cf914bd8f in QThreadPoolThread::run (this=0x3b5bc80) at concurrent/qthreadpool.cpp:141
#4  0x00007f1cf91580cc in QThreadPrivate::start (arg=0x3b5bc80) at thread/qthread_unix.cpp:338
#5  0x00007f1cf8ec1e0f in start_thread () from /lib64/libpthread.so.0
#6  0x00007f1cf724d7dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f1cfe406780 (LWP 16397)):
[KCrash Handler]
#6  0x0000000000000021 in ?? ()
#7  0x00007f1cfdd6435e in qDeleteAll<QList<KoShape*>::const_iterator> (end=..., begin=...) at /usr/include/QtCore/qalgorithms.h:322
#8  qDeleteAll<QList<KoShape*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#9  ~Private (this=0xb75120, __in_chrg=<optimized out>) at /home/boud/kde/src/calligra/karbon/ui/KarbonDocument.cpp:113
#10 KarbonDocument::~KarbonDocument (this=0xb7c460, __in_chrg=<optimized out>) at /home/boud/kde/src/calligra/karbon/ui/KarbonDocument.cpp:175
#11 0x00007f1cfdd64619 in KarbonDocument::~KarbonDocument (this=0xb7c460, __in_chrg=<optimized out>) at /home/boud/kde/src/calligra/karbon/ui/KarbonDocument.cpp:176
#12 0x00007f1cfd84aa40 in KoMainWindow::setRootDocument (this=this@entry=0xa9f9e0, doc=doc@entry=0x0, rootPart=rootPart@entry=0x0) at /home/boud/kde/src/calligra/libs/main/KoMainWindow.cpp:537
#13 0x00007f1cfd84b8ac in KoMainWindow::closeEvent (this=0xa9f9e0, e=0x7fffa79bf570) at /home/boud/kde/src/calligra/libs/main/KoMainWindow.cpp:1136
#14 0x00007f1cf81b4360 in QWidget::event (this=0xa9f9e0, event=0x7fffa79bf570) at kernel/qwidget.cpp:8544
#15 0x00007f1cf85784fb in QMainWindow::event (this=0xa9f9e0, event=0x7fffa79bf570) at widgets/qmainwindow.cpp:1478
#16 0x00007f1cf9dab098 in KXmlGuiWindow::event (this=0xa9f9e0, ev=0x7fffa79bf570) at /usr/src/debug/kdelibs-4.10.2/kdeui/xmlgui/kxmlguiwindow.cpp:126
#17 0x00007f1cf816486c in QApplicationPrivate::notify_helper (this=this@entry=0x7e3f70, receiver=receiver@entry=0xa9f9e0, e=e@entry=0x7fffa79bf570) at kernel/qapplication.cpp:4562
#18 0x00007f1cf8168ceb in QApplication::notify (this=0x7fffa79bffd0, receiver=0xa9f9e0, e=0x7fffa79bf570) at kernel/qapplication.cpp:4423
#19 0x00007f1cfd805d98 in KoApplication::notify (this=<optimized out>, receiver=0xa9f9e0, event=0x7fffa79bf570) at /home/boud/kde/src/calligra/libs/main/KoApplication.cpp:558
#20 0x00007f1cf9253c9e in QCoreApplication::notifyInternal (this=0x7fffa79bffd0, receiver=0xa9f9e0, event=0x7fffa79bf570) at kernel/qcoreapplication.cpp:946
#21 0x00007f1cf81ade51 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#22 QWidgetPrivate::close_helper (this=0xca2fb0, mode=QWidgetPrivate::CloseWithSpontaneousEvent) at kernel/qwidget.cpp:7941
#23 0x00007f1cf81e094f in QApplication::x11ClientMessage (this=<optimized out>, w=0xa9f9e0, event=<optimized out>, passive_only=<optimized out>) at kernel/qapplication_x11.cpp:3164
#24 0x00007f1cf81df172 in QApplication::x11ProcessEvent (this=0x7fffa79bffd0, event=0x7fffa79bfb30) at kernel/qapplication_x11.cpp:3789
#25 0x00007f1cf8204fa2 in x11EventSourceDispatch (s=0x7e5200, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#26 0x00007f1cf1f0c7d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f1cf1f0cb08 in ?? () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f1cf1f0cbc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f1cf92821d6 in QEventDispatcherGlib::processEvents (this=0x758c30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0x00007f1cf8204c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f1cf92529ef in QEventLoop::processEvents (this=this@entry=0x7fffa79bff00, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f1cf9252c78 in QEventLoop::exec (this=0x7fffa79bff00, flags=...) at kernel/qeventloop.cpp:204
#33 0x00007f1cf9257918 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#34 0x00007f1cfdfdf1ed in kdemain (argc=<optimized out>, argv=0x7fffa79c00e8) at /home/boud/kde/src/calligra/karbon/main.cpp:75
#35 0x00007f1cf7186a15 in __libc_start_main () from /lib64/libc.so.6
#36 0x0000000000400981 in _start () at ../sysdeps/x86_64/start.S:123

Reported using DrKonqi
Comment 1 Halla Rempt 2013-04-25 08:01:44 UTC
Git commit 1c73799957c8af7690494009bb0047f05df40188 by Boudewijn Rempt.
Committed on 25/04/2013 at 09:52.
Pushed by rempt into branch 'master'.

Don't crash on closing karbon (or importing an svg in Krita)
Related: bug 318775

M  +0    -2    karbon/ui/KarbonDocument.cpp

http://commits.kde.org/calligra/1c73799957c8af7690494009bb0047f05df40188