Bug 261911

Summary: Crash on clicking load tutorial
Product: [Applications] krita Reporter: Sven Langkamp <sven.langkamp>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sven Langkamp 2011-01-02 23:26:05 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:
Clicked on Help->Load Tutorial. Crash. Crash happens every time.

The crash can be reproduced every time.

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

Thread 5 (Thread 0x7fad7d46e700 (LWP 3078)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fad9ea76fdb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fad9ea72d64 in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#3  0x00007fad9df6729e in KisTileDataPooler::waitForWork (this=0x1d39830) at /home/sven/kde/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:127
#4  0x00007fad9df674e8 in KisTileDataPooler::run (this=0x1d39830) at /home/sven/kde/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:156
#5  0x00007fad9ea75f95 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007fad9e7e59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007fad9747e70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fad7cc6d700 (LWP 3079)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fad9ea75905 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007fad9ea75a70 in QThread::msleep(unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x00007fad9df8346a in KisTileDataSwapper::run (this=0x1d39860) at /home/sven/kde/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:95
#4  0x00007fad9ea75f95 in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007fad9e7e59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fad9747e70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fad777fe700 (LWP 3088)):
#0  0x00007fad97476ff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fad9eb8c93e in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/libQtCore.so.4
#2  0x00007fad9eb91f1d in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/libQtCore.so.4
#3  0x00007fad9eb92d0b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007fad9eb646c2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fad9eb64a9c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fad9ea738db in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007fad9eb44dd8 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007fad9ea75f95 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fad9e7e59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fad9747e70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

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

Thread 1 (Thread 0x7fad8df907a0 (LWP 3077)):
[KCrash Handler]
#5  QBasicAtomicInt::ref (this=0x2f741f0) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121
#6  KisShared::ref (this=0x2f741f0) at /home/sven/kde/src/calligra/krita/image/kis_shared.h:38
#7  KisSharedPtr<KisSelection>::ref (this=0x2f741f0) at /home/sven/kde/src/calligra/krita/image/kis_shared_ptr.h:199
#8  KisSharedPtr<KisSelection>::ref (this=0x2f741f0) at /home/sven/kde/src/calligra/krita/image/kis_shared_ptr.h:203
#9  KisSharedPtr (this=0x2f741f0) at /home/sven/kde/src/calligra/krita/image/kis_shared_ptr.h:103
#10 KisImage::globalSelection (this=0x2f741f0) at /home/sven/kde/src/calligra/krita/image/kis_image.cc:238
#11 0x00007fad9e00a257 in KisLayer::selection (this=0x2f73810) at /home/sven/kde/src/calligra/krita/image/kis_layer.cc:256
#12 0x00007fad9e3b9822 in KisCanvas2::shapeManager (this=0x4794f30) at /home/sven/kde/src/calligra/krita/ui/canvas/kis_canvas2.cpp:264
#13 0x00007fad9e3ee642 in KisNodeShape::editabilityChanged (this=<value optimized out>) at /home/sven/kde/src/calligra/krita/ui/flake/kis_node_shape.cpp:152
#14 0x00007fad9e3ee9e5 in KisNodeShape (this=0x566f410, parent=0x9ab0bd0, node=...) at /home/sven/kde/src/calligra/krita/ui/flake/kis_node_shape.cpp:56
#15 0x00007fad9e3f1d48 in KisShapeController::Private::addNodeShape (this=0x5854e00, node=) at /home/sven/kde/src/calligra/krita/ui/flake/kis_shape_controller.cpp:106
#16 0x00007fad9e3f1be8 in KisShapeController::Private::addNodeShape (this=0x5854e00, node=<value optimized out>) at /home/sven/kde/src/calligra/krita/ui/flake/kis_shape_controller.cpp:114
#17 0x00007fad9e3f1be8 in KisShapeController::Private::addNodeShape (this=0x5854e00, node=<value optimized out>) at /home/sven/kde/src/calligra/krita/ui/flake/kis_shape_controller.cpp:114
#18 0x00007fad9e3f313d in KisShapeController::setImage (this=0x56f6d60, image=) at /home/sven/kde/src/calligra/krita/ui/flake/kis_shape_controller.cpp:178
#19 0x00007fad9e43a80f in KisDoc2::completeLoading (this=0x412f7e0, store=0x5844840) at /home/sven/kde/src/calligra/krita/ui/kis_doc2.cc:327
#20 0x00007fad9d7089a7 in KoDocument::loadNativeFormatFromStoreInternal (this=0x412f7e0, store=0x5844840) at /home/sven/kde/src/calligra/libs/main/KoDocument.cpp:1758
#21 0x00007fad9d7098d2 in KoDocument::loadNativeFormatFromStore (this=0x412f7e0, file=...) at /home/sven/kde/src/calligra/libs/main/KoDocument.cpp:1640
#22 0x00007fad9d709b31 in KoDocument::loadNativeFormat (this=0x412f7e0, file_=<value optimized out>) at /home/sven/kde/src/calligra/libs/main/KoDocument.cpp:1620
#23 0x00007fad9d7051b7 in KoDocument::openFile (this=0x412f7e0) at /home/sven/kde/src/calligra/libs/main/KoDocument.cpp:1412
#24 0x00007fad9a589117 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#25 0x00007fad9d7034fc in KoDocument::openUrl (this=0x412f7e0, _url=...) at /home/sven/kde/src/calligra/libs/main/KoDocument.cpp:1251
#26 0x00007fad9e4b3c6f in KisView2::slotFirstRun (this=<value optimized out>) at /home/sven/kde/src/calligra/krita/ui/kis_view2.cpp:864
#27 0x00007fad9e4b535c in KisView2::qt_metacall (this=0x1d2df00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>)
    at /home/sven/kde/build/calligra/krita/ui/kis_view2.moc:92
#28 0x00007fad9eb79036 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#29 0x00007fad989f6a12 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#30 0x00007fad989f8a8b in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#31 0x00007fad98e39691 in ?? () from /usr/lib/libQtGui.so.4
#32 0x00007fad98e3f222 in ?? () from /usr/lib/libQtGui.so.4
#33 0x00007fad997e848e in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#34 0x00007fad98a52f12 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#35 0x00007fad98e4141b in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
#36 0x00007fad989fcc0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#37 0x00007fad98a038bb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#38 0x00007fad9970ba16 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#39 0x00007fad9eb65d9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#40 0x00007fad98a02a9e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#41 0x00007fad98a8301d in ?? () from /usr/lib/libQtGui.so.4
#42 0x00007fad98a814ec in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#43 0x00007fad98aadeb9 in ?? () from /usr/lib/libQtGui.so.4
#44 0x00007fad9eb646c2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#45 0x00007fad9eb64a9c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#46 0x00007fad9eb6973b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#47 0x00007fad9ee7f3b5 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/sven/kde/src/calligra/krita/main.cc:49
#48 0x00007fad973b6c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fffe2bd0888) at libc-start.c:226
#49 0x00000000004008c9 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2011-01-03 07:52:50 UTC
Hm, works fine for me...
Comment 2 Halla Rempt 2011-01-05 13:11:08 UTC
Fixed as well.
Comment 3 Halla Rempt 2011-01-05 13:21:59 UTC
SVN commit 1211995 by rempt:

Do not crash when loading the tutorial if always start with template is checked

CCBUG:261911
CCBUG:261940


 M  +2 -2      image/kis_layer.cc  
 M  +5 -0      image/kis_node.cpp  
 M  +4 -4      ui/canvas/kis_coordinates_converter.cpp  
 M  +1 -1      ui/flake/kis_shape_controller.cpp  
 M  +6 -0      ui/kis_doc2.cc  
 M  +0 -1      ui/kis_node_model.cpp  
 M  +1 -1      ui/kis_view2.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1211995