Bug 277953 - Krita crash Deleting a view.
Summary: Krita crash Deleting a view.
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-17 14:56 UTC by RamonMiranda
Modified: 2011-07-19 12:31 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 RamonMiranda 2011-07-17 14:56:39 UTC
Application: krita (2.4 Alpha 2)
KDE Platform Version: 4.5.5 (KDE 4.5.5) (Compiled from sources)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-30-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
I was sketching and working on 2 views, i tried to remove the first view to still working with single view, then krita crash.

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

Thread 4 (Thread 0x7f6a2adb8700 (LWP 2115)):
#0  0x00007f6a36e00203 in poll () from /lib/libc.so.6
#1  0x00007f6a3625f009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f6a3625f7b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007f6a2b4ef3c4 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007f6a362847e4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007f6a3cdec953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#6  0x00007f6a3e96d971 in start_thread () from /lib/libpthread.so.0
#7  0x00007f6a36e0c92d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f6a1125d700 (LWP 2204)):
#0  0x00007f6a3e971a9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f6a3ebf8e3b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f6a3ebf4b0b in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#3  0x00007f6a3d910dae in KisTileDataPooler::waitForWork (this=0x639d2e0) at /home/ramon/Descargas/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007f6a3d9115c8 in KisTileDataPooler::run (this=0x639d2e0) at /home/ramon/Descargas/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007f6a3ebf827e in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007f6a3cdec953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#7  0x00007f6a3e96d971 in start_thread () from /lib/libpthread.so.0
#8  0x00007f6a36e0c92d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f6a11a5e700 (LWP 2205)):
#0  0x00007f6a3e971a9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f6a3ebf8e3b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f6a3ebf4dab in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#3  0x00007f6a3d92ea9a in KisTileDataSwapper::run (this=0x639d318) at /home/ramon/Descargas/calligra/calligra-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#4  0x00007f6a3ebf827e in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007f6a3cdec953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#6  0x00007f6a3e96d971 in start_thread () from /lib/libpthread.so.0
#7  0x00007f6a36e0c92d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6a3f3f47a0 (LWP 2114)):
[KCrash Handler]
#6  QString (this=0x7f6a27e3ca50) at /usr/include/qt4/QtCore/qstring.h:727
#7  KoResource::name (this=0x7f6a27e3ca50) at /home/ramon/Descargas/calligra/calligra-src/libs/pigment/resources/KoResource.cpp:65
#8  0x00007f6a0fe1342c in KisToolColorPicker::createOptionWidget (this=0x1032cff0) at /home/ramon/Descargas/calligra/calligra-src/krita/plugins/tools/defaulttools/kis_tool_colorpicker.cc:288
#9  0x00007f6a3ba84d0a in KoToolBase::createOptionWidgets (this=0x7f6a27e3ca50) at /home/ramon/Descargas/calligra/calligra-src/libs/flake/KoToolBase.cpp:193
#10 0x00007f6a3ba84c7c in KoToolBase::optionWidgets (this=0x7f6a27e3ca50) at /home/ramon/Descargas/calligra/calligra-src/libs/flake/KoToolBase.cpp:162
#11 0x00007f6a3ba9ba7b in KoToolManager::Private::postSwitchTool (this=0x7f6a2401afb0, temporary=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-src/libs/flake/KoToolManager.cpp:344
#12 0x00007f6a3ba9cb6a in KoToolManager::Private::switchTool (this=0x7f6a2401afb0, tool=<value optimized out>, temporary=80) at /home/ramon/Descargas/calligra/calligra-src/libs/flake/KoToolManager.cpp:263
#13 0x00007f6a3ba9d35e in KoToolManager::Private::toolActivated (this=0x7f6a2401afb0, tool=0x786acc0) at /home/ramon/Descargas/calligra/calligra-src/libs/flake/KoToolManager.cpp:394
#14 0x00007f6a3ba9f181 in KoToolManager::qt_metacall (this=0x7f6a272a9920, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff04243080) at /home/ramon/Descargas/calligra/calligra-build/libs/flake/KoToolManager.moc:120
#15 0x00007f6a3ed03b27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#16 0x00007f6a3ba96a3f in ToolHelper::toolActivated (this=0x7fff04242a70, _t1=0x786acc0) at /home/ramon/Descargas/calligra/calligra-build/libs/flake/KoToolManager_p.moc:89
#17 0x00007f6a3ba96ad1 in ToolHelper::qt_metacall (this=0x786acc0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff042431c0) at /home/ramon/Descargas/calligra/calligra-build/libs/flake/KoToolManager_p.moc:77
#18 0x00007f6a3ed03b27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#19 0x00007f6a38dae402 in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4
#20 0x00007f6a38aa8eeb in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007f6a38aaa5bb in ?? () from /usr/lib/libQtGui.so.4
#22 0x00007f6a38aaa82c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#23 0x00007f6a38b7a52a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#24 0x00007f6a3872704e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x00007f6a386d0fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007f6a386d730e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0x00007f6a39424586 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#28 0x00007f6a3ecebcdc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#29 0x00007f6a386d5dbe in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#30 0x00007f6a38759345 in ?? () from /usr/lib/libQtGui.so.4
#31 0x00007f6a38757c5c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#32 0x00007f6a38784b6f in ?? () from /usr/lib/libQtGui.so.4
#33 0x00007f6a3eceaa02 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#34 0x00007f6a3eceadec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#35 0x00007f6a3eceeebb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#36 0x00007f6a3f0223a5 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-src/krita/main.cc:49
#37 0x00007f6a36d44d8e in __libc_start_main () from /lib/libc.so.6
#38 0x00000000004008b9 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2011-07-18 08:00:28 UTC
I can reproduce if I try to pick a color after removing the view.
Comment 2 Halla Rempt 2011-07-18 08:13:25 UTC
New backtrace:

