Bug 323364

Summary: OpenShiva-based filters crash on some systems.
Product: [Applications] krita Reporter: vascoalexander
Component: FiltersAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: carlossantos1986, dimula73, halla
Priority: NOR    
Version: 2.8 Pre-Alpha   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description vascoalexander 2013-08-11 07:26:25 UTC
Crash occures when choosing Filters - Other - Ray under random circumstances.

Tested with

- blank freshly opened document
- one layer (background) painted
- one layer (background) + transparent layer above
- complex document with different layers

Reproducible: Sometimes

Steps to Reproduce:
1. Open a new document
2. Try to apply Filter - Others - Ray
3.
Actual Results:  
Krita crashes during calculation of Preview


Application: Krita (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7fad25e9e7c0 (LWP 11761))]

Thread 10 (Thread 0x7facfcef3700 (LWP 11762)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fad24a2414b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fad24a20067 in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fad05bb8d24 in waitForWork (this=0x1ea5f70) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  KisTileDataPooler::run (this=0x1ea5f70) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007fad24a23bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fad140903b4 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#7  0x00007fad20f39f8e in start_thread (arg=0x7facfcef3700) at pthread_create.c:311
#8  0x00007fad23729e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 9 (Thread 0x7facfc6f2700 (LWP 11763)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fad24a2414b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fad24a20438 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fad05be67a3 in KisTileDataSwapper::waitForWork (this=<optimized out>) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007fad05be6a2a in KisTileDataSwapper::run (this=0x1ea5fa8) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007fad24a23bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fad140903b4 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#7  0x00007fad20f39f8e in start_thread (arg=0x7facfc6f2700) at pthread_create.c:311
#8  0x00007fad23729e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 8 (Thread 0x7facf9d76700 (LWP 11768)):
#0  0x00007fad23722233 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fad24b4c4f3 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fad24b51499 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fad24b51c82 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fad24b1f38f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fad24b1f618 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fad24a21410 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fad24b00edf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fad24a23bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fad140903b4 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#10 0x00007fad20f39f8e in start_thread (arg=0x7facf9d76700) at pthread_create.c:311
#11 0x00007fad23729e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 7 (Thread 0x7facfa577700 (LWP 11769)):
#0  0x00007fad23722233 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fad24b4c4f3 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fad24b51499 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fad24b51c82 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fad24b1f38f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fad24b1f618 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fad24a21410 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fad24b00edf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fad24a23bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fad140903b4 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#10 0x00007fad20f39f8e in start_thread (arg=0x7facfa577700) at pthread_create.c:311
#11 0x00007fad23729e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 6 (Thread 0x7facf8d74700 (LWP 11781)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fad24a2414b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fad243b7636 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007fad24a23bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fad140903b4 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#5  0x00007fad20f39f8e in start_thread (arg=0x7facf8d74700) at pthread_create.c:311
#6  0x00007fad23729e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7facf9575700 (LWP 11782)):
#0  0x00007fad23722233 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fad24b4c4f3 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fad24b51499 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fad24b51c82 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fad24b1f38f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fad24b1f618 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fad24a21410 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fad24b00edf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fad24a23bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fad140903b4 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#10 0x00007fad20f39f8e in start_thread (arg=0x7facf9575700) at pthread_create.c:311
#11 0x00007fad23729e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7faca37fe700 (LWP 11790)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007fad24a240a7 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fad24a1764f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fad24a23bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fad140903b4 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#5  0x00007fad20f39f8e in start_thread (arg=0x7faca37fe700) at pthread_create.c:311
#6  0x00007fad23729e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7facdb1ed700 (LWP 11791)):
[KCrash Handler]
#5  0x00007fad00484578 in llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#6  0x00007fad00484c85 in llvm::Value::~Value() () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#7  0x00007fad0044aabf in llvm::GlobalVariable::~GlobalVariable() () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#8  0x00007fad00466a37 in llvm::Module::~Module() () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#9  0x00007fad0058c6b0 in llvm::Linker::~Linker() () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#10 0x00007fad016d242a in GTLCore::ModuleData::doLink() () from /usr/lib/libGTLCore.so.0.8
#11 0x00007fad0147264e in GTLFragment::Library::compile() () from /usr/lib/libGTLFragment.so.0.8
#12 0x00007fad01bd370c in ShivaFilter::processImpl (this=0x19059d0, dev=..., size=..., config=<optimized out>, progressUpdater=<optimized out>) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/plugins/extensions/shiva/shivafilter.cpp:99
#13 0x00007fad0674c830 in KisFilterStrokeStrategy::doStrokeCallback (this=0x2bfe6c0, data=<optimized out>) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/ui/tool/strokes/kis_filter_stroke_strategy.cpp:89
#14 0x00007fad05bb1a2a in KisUpdateJobItem::run (this=0x2c57d10) at /build/buildd/krita-testing-2+git20130808+r74237-41/obj-x86_64-linux-gnu/krita/image/../../../krita/image/kis_update_job_item.h:61
#15 0x00007fad24a1755d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#16 0x00007fad24a23bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007fad140903b4 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#18 0x00007fad20f39f8e in start_thread (arg=0x7facdb1ed700) at pthread_create.c:311
#19 0x00007fad23729e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7faca3fff700 (LWP 11792)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fad24a22694 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fad24a1e8a5 in QMutex::lockInternal() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fad01bd3693 in KisGtlLocker (this=<synthetic pointer>) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/image/kis_gtl_lock.h:35
#4  ShivaFilter::processImpl (this=0x19059d0, dev=..., size=..., config=<optimized out>, progressUpdater=<optimized out>) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/plugins/extensions/shiva/shivafilter.cpp:95
#5  0x00007fad0674c830 in KisFilterStrokeStrategy::doStrokeCallback (this=0x2bfe6c0, data=<optimized out>) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/ui/tool/strokes/kis_filter_stroke_strategy.cpp:89
#6  0x00007fad05bb1a2a in KisUpdateJobItem::run (this=0x2c5d3f0) at /build/buildd/krita-testing-2+git20130808+r74237-41/obj-x86_64-linux-gnu/krita/image/../../../krita/image/kis_update_job_item.h:61
#7  0x00007fad24a1755d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fad24a23bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fad140903b4 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#10 0x00007fad20f39f8e in start_thread (arg=0x7faca3fff700) at pthread_create.c:311
#11 0x00007fad23729e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fad25e9e7c0 (LWP 11761)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fad24a2414b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fad24a16d2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fad24a187a2 in QThreadPool::waitForDone() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fad05cce0f9 in KisUpdaterContext::waitForDone (this=<optimized out>) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/image/kis_updater_context.cpp:173
#5  0x00007fad05cddca9 in KisUpdateScheduler::barrierLock (this=0x2c54cd0) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/image/kis_update_scheduler.cpp:253
#6  0x00007fad05cedcbd in KisImage::barrierLock (this=0x2c56840) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/image/kis_image.cc:353
#7  0x00007fad065cccde in KisFilterManager::showFilterDialog (this=this@entry=0x554b020, filterId=...) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/ui/kis_filter_manager.cc:165
#8  0x00007fad065cfb7d in qt_static_metacall (_a=0x7fffed54f160, _id=1, _o=0x554b020, _c=<optimized out>) at /build/buildd/krita-testing-2+git20130808+r74237-41/obj-x86_64-linux-gnu/krita/ui/kis_filter_manager.moc:54
#9  KisFilterManager::qt_static_metacall (_o=0x554b020, _c=<optimized out>, _id=1, _a=0x7fffed54f160) at /build/buildd/krita-testing-2+git20130808+r74237-41/obj-x86_64-linux-gnu/krita/ui/kis_filter_manager.moc:47
#10 0x00007fad24b350ef in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007fad24b3c135 in QSignalMapper::mapped(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007fad24b3c246 in QSignalMapper::map(QObject*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007fad24b350ef in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007fad23ec0152 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#15 0x00007fad23ec1580 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007fad242ff933 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007fad24304bf9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x00007fad25959eb0 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#19 0x00007fad23f13a89 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007fad243063db in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x00007fad23ec68ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007fad23ec9a33 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#23 0x00007fad0e5adcb8 in KoApplication::notify (this=<optimized out>, receiver=0x5553fc0, event=0x7fffed54fea0) at /build/buildd/krita-testing-2+git20130808+r74237-41/libs/main/KoApplication.cpp:556
#24 0x00007fad24b2063e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007fad23ecc933 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007fad23f41d8c in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x00007fad23f40ef1 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#28 0x00007fad23f6cb39 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#29 0x00007fad24b1f38f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#30 0x00007fad24b1f618 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007fad24b24cf6 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#32 0x00007fad0eb0b3f2 in kdemain (argc=<optimized out>, argv=<optimized out>) at /build/buildd/krita-testing-2+git20130808+r74237-41/krita/main.cc:79
#33 0x00000000004084ea in _start ()
Comment 1 Dmitry Kazakov 2013-08-11 08:39:37 UTC
Hi, Alexander!

Thank you for your report! This crash seems to happen with opengtl-based filters. We'll try to do something with it.
Comment 2 Halla Rempt 2013-08-27 19:17:52 UTC
I can confirm a crash when using opengtl-based filters, but it's different:
Thread 9 (Thread 0x7f8f377fe700 (LWP 26957)):
[KCrash Handler]
#5  0x00007f8f4124aa40 in GTLFragment::Library::isCompiled() const () from /usr/lib64/libGTLFragment.so.0.8
#6  0x00007f8f41f9dbf6 in ?? () from /usr/lib64/libOpenShiva.so.0.8
#7  0x00007f8f4124a841 in GTLFragment::Library::compile() () from /usr/lib64/libGTLFragment.so.0.8
#8  0x00007f8f421c601c in ShivaFilter::processImpl (this=this@entry=0xd664f0, dev=..., size=..., config=config@entry=0x4497660, progressUpdater=progressUpdater@entry=0x0) at /home/boud/kde/src/calligra/krita/plugins/extensions/shiva/shivafilter.cpp:99
#9  0x00007f8f59f2a916 in KisFilter::process (this=this@entry=0xd664f0, src=..., dst=..., selection=..., applyRect=..., config=config@entry=0x4497660, progressUpdater=progressUpdater@entry=0x0) at /home/boud/kde/src/calligra/krita/image/filter/kis_filter.cc:126
#10 0x00007f8f59f2d0d7 in KisFilter::process (this=0xd664f0, device=..., applyRect=..., config=0x4497660, progressUpdater=0x0) at /home/boud/kde/src/calligra/krita/image/filter/kis_filter.cc:98
#11 0x00007f8f5a59cbd6 in generatePreview (filter=0xd664f0, thumb=..., config=0x4497660) at /home/boud/kde/src/calligra/krita/ui/kis_bookmarked_filter_configurations_model.cc:59
#12 0x00007f8f5a59ed26 in QtConcurrent::StoredFunctorCall3<QImage, QImage (*)(KisFilter const*, KisSharedPtr<KisPaintDevice>, KisFilterConfiguration*), KisSharedPtr<KisFilter>, KisSharedPtr<KisPaintDevice>, KisFilterConfiguration*>::runFunctor (this=0x22ca090) at /usr/include/QtCore/qtconcurrentstoredfunctioncall.h:673
#13 0x00007f8f5a5a1582 in QtConcurrent::RunFunctionTask<QImage>::run (this=0x22ca090) at /usr/include/QtCore/qtconcurrentrunbase.h:106
#14 0x00007f8f5ada2c9d in ?? () from /usr/lib64/libQtCore.so.4
#15 0x00007f8f5adaf0cc in ?? () from /usr/lib64/libQtCore.so.4
#16 0x00007f8f5ab18e0f in start_thread () from /lib64/libpthread.so.0
#17 0x00007f8f522787dd in clone () from /lib64/libc.so.6


Probably because OpenSUSE miscompiled llvm, though. Can you confirm Vascoalexander's crash?
Comment 3 vascoalexander 2013-08-28 06:20:11 UTC
After updating the Krita Test Build this morning i have done some testing on the Filters again.

What i have done:

- Open Krita, New Document Design-Template 4:3
- Make one Stroke
- Apply Filter (tested Mosaic/Ray/Bullify/Anti-Bullify/Tunnel2)

I have repeated this ~50 Times with open-GL turned on and with open-GL turned off. Both settings tested with applying the stroke on a single Layer (Default Background) and with a second transparent Layer.

Result:

Layers seem to have no influence
OpenGl On crashes > 90%
OpenGl Off crashes ~20%

Krita closes mostly instantly leaving me without a report from the Crashhandler. From all Tests i get these two Reports:

Application: Krita (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb73ffd67c0 (LWP 5894))]

