Bug 279491

Summary: Krita crash applying th pixelize filter
Product: [Applications] krita Reporter: RamonMiranda <mirandagraphic>
Component: GeneralAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED DUPLICATE    
Severity: crash CC: halla
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description RamonMiranda 2011-08-05 23:25:33 UTC
Application: krita (2.4 Alpha 3)
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 testing filters. The first try i select the pixelize and change the defaul value to ten . Krita didn´t show the preview and crash

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

Thread 8 (Thread 0x7fef0f9f0700 (LWP 10152)):
#0  0x00007fef1ae9adbc in ?? () from /lib/libglib-2.0.so.0
#1  0x00007fef1ae9b7b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#2  0x00007fef101273c4 in ?? () from /usr/lib/libgio-2.0.so.0
#3  0x00007fef1aec07e4 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007fef21a2a953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#5  0x00007fef235a9971 in start_thread () from /lib/libpthread.so.0
#6  0x00007fef1ba4892d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7feef5e46700 (LWP 10296)):
#0  0x00007fef235ada9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fef23834e3b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fef23830b0b in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#3  0x00007fef22554ebe in KisTileDataPooler::waitForWork (this=0x938ae00) at /home/ramon/Descargas/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007fef225556d8 in KisTileDataPooler::run (this=0x938ae00) at /home/ramon/Descargas/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007fef2383427e in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007fef21a2a953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#7  0x00007fef235a9971 in start_thread () from /lib/libpthread.so.0
#8  0x00007fef1ba4892d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7feef6647700 (LWP 10297)):
#0  0x00007fef235ada9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fef23834e3b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fef23830dab in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#3  0x00007fef22572baa in KisTileDataSwapper::run (this=0x938ae38) at /home/ramon/Descargas/calligra/calligra-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#4  0x00007fef2383427e in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007fef21a2a953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#6  0x00007fef235a9971 in start_thread () from /lib/libpthread.so.0
#7  0x00007fef1ba4892d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7feee3fff700 (LWP 2287)):
#0  0x00007fef235ada9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fef23833533 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007fef2382ef05 in QMutex::lock() () from /usr/lib/libQtCore.so.4
#3  0x00007fef225f4af4 in QMutexLocker (this=0x93d0040) at /usr/include/qt4/QtCore/qmutex.h:102
#4  KisSimpleUpdateQueue::optimize (this=0x93d0040) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:179
#5  0x00007fef2254d600 in KisUpdateScheduler::qt_metacall (this=0x938b0e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-build/krita/image/moc_kis_update_scheduler.cpp:74
#6  0x00007fef2393fb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#7  0x00007fef2254d7c4 in KisUpdaterContext::qt_metacall (this=0x938b0f8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7feee3ffec80) at /home/ramon/Descargas/calligra/calligra-build/krita/image/moc_kis_updater_context.cpp:165
#8  0x00007fef2393fb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#9  0x00007fef2255098f in KisUpdateJobItem::run (this=0x9a40550) at /home/ramon/Descargas/calligra/calligra-build/krita/image/../../../calligra-src/krita/image/kis_updater_context.h:46
#10 0x00007fef23829d02 in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007fef2383427e in ?? () from /usr/lib/libQtCore.so.4
#12 0x00007fef21a2a953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#13 0x00007fef235a9971 in start_thread () from /lib/libpthread.so.0
#14 0x00007fef1ba4892d in clone () from /lib/libc.so.6
#15 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7feee9260700 (LWP 2288)):
[KCrash Handler]
#6  0x00007fef225e7cc6 in KisFilterMask::changeRect (this=0x103fbd40, rect=..., pos=KisNode::N_FILTHY) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_filter_mask.cpp:157
#7  0x00007fef22611197 in KisLayer::masksChangeRect (this=<value optimized out>, masks=<value optimized out>, requestedRect=<value optimized out>, rectVariesFlag=@0x7feee925f8cf) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_layer.cc:330
#8  0x00007fef226116db in KisLayer::changeRect (this=0x23de4d40, rect=..., pos=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_layer.cc:492
#9  0x00007fef225f40a2 in calculateChecksum (this=<value optimized out>, updaterContext=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_base_rects_walker.h:280
#10 checksumValid (this=<value optimized out>, updaterContext=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_base_rects_walker.h:95
#11 KisSimpleUpdateQueue::processOneJob (this=<value optimized out>, updaterContext=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:85
#12 0x00007fef225f1d08 in KisAbstractUpdateQueue::processQueue (this=0x93d0040, updaterContext=...) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_abstract_update_queue.cpp:38
#13 0x00007fef2254d631 in KisUpdateScheduler::qt_metacall (this=0x938b0e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-build/krita/image/moc_kis_update_scheduler.cpp:75
#14 0x00007fef2393fb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#15 0x00007fef2254d776 in KisUpdaterContext::qt_metacall (this=0x938b0f8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7feee925fc80) at /home/ramon/Descargas/calligra/calligra-build/krita/image/moc_kis_updater_context.cpp:167
#16 0x00007fef2393fb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0x00007fef22550997 in KisUpdateJobItem::run (this=0x934a320) at /home/ramon/Descargas/calligra/calligra-build/krita/image/../../../calligra-src/krita/image/kis_updater_context.h:47
#18 0x00007fef23829d02 in ?? () from /usr/lib/libQtCore.so.4
#19 0x00007fef2383427e in ?? () from /usr/lib/libQtCore.so.4
#20 0x00007fef21a2a953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#21 0x00007fef235a9971 in start_thread () from /lib/libpthread.so.0
#22 0x00007fef1ba4892d in clone () from /lib/libc.so.6
#23 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7feea3fff700 (LWP 2289)):
#0  0x00007fef235ada9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fef23833533 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007fef2382ef05 in QMutex::lock() () from /usr/lib/libQtCore.so.4
#3  0x00007fef225f4af4 in QMutexLocker (this=0x93d0040) at /usr/include/qt4/QtCore/qmutex.h:102
#4  KisSimpleUpdateQueue::optimize (this=0x93d0040) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:179
#5  0x00007fef2254d600 in KisUpdateScheduler::qt_metacall (this=0x938b0e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-build/krita/image/moc_kis_update_scheduler.cpp:74
#6  0x00007fef2393fb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#7  0x00007fef2254d7c4 in KisUpdaterContext::qt_metacall (this=0x938b0f8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7feea3ffec80) at /home/ramon/Descargas/calligra/calligra-build/krita/image/moc_kis_updater_context.cpp:165
#8  0x00007fef2393fb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#9  0x00007fef2255098f in KisUpdateJobItem::run (this=0x9a40550) at /home/ramon/Descargas/calligra/calligra-build/krita/image/../../../calligra-src/krita/image/kis_updater_context.h:46
#10 0x00007fef23829d02 in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007fef2383427e in ?? () from /usr/lib/libQtCore.so.4
#12 0x00007fef21a2a953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#13 0x00007fef235a9971 in start_thread () from /lib/libpthread.so.0
#14 0x00007fef1ba4892d in clone () from /lib/libc.so.6
#15 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7feee8a5f700 (LWP 2290)):
#0  0x00007fef235ada9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fef23833533 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007fef2382ef05 in QMutex::lock() () from /usr/lib/libQtCore.so.4
#3  0x00007fef225f4af4 in QMutexLocker (this=0x93d0040) at /usr/include/qt4/QtCore/qmutex.h:102
#4  KisSimpleUpdateQueue::optimize (this=0x93d0040) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:179
#5  0x00007fef2254d600 in KisUpdateScheduler::qt_metacall (this=0x938b0e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-build/krita/image/moc_kis_update_scheduler.cpp:74
#6  0x00007fef2393fb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#7  0x00007fef2254d7c4 in KisUpdaterContext::qt_metacall (this=0x938b0f8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7feee8a5ec80) at /home/ramon/Descargas/calligra/calligra-build/krita/image/moc_kis_updater_context.cpp:165
#8  0x00007fef2393fb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#9  0x00007fef2255098f in KisUpdateJobItem::run (this=0x93d9980) at /home/ramon/Descargas/calligra/calligra-build/krita/image/../../../calligra-src/krita/image/kis_updater_context.h:46
#10 0x00007fef23829d02 in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007fef2383427e in ?? () from /usr/lib/libQtCore.so.4
#12 0x00007fef21a2a953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#13 0x00007fef235a9971 in start_thread () from /lib/libpthread.so.0
#14 0x00007fef1ba4892d in clone () from /lib/libc.so.6
#15 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fef240de7a0 (LWP 10148)):
#0  0x00007fef235ada9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fef23833533 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007fef2382ef05 in QMutex::lock() () from /usr/lib/libQtCore.so.4
#3  0x00007fef225f4c90 in QMutexLocker (this=0x93d0040, node=) at /usr/include/qt4/QtCore/qmutex.h:102
#4  KisSimpleUpdateQueue::tryMergeJob (this=0x93d0040, node=) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:145
#5  0x00007fef225f5012 in KisSimpleUpdateQueue::addJob (this=0x93d0040, node=) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:102
#6  0x00007fef225f3c52 in KisSimpleUpdateQueue::trySplitJob (this=0x93d0040, node=) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:137
#7  0x00007fef225f4fc1 in KisSimpleUpdateQueue::addJob (this=0x93d0040, node=) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:101
#8  0x00007fef225f68b1 in KisUpdateScheduler::updateProjection (this=0x938b0e0, node=<value optimized out>, rc=..., cropRect=...) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_update_scheduler.cpp:51
#9  0x00007fef22602539 in KisImage::updateProjection (this=<value optimized out>, node=) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_image.cc:1132
#10 0x00007fef2261a14a in KisMask::setDirty (this=<value optimized out>, rect=...) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_mask.cc:291
#11 0x00007fef2262410e in KisNode::setDirty (this=0x103fbd40) at /home/ramon/Descargas/calligra/calligra-src/krita/image/kis_node.cpp:322
#12 0x00007fef229fa5de in KisFilterDialog::updatePreview (this=0x2948a550) at /home/ramon/Descargas/calligra/calligra-src/krita/ui/dialogs/kis_dlg_filter.cpp:113
#13 0x00007fef229fb2e5 in KisFilterDialog::previewCheckBoxChange (this=0x2948a550, state=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-src/krita/ui/dialogs/kis_dlg_filter.cpp:158
#14 0x00007fef229fc10e in KisFilterDialog::qt_metacall (this=0x2948a550, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffbbf64cd0) at /home/ramon/Descargas/calligra/calligra-build/krita/ui/kis_dlg_filter.moc:87
#15 0x00007fef2393fb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#16 0x00007fef1d9eaf7e in QCheckBox::stateChanged(int) () from /usr/lib/libQtGui.so.4
#17 0x00007fef1d6e657a in ?? () from /usr/lib/libQtGui.so.4
#18 0x00007fef1d6e682c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007fef1d36304e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007fef1d30cfdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#21 0x00007fef1d31330e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#22 0x00007fef1e060586 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#23 0x00007fef23927cdc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#24 0x00007fef1d311dbe in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#25 0x00007fef1d395345 in ?? () from /usr/lib/libQtGui.so.4
#26 0x00007fef1d393c5c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#27 0x00007fef1d3c0b6f in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007fef23926a02 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0x00007fef23926dec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#30 0x00007fef2392aebb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#31 0x00007fef23c8a47d in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/ramon/Descargas/calligra/calligra-src/krita/main.cc:71
#32 0x00007fef1b980d8e in __libc_start_main () from /lib/libc.so.6
#33 0x00000000004008b9 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2011-08-27 08:53:35 UTC
Hm. No crash here, but no preview either. The backtrace suggests Dmitry should look into it.
Comment 2 pentalis 2011-10-16 23:41:20 UTC
Git commit 8a0c16f14f13aea0b8f6e64ecbe8adef5a83dfe6 by José Luis Vergara.
Committed on 17/10/2011 at 01:36.
Pushed by jlvergara into branch 'master'.

Fix pixelize filter: it was iterating over the same square instead of moving

o Also remove redundant block of statements that counted the number of pixels to iterate (probably preserved from an old code review)
o This should've been 2 commits but it's too much work to separate them now. Sorry!.

CCBUG:279491

M  +6    -18   krita/plugins/filters/pixelizefilter/kis_pixelize_filter.cpp

http://commits.kde.org/calligra/8a0c16f14f13aea0b8f6e64ecbe8adef5a83dfe6
Comment 3 Halla Rempt 2011-10-30 14:02:08 UTC
Ramon,

Can you still reproduce this crash? I think that Pentalis might have fixed it.
Comment 4 Halla Rempt 2011-10-30 14:09:40 UTC
Same as bug 285278

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