Thread 1 (Thread 0x7fbe3f8ef760 (LWP 7515)):
[KCrash Handler]
#6  KoCanvasBase::resourceManager (this=0x10) at /home/boud/kde/src/calligra/libs/flake/KoCanvasBase.cpp:87
#7  0x00007fbe1597244a in PresetDockerDock::resourceChanged (this=0x8f04610, key=<optimized out>, v=<optimized out>) at /home/boud/kde/src/calligra/krita/plugins/extensions/dockers/presetdocker/presetdocker_dock.cpp:63
#8  0x00007fbe15972c12 in PresetDockerDock::qt_metacall (this=0x8f04610, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff9ac75df0) at /home/boud/kde/build/calligra/krita/plugins/extensions/dockers/presetdocker/presetdocker_dock.moc:74
#9  0x00007fbe3f1ffaaf in QMetaObject::activate (sender=0x7fbe186856f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9ac75df0) at kernel/qobject.cpp:3278
#10 0x00007fbe3ba1c963 in KoResourceManager::resourceChanged (this=<optimized out>, _t1=0, _t2=<optimized out>) at /home/boud/kde/build/calligra/libs/flake/KoResourceManager.moc:85
#11 0x00007fbe3ba1d8de in KoResourceManager::setResource (this=0x7fbe186856f0, key=0, value=...) at /home/boud/kde/src/calligra/libs/flake/KoResourceManager.cpp:57
#12 0x00007fbe3ba1dc47 in KoResourceManager::setResource (this=0x7fbe186856f0, key=0, color=...) at /home/boud/kde/src/calligra/libs/flake/KoResourceManager.cpp:73
#13 0x00007fbe17b8e307 in KisToolColorPicker::pickColor (this=<optimized out>, pos=...) at /home/boud/kde/src/calligra/krita/plugins/tools/defaulttools/kis_tool_colorpicker.cc:153
#14 0x00007fbe17b90115 in KisToolColorPicker::mousePressEvent (this=0xec21460, event=0x7fff9ac765e0) at /home/boud/kde/src/calligra/krita/plugins/tools/defaulttools/kis_tool_colorpicker.cc:190
#15 0x00007fbe3ba784cc in KoToolProxy::mousePressEvent (this=0x7fbe196aa930, event=0x7fff9ac76f70, point=...) at /home/boud/kde/src/calligra/libs/flake/KoToolProxy.cpp:206
#16 0x00007fbe3e8cb7b3 in KisCanvasWidgetBase::processMousePressEvent (this=0x7fbe19858778, e=0x7fff9ac76f70) at /home/boud/kde/src/calligra/krita/ui/canvas/kis_canvas_widget_base.cpp:230
#17 0x00007fbe38152f49 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007fbe381010a4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#19 0x00007fbe38109edc in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#20 0x00007fbe38d68346 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#21 0x00007fbe3f1eb40c in QCoreApplication::notifyInternal (this=0x7fff9ac77ac0, receiver=0x7fbe19858750, event=0x7fff9ac76f70) at kernel/qcoreapplication.cpp:787
#22 0x00007fbe381020b5 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#23 0x00007fbe38180b78 in ?? () from /usr/lib64/libQtGui.so.4
#24 0x00007fbe3817f239 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#25 0x00007fbe381a7ad4 in ?? () from /usr/lib64/libQtGui.so.4
#26 0x00007fbe3f1ea862 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#27 0x00007fbe3f1eaa75 in QEventLoop::exec (this=0x7fff9ac77a70, flags=...) at kernel/qeventloop.cpp:201
#28 0x00007fbe3f1eeebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#29 0x00007fbe3f5234b5 in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/boud/kde/src/calligra/krita/main.cc:49
#30 0x00007fbe36affbfd in __libc_start_main () from /lib64/libc.so.6
#31 0x0000000000400929 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 3 Halla Rempt 2011-07-18 08:42:28 UTC
Git commit 358ad5f33181b00f3364a3172f287039c256e6ff by Boudewijn Rempt.
Committed on 18/07/2011 at 10:40.
Pushed by rempt into branch 'master'.

Disconnect the preset docker when a view is removed

Ramon, can you check whether this fixes this bug for you as well? I
couldn't reproduce it with your steps exactly, I needed to click with
the color picker to get a crash, and my backtrace was different from
yours.

CCMAIL: mirandagraphic@gmail.com
CCBUG: 277953

M  +1    -1    krita/plugins/extensions/dockers/presetdocker/presetdocker_dock.h
M  +14   -3    krita/plugins/extensions/dockers/presetdocker/presetdocker_dock.cpp

http://commits.kde.org/calligra/358ad5f33181b00f3364a3172f287039c256e6ff
Comment 4 Halla Rempt 2011-07-19 12:31:34 UTC
This is "fixed" now, but split view has many problems still.