Thread 1 (Thread 0x7fb73ffd67c0 (LWP 5894)):
#0  0x00007fb72e1bd5c9 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#1  0x00007fb72e1bd5f3 in ?? () from /usr/lib/nvidia-310/libGL.so.1
#2  0x00007fb72bfbf4a8 in ?? () from /usr/lib/nvidia-310/libnvidia-glcore.so.310.44
#3  0x00007fb72bfbf596 in ?? () from /usr/lib/nvidia-310/libnvidia-glcore.so.310.44
#4  0x00007fb72bfc0103 in ?? () from /usr/lib/nvidia-310/libnvidia-glcore.so.310.44
#5  0x00007fb72bf5100d in ?? () from /usr/lib/nvidia-310/libnvidia-glcore.so.310.44
#6  0x00007fb72bed9058 in ?? () from /usr/lib/nvidia-310/libnvidia-glcore.so.310.44
#7  0x00007fb72beb760d in ?? () from /usr/lib/nvidia-310/libnvidia-glcore.so.310.44
#8  0x00007fb72beb74e2 in ?? () from /usr/lib/nvidia-310/libnvidia-glcore.so.310.44
#9  0x00007fb72e19f7dd in ?? () from /usr/lib/nvidia-310/libGL.so.1
#10 0x00007fb73fe04f67 in _dl_fini () at dl-fini.c:258
#11 0x00007fb73d7a4121 in __run_exit_handlers (status=1, listp=0x7fb73db296a8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77
#12 0x00007fb73d7a41a5 in __GI_exit (status=<optimized out>) at exit.c:99
#13 0x00007fb73e068348 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:782
#14 0x00007fb73f9d6f38 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#15 0x00007fb73f4bc5be in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#16 0x00007fb73f4ba5cc in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#17 0x00007fb73f4b5d5d in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#18 0x00007fb73e1fb655 in syncX (this=0x38a9120) at painting/qwindowsurface_raster.cpp:134
#19 QRasterWindowSurface::syncX (this=0x38a9120) at painting/qwindowsurface_raster.cpp:130
#20 0x00007fb73e1fba81 in QRasterWindowSurface::beginPaint (this=0x38a9120, rgn=...) at painting/qwindowsurface_raster.cpp:143
#21 0x00007fb73e215ca8 in QWidgetBackingStore::sync (this=0x25edfa0) at painting/qbackingstore.cpp:1304
#22 0x00007fb73e03f060 in QWidgetPrivate::syncBackingStore (this=this@entry=0x38b28f0) at kernel/qwidget.cpp:1896
#23 0x00007fb73e04bee4 in QWidget::event (this=this@entry=0x387b3c0, event=event@entry=0x3e01b90) at kernel/qwidget.cpp:8679
#24 0x00007fb73e41783b in QMainWindow::event (this=0x387b3c0, event=0x3e01b90) at widgets/qmainwindow.cpp:1478
#25 0x00007fb73facb218 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#26 0x00007fb73dffe8ec in QApplicationPrivate::notify_helper (this=this@entry=0x28110c0, receiver=receiver@entry=0x387b3c0, e=e@entry=0x3e01b90) at kernel/qapplication.cpp:4567
#27 0x00007fb73e00125b in QApplication::notify (this=0x7fffcafec920, receiver=receiver@entry=0x387b3c0, e=e@entry=0x3e01b90) at kernel/qapplication.cpp:4428
#28 0x00007fb7286e4b28 in KoApplication::notify (this=<optimized out>, receiver=0x387b3c0, event=0x3e01b90) at /build/buildd/krita-testing-2+git20130827+r74346-40/libs/main/KoApplication.cpp:556
#29 0x00007fb73ec5863e in QCoreApplication::notifyInternal (this=0x7fffcafec920, receiver=receiver@entry=0x387b3c0, event=event@entry=0x3e01b90) at kernel/qcoreapplication.cpp:946
#30 0x00007fb73ec5c171 in sendEvent (event=0x3e01b90, receiver=0x387b3c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#31 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x2589150) at kernel/qcoreapplication.cpp:1570
#32 0x00007fb73ec5c4a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#33 0x00007fb73e0a49fc in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#34 QEventDispatcherX11::processEvents (this=0x258b670, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#35 0x00007fb73ec5738f in QEventLoop::processEvents (this=this@entry=0x7fffcafec870, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007fb73ec57618 in QEventLoop::exec (this=this@entry=0x7fffcafec870, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007fb73ec5ccf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#38 0x00007fb73dffcffc in QApplication::exec () at kernel/qapplication.cpp:3828
#39 0x00007fb728c413f2 in kdemain (argc=<optimized out>, argv=<optimized out>) at /build/buildd/krita-testing-2+git20130827+r74346-40/krita/main.cc:79
#40 0x00000000004084ea in _start ()

