Bug 263382 - Crash on creating a new custom document after closing a document
Summary: Crash on creating a new custom document after closing a document
Status: RESOLVED FIXED
Alias: None
Product: calligracommon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 02:38 UTC by Sven Langkamp
Modified: 2012-04-17 07:52 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Langkamp 2011-01-17 02:38:28 UTC
Application: krita (2.4 Alpha 1)
KDE Platform Version: 4.4.5 (KDE 4.4.5) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.32-27-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
To reproduce:
-create an image by template or custom document
-paint something
-create a new image this time with via custom document

New image will appear in a second view

-close that view via File->close
-try to create a new image in custom document again
->Crash

The crash can be reproduced every time.

 -- Backtrace:
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fc706cae7a0 (LWP 7385))]

Thread 9 (Thread 0x7fc6f36fe700 (LWP 7386)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fc717a23fdb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fc717a1fd64 in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#3  0x00007fc716dca884 in KisTileDataPooler::waitForWork (this=0x22d8380) at /home/sven/kde/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:127
#4  0x00007fc716dca8ee in KisTileDataPooler::run (this=0x22d8380) at /home/sven/kde/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:156
#5  0x00007fc717a22f95 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007fc7177929ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007fc71019d70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fc6f2efd700 (LWP 7387)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fc717a23fdb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fc717a1fb84 in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#3  0x00007fc716dee98e in KisTileDataSwapper::waitForWork (this=0x22d83b0) at /home/sven/kde/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:84
#4  0x00007fc716dee9a8 in KisTileDataSwapper::run (this=0x22d83b0) at /home/sven/kde/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:90
#5  0x00007fc717a22f95 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007fc7177929ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007fc71019d70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fc6f26fc700 (LWP 7396)):
#0  0x00007fc710195ff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fc717b3993e in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/libQtCore.so.4
#2  0x00007fc717b3ef1d in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/libQtCore.so.4
#3  0x00007fc717b3fd0b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007fc717b116c2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fc717b11a9c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fc717a208db in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007fc717af1dd8 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007fc717a22f95 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fc7177929ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fc71019d70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fc6e8c10700 (LWP 7398)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fc717a23f42 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fc717a18f21 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fc717a22f95 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fc7177929ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007fc71019d70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fc6e37fe700 (LWP 7418)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fc717a23f42 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fc717a18f21 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fc717a22f95 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fc7177929ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007fc71019d70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fc6e2ffd700 (LWP 7419)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fc717a23f42 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fc717a18f21 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fc717a22f95 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fc7177929ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007fc71019d70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fc6e3fff700 (LWP 7420)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fc717a23f42 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fc717a18f21 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fc717a22f95 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fc7177929ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007fc71019d70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fc6f1efb700 (LWP 7421)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fc717a23f42 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fc717a18f21 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fc717a22f95 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fc7177929ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007fc71019d70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc706cae7a0 (LWP 7385)):
[KCrash Handler]
#5  0x00007fc711774e88 in QWidget::setParent(QWidget*) () from /usr/lib/libQtGui.so.4
#6  0x00007fc71655eb78 in KoToolDocker::Private::recreateLayout (this=0x4a7c190, optionWidgetMap=...) at /home/sven/kde/src/calligra/libs/main/KoToolDocker.cpp:79
#7  0x00007fc71655e4f9 in KoToolDocker::setOptionWidgets (this=0x4a75d40, optionWidgetMap=...) at /home/sven/kde/src/calligra/libs/main/KoToolDocker.cpp:274
#8  0x00007fc7165029c8 in KoDockerManager::newOptionWidgets (this=0x2b4a550, optionWidgetMap=...) at /home/sven/kde/src/calligra/libs/main/KoDockerManager.cpp:169
#9  0x00007fc716502add in KoDockerManager::qt_metacall (this=0x2b4a550, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffc60a8520) at /home/sven/kde/build/calligra/libs/main/KoDockerManager.moc:78
#10 0x00007fc717b26036 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#11 0x00007fc714821e59 in KoCanvasControllerWidget::toolOptionWidgetsChanged (this=0x5f7c0b0, _t1=...) at /home/sven/kde/build/calligra/libs/flake/KoCanvasControllerWidget.moc:97
#12 0x00007fc714821211 in KoCanvasControllerWidget::setToolOptionWidgets (this=0x5f7c0b0, widgetMap=...) at /home/sven/kde/src/calligra/libs/flake/KoCanvasControllerWidget.cpp:506
#13 0x00007fc7148347b5 in KoToolManager::Private::postSwitchTool (this=0x22ea4f0, temporary=false) at /home/sven/kde/src/calligra/libs/flake/KoToolManager.cpp:360
#14 0x00007fc714833722 in KoToolManager::Private::switchTool (this=0x22ea4f0, tool=0x5a51e90, temporary=false) at /home/sven/kde/src/calligra/libs/flake/KoToolManager.cpp:246
#15 0x00007fc714833aa3 in KoToolManager::Private::switchTool (this=0x22ea4f0, id=..., temporary=false) at /home/sven/kde/src/calligra/libs/flake/KoToolManager.cpp:272
#16 0x00007fc714838083 in KoToolManager::switchToolRequested (this=0x22ea660, id=...) at /home/sven/kde/src/calligra/libs/flake/KoToolManager.cpp:820
#17 0x00007fc71730d1af in KisShapeController::setInitialShapeForView (this=0x5a99f20, view=0x58581e0) at /home/sven/kde/src/calligra/krita/ui/flake/kis_shape_controller.cpp:277
#18 0x00007fc71736242a in KisDoc2::createViewInstance (this=0x398c8a0, parent=0x3442100) at /home/sven/kde/src/calligra/krita/ui/kis_doc2.cc:435
#19 0x00007fc7165074f0 in KoDocument::createView (this=0x398c8a0, parent=0x3442100) at /home/sven/kde/src/calligra/libs/main/KoDocument.cpp:430
#20 0x00007fc716535c9f in KoMainWindow::setRootDocument (this=0x4977440, doc=0x398c8a0) at /home/sven/kde/src/calligra/libs/main/KoMainWindow.cpp:463
#21 0x00007fc716513e73 in KoDocument::deleteOpenPane (this=0x398c8a0) at /home/sven/kde/src/calligra/libs/main/KoDocument.cpp:2514
#22 0x00007fc716513a54 in KoDocument::startCustomDocument (this=0x398c8a0) at /home/sven/kde/src/calligra/libs/main/KoDocument.cpp:2473
#23 0x00007fc7165149fd in KoDocument::qt_metacall (this=0x398c8a0, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fffc60a8d60) at /home/sven/kde/build/calligra/libs/main/KoDocument.moc:134
#24 0x00007fc71736341f in KisDoc2::qt_metacall (this=0x398c8a0, _c=QMetaObject::InvokeMetaMethod, _id=38, _a=0x7fffc60a8d60) at /home/sven/kde/build/calligra/krita/ui/kis_doc2.moc:78
#25 0x00007fc717b26036 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#26 0x00007fc717462cef in KisCustomImageWidget::documentSelected (this=0x5952e10) at /home/sven/kde/build/calligra/krita/ui/kis_custom_image_widget.moc:157
#27 0x00007fc71746258c in KisCustomImageWidget::buttonClicked (this=0x5952e10) at /home/sven/kde/src/calligra/krita/ui/widgets/kis_custom_image_widget.cc:218
#28 0x00007fc717462c04 in KisCustomImageWidget::qt_metacall (this=0x5952e10, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffc60a9100)
    at /home/sven/kde/build/calligra/krita/ui/kis_custom_image_widget.moc:139
#29 0x00007fc717b26036 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#30 0x00007fc711db9cf2 in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4
#31 0x00007fc711ad275b in ?? () from /usr/lib/libQtGui.so.4
#32 0x00007fc711ad35fb in ?? () from /usr/lib/libQtGui.so.4
#33 0x00007fc711ad386c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#34 0x00007fc711771f12 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#35 0x00007fc71171bc0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#36 0x00007fc7117228bb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#37 0x00007fc71242aa16 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#38 0x00007fc717b12d9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#39 0x00007fc711721a9e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#40 0x00007fc7117a1ba5 in ?? () from /usr/lib/libQtGui.so.4
#41 0x00007fc7117a04ec in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#42 0x00007fc7117cceb9 in ?? () from /usr/lib/libQtGui.so.4
#43 0x00007fc717b116c2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#44 0x00007fc717b11a9c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#45 0x00007fc717b1673b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#46 0x00007fc717e2c3cb in kdemain (argc=1, argv=0x7fffc60aa728) at /home/sven/kde/src/calligra/krita/main.cc:49
#47 0x00000000004009c6 in main (argc=1, argv=0x7fffc60aa728) at /home/sven/kde/build/calligra/krita/krita_dummy.cpp:3

Reported using DrKonqi
Comment 1 Halla Rempt 2011-01-19 21:13:27 UTC
And this... We somehow do something very wrong with the creation and deletion of views, documents and canvases.

*** This bug has been marked as a duplicate of bug 262941 ***
Comment 2 Sven Langkamp 2011-01-22 17:57:43 UTC
Not a duplicate, could be link to the new tool docker.
Comment 3 Sven Langkamp 2011-01-22 23:08:44 UTC
Crashes in all Calligra applications.
Comment 4 T Zachmann 2012-04-16 06:30:41 UTC
Can anybody reproduce the crash as I can't?

However I noticed that if you have a connection to a shape in a group the connection does not autoupdate when the group is moved. It works with shapes not in a group without problems.
Comment 5 Camilla Boemann 2012-04-16 06:36:51 UTC
Oh I fixed this one long ago
Comment 6 Halla Rempt 2012-04-17 07:52:02 UTC
I cannot move any shape that has a connection without breaking the connection, btw.