Bug 235278 - Krita crashes randomly whilst painting
Summary: Krita crashes randomly whilst painting
Status: RESOLVED DUPLICATE of bug 243687
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 244763 245132 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-24 16:59 UTC by beojan
Modified: 2010-09-07 17:02 UTC (History)
3 users (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 beojan 2010-04-24 16:59:16 UTC
Application: krita (2.2 Beta 2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.33.2 i686
Distribution: Beejex 2010 (Mayfair)

-- Information about the crash:
This crash occured randomly whilst painting in krita
with a Wacom Bamboo Pen tablet. Krita is compiled from source,
svn 

The crash can be reproduced some of the time.

 -- Backtrace:
Application: Krita (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb554d700 (LWP 4492))]

Thread 4 (Thread 0xb1f16b70 (LWP 4493)):
#0  0xb773d424 in __kernel_vsyscall ()
#1  0xb598b0a5 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0xb5ea080d in __pthread_cond_wait (cond=0x82ef308, mutex=0x82ef2f0) at forward.c:139
#3  0xb6b10867 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb6b0c41d in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#5  0xb331ed93 in KisTileDataPooler::waitForWork (this=0xb3471520) at /root/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:133
#6  0xb331f39f in KisTileDataPooler::run (this=0xb3471520) at /root/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:162
#7  0xb6b0f93e in ?? () from /usr/lib/libQtCore.so.4
#8  0xb5987585 in start_thread (arg=0xb1f16b70) at pthread_create.c:300
#9  0xb5e9329e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xad001b70 (LWP 4499)):
[KCrash Handler]
#6  0xb33b2fe9 in KisSharedPtr<KisNode>::operator== (this=0xa270830, node=) at /root/koffice/krita/image/kis_shared_ptr.h:124
#7  QList<KisSharedPtr<KisNode> >::contains (this=0xa270830, node=) at /usr/include/qt4/QtCore/qlist.h:760
#8  KisNode::index (this=0xa270830, node=) at /root/koffice/krita/image/kis_node.cpp:179
#9  0xb33b4168 in KisNode::prevSibling (this=0xa208900) at /root/koffice/krita/image/kis_node.cpp:150
#10 0xb3393a55 in KisMergeWalker::startTrip (this=0xad000bdc, startWith=) at /root/koffice/krita/image/kis_merge_walker.cc:40
#11 0xb33cf177 in KisBaseRectsWalker::collectRects (this=0xa20e0d8, node=..., rc=..., cropRect=...) at /root/koffice/krita/image/kis_base_rects_walker.h:80
#12 KisImageUpdater::startUpdate (this=0xa20e0d8, node=..., rc=..., cropRect=...) at /root/koffice/krita/image/kis_projection.cc:206
#13 0xb33cfa0c in KisImageUpdater::qt_metacall (this=0xa20e0d8, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xa8b332e8) at /root/koffice/build/krita/image/kis_projection.moc:156
#14 0xb6c16aea in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#15 0xb6c21016 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#16 0xb6c220de in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#17 0xb6158bec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0xb615f75e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0xb6f067aa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#20 0xb6c118eb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#21 0xb6c142c3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#22 0xb6c40a7a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0xb6c0ff09 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0xb6c1035a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#25 0xb6b0cbd8 in QThread::exec() () from /usr/lib/libQtCore.so.4
#26 0xb33cddad in KisProjection::run (this=0xa2086c8) at /root/koffice/krita/image/kis_projection.cc:86
#27 0xb6b0f93e in ?? () from /usr/lib/libQtCore.so.4
#28 0xb5987585 in start_thread (arg=0xad001b70) at pthread_create.c:300
#29 0xb5e9329e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xac2ffb70 (LWP 4649)):
#0  0xb773d424 in __kernel_vsyscall ()
#1  0xb598b3d2 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0xb5ea0864 in __pthread_cond_timedwait (cond=0xb5bb8d0, mutex=0xb5bb8b8, abstime=0xac2ff2d0) at forward.c:152
#3  0xb6b107ef in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb6b04b7b in ?? () from /usr/lib/libQtCore.so.4
#5  0xb6b0f93e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb5987585 in start_thread (arg=0xac2ffb70) at pthread_create.c:300
#7  0xb5e9329e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb554d700 (LWP 4492)):
#0  0xb773d424 in __kernel_vsyscall ()
#1  0xb5e85b27 in *__GI___poll (fds=0xbff6bb08, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb5b3f0f0 in ?? () from /usr/lib/libxcb.so.1
#3  0xb5b3f6fb in ?? () from /usr/lib/libxcb.so.1
#4  0xb5b3fa97 in xcb_writev () from /usr/lib/libxcb.so.1
#5  0xb73a257c in _XSend () from /usr/lib/libX11.so.6
#6  0xb73a2720 in _XReply () from /usr/lib/libX11.so.6
#7  0xb3fbd390 in DRI2GetBuffersWithFormat () from /usr/lib/libGL.so.1
#8  0xb3fbc742 in ?? () from /usr/lib/libGL.so.1
#9  0xaa691dae in radeon_update_renderbuffers () from /usr/lib/dri/r600_dri.so
#10 0xaa6925ca in radeonMakeCurrent () from /usr/lib/dri/r600_dri.so
#11 0xaa66e1a2 in ?? () from /usr/lib/dri/r600_dri.so
#12 0xb3fbc15c in ?? () from /usr/lib/libGL.so.1
#13 0xb3f97da2 in glXMakeCurrentReadSGI () from /usr/lib/libGL.so.1
#14 0xb3f97e73 in glXMakeCurrent () from /usr/lib/libGL.so.1
#15 0xb4065538 in QGLContext::makeCurrent() () from /usr/lib/libQtOpenGL.so.4
#16 0xb4019cb8 in QGLPaintDevice::beginPaint() () from /usr/lib/libQtOpenGL.so.4
#17 0xb4019d25 in ?? () from /usr/lib/libQtOpenGL.so.4
#18 0xb402ebaf in ?? () from /usr/lib/libQtOpenGL.so.4
#19 0xb62c75b2 in QPainter::begin(QPaintDevice*) () from /usr/lib/libQtGui.so.4
#20 0xb62c7d88 in QPainter::QPainter(QPaintDevice*) () from /usr/lib/libQtGui.so.4
#21 0xb361c9df in KisOpenGLCanvas2::paintEvent (this=0xabdb0a8) at /root/koffice/krita/ui/opengl/kis_opengl_canvas2.cpp:115
#22 0xb61b6d36 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#23 0xb4006679 in QGLWidget::event(QEvent*) () from /usr/lib/libQtOpenGL.so.4
#24 0xb6158bec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#25 0xb615f7f9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0xb6f067aa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#27 0xb6c118eb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#28 0xb61c0066 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#29 0xb6392fd6 in QWidgetPrivate::repaint_sys(QRegion const&) () from /usr/lib/libQtGui.so.4
#30 0xb61b07ae in QWidgetPrivate::syncBackingStore() () from /usr/lib/libQtGui.so.4
#31 0xb61b74f6 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#32 0xb4006679 in QGLWidget::event(QEvent*) () from /usr/lib/libQtOpenGL.so.4
#33 0xb6158bec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#34 0xb615f7f9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#35 0xb6f067aa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#36 0xb6c118eb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#37 0xb6c142c3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#38 0xb6c40a7a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0xb6218216 in ?? () from /usr/lib/libQtGui.so.4
#40 0xb6c0ff09 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#41 0xb6c1035a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#42 0xb6c144ef in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#43 0xb6158c87 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#44 0xb52d01fd in kdemain (argc=1, argv=0x82b62b8) at /root/koffice/krita/main.cc:49
#45 0x0804e17b in _start ()

Reported using DrKonqi
Comment 1 Dmitry Kazakov 2010-04-25 20:09:59 UTC
Hi!
Could you tell the revision of svn you compiled from? (`svn info`). And did you do some other compilations (of previous versions) at the same build folder?
Maybe this is some compilation problem and `make clean` in krita/image/ folder could help. Could you try it if it wasn't a clean build?

If it doesn't help, it think i know what to suspect - the reference in a comparison operator of KisSharedPtr.
Comment 2 Dmitry Kazakov 2010-04-25 20:20:11 UTC
hm.. seems like references are innocent.
Comment 3 Dmitry Kazakov 2010-05-03 08:44:28 UTC
Waiting for the information about the revision and recompilation.
Comment 4 Sven Langkamp 2010-07-19 15:03:18 UTC
*** Bug 244763 has been marked as a duplicate of this bug. ***
Comment 5 Sven Langkamp 2010-07-19 15:04:20 UTC
Bugs seems to appear with recent trunk versions.
Comment 6 Sven Langkamp 2010-07-19 15:05:40 UTC
*** Bug 245132 has been marked as a duplicate of this bug. ***
Comment 7 Halla Rempt 2010-08-11 22:36:53 UTC
BUGDAY
Comment 8 Dmitry Kazakov 2010-08-20 18:00:21 UTC
I can't reproduce this bug. Even when i follow steps reported in duplicated bugs. I would suggest to execute "make -j3 clean" in koffice/krita/image/ directory.
Comment 9 Halla Rempt 2010-09-07 16:44:23 UTC
Sven, are you sure it's the same bug? So much has changed since 2.2 that that would be very surprising.
Comment 10 Sven Langkamp 2010-09-07 16:52:41 UTC
Not sure if this particular bug still exists. But there are crashes while painting.
Comment 11 Halla Rempt 2010-09-07 17:02:00 UTC
Let's mark it as a duplicate then. I think all of the crashes while painting are multi-threading issues, and 243687 shows it up because the effect mask makes recomposition trickier.

*** This bug has been marked as a duplicate of bug 243687 ***