__________________________________________________________________________________________________________

Application: Krita (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
[Current thread is 1 (Thread 0x7fb73ffd67c0 (LWP 6132))]

Thread 1 (Thread 0x7fb73ffd67c0 (LWP 6132)):
#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007fb73b074197 in _L_lock_1035 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007fb73b074029 in __GI___pthread_mutex_lock (mutex=0x7fb6c06471b0) at pthread_mutex_lock.c:85
#3  0x00007fb71aa41cfc in llvm::sys::MutexImpl::acquire() () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#4  0x00007fb71a5ecf6c in llvm::ExecutionEngine::clearGlobalMappingsFromModule(llvm::Module*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#5  0x00007fb71a5ed043 in llvm::ExecutionEngine::removeModule(llvm::Module*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#6  0x00007fb71a69e384 in llvm::JIT::removeModule(llvm::Module*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#7  0x00007fb71b818a76 in GTLCore::VirtualMachine::unregisterModule(llvm::Module*) () from /usr/lib/libGTLCore.so.0.8
#8  0x00007fb71b5aa34b in GTLFragment::Library::cleanup() () from /usr/lib/libGTLFragment.so.0.8
#9  0x00007fb71baabf0d in OpenShiva::Library::~Library() () from /usr/lib/libOpenShiva.so.0.8
#10 0x00007fb71baac381 in OpenShiva::LibrariesManager::~LibrariesManager() () from /usr/lib/libOpenShiva.so.0.8
#11 0x00007fb71baac449 in OpenShiva::LibrariesManager::~LibrariesManager() () from /usr/lib/libOpenShiva.so.0.8
#12 0x00007fb71baac1f2 in ?? () from /usr/lib/libOpenShiva.so.0.8
#13 0x00007fb73d7a4121 in __run_exit_handlers (status=1, listp=0x7fb73db296a8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77
#14 0x00007fb73d7a41a5 in __GI_exit (status=<optimized out>) at exit.c:99
#15 0x00007fb73e068348 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:782
#16 0x00007fb73f9d6f38 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#17 0x00007fb73f4bc5be in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#18 0x00007fb73f4ba5cc in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#19 0x00007fb73f4b5d5d in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#20 0x00007fb73e1fb655 in syncX (this=0x2a11fd0) at painting/qwindowsurface_raster.cpp:134
#21 QRasterWindowSurface::syncX (this=0x2a11fd0) at painting/qwindowsurface_raster.cpp:130
#22 0x00007fb73e1fba81 in QRasterWindowSurface::beginPaint (this=0x2a11fd0, rgn=...) at painting/qwindowsurface_raster.cpp:143
#23 0x00007fb73e215ca8 in QWidgetBackingStore::sync (this=0x39259a0) at painting/qbackingstore.cpp:1304
#24 0x00007fb73e03f060 in QWidgetPrivate::syncBackingStore (this=this@entry=0x38b3210) at kernel/qwidget.cpp:1896
#25 0x00007fb73e04bee4 in QWidget::event (this=this@entry=0x387b920, event=event@entry=0x2cb3d40) at kernel/qwidget.cpp:8679
#26 0x00007fb73e41783b in QMainWindow::event (this=0x387b920, event=0x2cb3d40) at widgets/qmainwindow.cpp:1478
#27 0x00007fb73facb218 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#28 0x00007fb73dffe8ec in QApplicationPrivate::notify_helper (this=this@entry=0x2811080, receiver=receiver@entry=0x387b920, e=e@entry=0x2cb3d40) at kernel/qapplication.cpp:4567
#29 0x00007fb73e00125b in QApplication::notify (this=0x7fffcafec920, receiver=receiver@entry=0x387b920, e=e@entry=0x2cb3d40) at kernel/qapplication.cpp:4428
#30 0x00007fb7286e4b28 in KoApplication::notify (this=<optimized out>, receiver=0x387b920, event=0x2cb3d40) at /build/buildd/krita-testing-2+git20130827+r74346-40/libs/main/KoApplication.cpp:556
#31 0x00007fb73ec5863e in QCoreApplication::notifyInternal (this=0x7fffcafec920, receiver=receiver@entry=0x387b920, event=event@entry=0x2cb3d40) at kernel/qcoreapplication.cpp:946
#32 0x00007fb73ec5c171 in sendEvent (event=0x2cb3d40, receiver=0x387b920) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#33 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x2589150) at kernel/qcoreapplication.cpp:1570
#34 0x00007fb73ec5c4a3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#35 0x00007fb73e0a49fc in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#36 QEventDispatcherX11::processEvents (this=0x258b670, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#37 0x00007fb73ec5738f in QEventLoop::processEvents (this=this@entry=0x7fffcafec870, flags=...) at kernel/qeventloop.cpp:149
#38 0x00007fb73ec57618 in QEventLoop::exec (this=this@entry=0x7fffcafec870, flags=...) at kernel/qeventloop.cpp:204
#39 0x00007fb73ec5ccf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#40 0x00007fb73dffcffc in QApplication::exec () at kernel/qapplication.cpp:3828
#41 0x00007fb728c413f2 in kdemain (argc=<optimized out>, argv=<optimized out>) at /build/buildd/krita-testing-2+git20130827+r74346-40/krita/main.cc:79
#42 0x00000000004084ea in _start ()
Comment 4 Halla Rempt 2013-11-04 14:50:10 UTC
*** Bug 324416 has been marked as a duplicate of this bug. ***
Comment 5 Halla Rempt 2013-11-04 14:52:20 UTC
Interestingly enough, the opengtl filters work for me on my kubuntu 13.10 laptop with intel graphics card.
Comment 6 Cyrille Berger 2013-12-01 18:05:15 UTC
Git commit 7db029a1f8902873b5c6a76c2d72941290807c6a by Cyrille Berger.
Committed on 01/12/2013 at 15:48.
Pushed by berger into branch 'master'.

remove shiva plugin and dependency on opengtl stuff

CCMAIL:kimageshop@kde.org

closing related bugs as no more valids:
Related: bug 289776, bug 288722, bug 289191

D  +0    -20   cmake/modules/FindOpenCTL.cmake
D  +0    -19   cmake/modules/FindOpenShiva.cmake
D  +0    -19   cmake/modules/FindQtShiva.cmake
M  +0    -20   krita/CMakeLists.txt
M  +0    -10   krita/plugins/extensions/CMakeLists.txt
D  +0    -44   krita/plugins/extensions/shiva/CMakeLists.txt
D  +0    -176  krita/plugins/extensions/shiva/PaintDeviceImage.cpp
D  +0    -58   krita/plugins/extensions/shiva/PaintDeviceImage.h
D  +0    -111  krita/plugins/extensions/shiva/QVariantValue.cpp
D  +0    -28   krita/plugins/extensions/shiva/QVariantValue.h
D  +0    -65   krita/plugins/extensions/shiva/ShivaGeneratorConfigWidget.cpp
D  +0    -42   krita/plugins/extensions/shiva/ShivaGeneratorConfigWidget.h
D  +0    -38   krita/plugins/extensions/shiva/UpdaterProgressReport.cpp
D  +0    -37   krita/plugins/extensions/shiva/UpdaterProgressReport.h
D  +0    -4    krita/plugins/extensions/shiva/collections/CMakeLists.txt
D  +0    -33   krita/plugins/extensions/shiva/collections/filters/AntiBullify.shiva
D  +0    -34   krita/plugins/extensions/shiva/collections/filters/Bullify.shiva
D  +0    -2    krita/plugins/extensions/shiva/collections/filters/CMakeLists.txt
D  +0    -48   krita/plugins/extensions/shiva/collections/filters/Caleidoscope.shiva
D  +0    -30   krita/plugins/extensions/shiva/collections/filters/CentralAbsorbtion.shiva
D  +0    -22   krita/plugins/extensions/shiva/collections/filters/Contraction.shiva
D  +0    -463  krita/plugins/extensions/shiva/collections/filters/Droste.shiva
D  +0    -30   krita/plugins/extensions/shiva/collections/filters/Expansion.shiva
D  +0    -73   krita/plugins/extensions/shiva/collections/filters/Hypno.shiva
D  +0    -58   krita/plugins/extensions/shiva/collections/filters/LensCorrection.shiva
D  +0    -23   krita/plugins/extensions/shiva/collections/filters/MirrorImpose.shiva
D  +0    -27   krita/plugins/extensions/shiva/collections/filters/Mosaic.shiva
D  +0    -70   krita/plugins/extensions/shiva/collections/filters/Planes.shiva
D  +0    -70   krita/plugins/extensions/shiva/collections/filters/Ray.shiva
D  +0    -70   krita/plugins/extensions/shiva/collections/filters/Ray2.shiva
D  +0    -35   krita/plugins/extensions/shiva/collections/filters/Ripples.shiva
D  +0    -44   krita/plugins/extensions/shiva/collections/filters/RotativeBlur.shiva
D  +0    -47   krita/plugins/extensions/shiva/collections/filters/Roundify.shiva
D  +0    -45   krita/plugins/extensions/shiva/collections/filters/Sea.shiva
D  +0    -51   krita/plugins/extensions/shiva/collections/filters/Seamlesser.shiva
D  +0    -48   krita/plugins/extensions/shiva/collections/filters/Sectorize.shiva
D  +0    -34   krita/plugins/extensions/shiva/collections/filters/Slices.shiva
D  +0    -70   krita/plugins/extensions/shiva/collections/filters/Sphere.shiva
D  +0    -70   krita/plugins/extensions/shiva/collections/filters/Star.shiva
D  +0    -115  krita/plugins/extensions/shiva/collections/filters/StereographicProjection.shiva
D  +0    -70   krita/plugins/extensions/shiva/collections/filters/Tunnel.shiva
D  +0    -69   krita/plugins/extensions/shiva/collections/filters/Tunnel2.shiva
D  +0    -43   krita/plugins/extensions/shiva/collections/filters/ZigZag.shiva
D  +0    -40   krita/plugins/extensions/shiva/collections/filters/oilify.shiva
D  +0    -2    krita/plugins/extensions/shiva/collections/generators/CMakeLists.txt
D  +0    -47   krita/plugins/extensions/shiva/collections/generators/CheckerBoard.shiva
D  +0    -54   krita/plugins/extensions/shiva/collections/generators/ConcentricCircles.shiva
D  +0    -68   krita/plugins/extensions/shiva/collections/generators/Disco.shiva
D  +0    -809  krita/plugins/extensions/shiva/collections/generators/FractalExplorer.shiva
D  +0    -80   krita/plugins/extensions/shiva/collections/generators/Metaball.shiva
D  +0    -42   krita/plugins/extensions/shiva/collections/generators/Moire.shiva
D  +0    -113  krita/plugins/extensions/shiva/collections/generators/PerlinNoise.shiva
D  +0    -76   krita/plugins/extensions/shiva/collections/generators/Plasma.shiva
D  +0    -29   krita/plugins/extensions/shiva/collections/generators/RadialGradient.shiva
D  +0    -63   krita/plugins/extensions/shiva/collections/generators/Singleball.shiva
D  +0    -80   krita/plugins/extensions/shiva/collections/generators/Something.shiva
D  +0    -56   krita/plugins/extensions/shiva/collections/generators/SunRay.shiva
D  +0    -92   krita/plugins/extensions/shiva/collections/generators/SuperNova.shiva
D  +0    -63   krita/plugins/extensions/shiva/kritashivafilters.desktop
D  +0    -63   krita/plugins/extensions/shiva/kritashivagenerators.desktop
D  +0    -111  krita/plugins/extensions/shiva/shivafilter.cpp
D  +0    -45   krita/plugins/extensions/shiva/shivafilter.h
D  +0    -69   krita/plugins/extensions/shiva/shivafiltersplugin.cpp
D  +0    -41   krita/plugins/extensions/shiva/shivafiltersplugin.h
D  +0    -108  krita/plugins/extensions/shiva/shivagenerator.cpp
D  +0    -49   krita/plugins/extensions/shiva/shivagenerator.h
D  +0    -70   krita/plugins/extensions/shiva/shivageneratorsplugin.cpp
D  +0    -40   krita/plugins/extensions/shiva/shivageneratorsplugin.h

http://commits.kde.org/calligra/7db029a1f8902873b5c6a76c2d72941290807c6a