Bug 388272 - Crash when clicking on an empty layer with the lazy brush tool
Summary: Crash when clicking on an empty layer with the lazy brush tool
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-12-27 13:31 UTC by Halla Rempt
Modified: 2018-01-04 17:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Halla Rempt 2017-12-27 13:31:15 UTC
Application: krita (4.0.0-pre-alpha (git 9dd5c1a))

Qt Version: 5.9.2
Frameworks Version: 5.40.0
Operating System: Linux 4.4.92-18.36-default x86_64
Distribution: "openSUSE Leap 42.2"

-- Information about the crash:
This crash happened when clicking on the canvas after activating the lazy brush tool. The image was empty.

-- Backtrace:
Application: Krita (krita), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fcc558d0940 (LWP 16257))]

Thread 23 (Thread 0x7fcba5bfc700 (LWP 16297)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 22 (Thread 0x7fcba63fd700 (LWP 16296)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 21 (Thread 0x7fcba6bfe700 (LWP 16295)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 20 (Thread 0x7fcba73ff700 (LWP 16294)):
[KCrash Handler]
#6  0x00007fcc498958d7 in raise () at /lib64/libc.so.6
#7  0x00007fcc49896caa in abort () at /lib64/libc.so.6
#8  0x00007fcc4a53e56e in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007fcc4a539dc6 in  () at /usr/lib64/libQt5Core.so.5
#10 0x00007fcc537fb136 in KisHLineIterator2::KisHLineIterator2(KisDataManager*, int, int, int, int, int, bool, KisIteratorCompleteListener*) (this=0x7fcbb000f820, dataManager=0x7fcbb0533e20, x=0, y=0, w=0, offsetX=0, offsetY=0, writable=true, competionListener=0x7fcbb046c020, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /home/boud/dev/krita/libs/image/tiles3/kis_hline_iterator.cpp:31
#11 0x00007fcc53a0d7f8 in KisPaintDevice::Private::KisPaintDeviceStrategy::createHLineIteratorNG(KisDataManager*, int, int, int, int, int) (this=0x7fcbb0003880, dataManager=0x7fcbb0533e20, x=0, y=0, w=0, offsetX=0, offsetY=0) at /home/boud/dev/krita/libs/image/kis_paint_device_strategies.h:92
#12 0x00007fcc53a047b3 in KisPaintDevice::createHLineIteratorNG(int, int, int) (this=0x7fcbb0007bc0, x=0, y=0, w=0) at /home/boud/dev/krita/libs/image/kis_paint_device.cc:1710
#13 0x00007fcc5381f0aa in DevicePolicy::createIterator(QRect const&) (this=0x7fcba73fe850, rect=...) at /home/boud/dev/krita/libs/image/kis_sequential_iterator.h:40
#14 0x00007fcc53825172 in WritableIteratorPolicy<DevicePolicy>::WritableIteratorPolicy(DevicePolicy, QRect const&) (this=0x7fcba73fe890, source=..., rect=...) at /home/boud/dev/krita/libs/image/kis_sequential_iterator.h:83
#15 0x00007fcc53820b65 in KisSequentialIteratorBase<WritableIteratorPolicy<DevicePolicy>, DevicePolicy>::KisSequentialIteratorBase(DevicePolicy, QRect const&) (this=0x7fcba73fe890, source=..., rect=...) at /home/boud/dev/krita/libs/image/kis_sequential_iterator.h:140
#16 0x00007fcc538b8090 in KisWatershedWorker::Private::initializeQueueFromGroupMap(QRect const&) (this=0x7fcbb048f010, rc=...) at /home/boud/dev/krita/libs/image/lazybrush/KisWatershedWorker.cpp:385
#17 0x00007fcc538b7bc0 in KisWatershedWorker::run(double) (this=0x7fcba73fead0, cleanUpAmount=0.69999999999999996) at /home/boud/dev/krita/libs/image/lazybrush/KisWatershedWorker.cpp:327
#18 0x00007fcc538da747 in KisColorizeStrokeStrategy::__lambda13::operator()() const (__closure=0x7fcba845b130) at /home/boud/dev/krita/libs/image/lazybrush/kis_colorize_stroke_strategy.cpp:260
#19 0x00007fcc538dd9d9 in std::_Function_handler<void(), KisColorizeStrokeStrategy::initStrokeCallback()::__lambda13>::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/4.8/functional:2071
#20 0x00007fcc54eee3be in std::function<void ()>::operator()() const (this=0x7fcba807e7a8) at /usr/include/c++/4.8/functional:2471
#21 0x00007fcc53950c42 in KisRunnableStrokeJobData::run() (this=0x7fcba807e790) at /home/boud/dev/krita/libs/image/KisRunnableStrokeJobData.cpp:46
#22 0x00007fcc5394f389 in KisRunnableBasedStrokeStrategy::doStrokeCallback(KisStrokeJobData*) (this=0x2410c20, data=0x7fcba807e790) at /home/boud/dev/krita/libs/image/KisRunnableBasedStrokeStrategy.cpp:73
#23 0x00007fcc5394d026 in SimpleStrokeJobStrategy::run(KisStrokeJobData*) (this=0x9156760, data=0x7fcba807e790) at /home/boud/dev/krita/libs/image/kis_simple_stroke_strategy.cpp:51
#24 0x00007fcc539549be in KisStrokeJob::run() (this=0x7fcba80783b0) at /home/boud/dev/krita/libs/image/kis_stroke_job.h:44
#25 0x00007fcc53b1f773 in KisUpdateJobItem::run() (this=0xbeddea0) at /home/boud/dev/b-krita/libs/image/../../../krita/libs/image/kis_update_job_item.h:90
#26 0x00007fcc4a54f54e in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#27 0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#28 0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#29 0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 19 (Thread 0x7fcbd64a6700 (LWP 16293)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 18 (Thread 0x7fcbd56b7700 (LWP 16292)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 17 (Thread 0x7fcbd4eb6700 (LWP 16291)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 16 (Thread 0x7fcbbffff700 (LWP 16290)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 15 (Thread 0x7fcbd6d4e700 (LWP 16272)):
#0  0x00007fcc45b4e7d4 in g_mutex_unlock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007fcc45b0c950 in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fcc45b0d230 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fcc45b0d42c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007fcc4a75cddb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fcc4a70a01b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007fcc4a54deaa in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#7  0x00007fcc35b61ed2 in QQuickPixmapReader::run() () at /usr/lib64/libQt5Quick.so.5
#8  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#9  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#10 0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 14 (Thread 0x7fcbd86a8700 (LWP 16271)):
#0  0x00007fcc4993e28d in read () at /lib64/libc.so.6
#1  0x00007fcc44e26073 in  () at /usr/lib64/tls/libnvidia-tls.so.384.98
#2  0x00007fcc45b4d670 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fcc45b0ce49 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#4  0x00007fcc45b0d2a8 in  () at /usr/lib64/libglib-2.0.so.0
#5  0x00007fcc45b0d42c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#6  0x00007fcc4a75cddb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007fcc4a70a01b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#8  0x00007fcc4a54deaa in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#9  0x00007fcc35706468 in QQmlThreadPrivate::run() () at /usr/lib64/libQt5Qml.so.5
#10 0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#11 0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#12 0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 13 (Thread 0x7fcbf4eed700 (LWP 16270)):
#0  0x00007fcc4895b0bf in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a5533fb in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4b846019 in QFileInfoGatherer::run() () at /usr/lib64/libQt5Widgets.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 12 (Thread 0x7fcbf46ec700 (LWP 16269)):
#0  0x00007fcc4991b05d in nanosleep () at /lib64/libc.so.6
#1  0x00007fcc4a75c83d in qt_nanosleep(timespec) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a5519f5 in QThread::msleep(unsigned long) () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc53806985 in KisTileDataSwapper::run() (this=0x7fcc53ec0a80 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>) at /home/boud/dev/krita/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:97
#4  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7fcc1b7fe700 (LWP 16267)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7fcc20a0c700 (LWP 16266)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7fcc2121d700 (LWP 16265)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7fcc21a36700 (LWP 16264)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7fcc1bfff700 (LWP 16263)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7fcc22237700 (LWP 16262)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7fcc22a38700 (LWP 16261)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7fcc23239700 (LWP 16260)):
#0  0x00007fcc4895b468 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcc4a553348 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib64/libQt5Core.so.5
#2  0x00007fcc4a54f6d0 in QThreadPoolThread::run() () at /usr/lib64/libQt5Core.so.5
#3  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#5  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fcc323fc700 (LWP 16259)):
#0  0x00007fcc4994220d in poll () at /lib64/libc.so.6
#1  0x00007fcc45b0d314 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fcc45b0d42c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fcc4a75cddb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007fcc4a70a01b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fcc4a54deaa in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007fcc4dee27e5 in QDBusConnectionManager::run() () at /usr/lib64/libQt5DBus.so.5
#7  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#8  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fcc3cc20700 (LWP 16258)):
#0  0x00007fcc4994220d in poll () at /lib64/libc.so.6
#1  0x00007fcc4daa63e2 in  () at /usr/lib64/libxcb.so.1
#2  0x00007fcc4daa7fcf in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007fcc3eb43969 in QXcbEventReader::run() () at /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007fcc4a5525cd in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#5  0x00007fcc48956744 in start_thread () at /lib64/libpthread.so.0
#6  0x00007fcc4994aaad in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fcc558d0940 (LWP 16257)):
#0  0x00007fcc49946659 in syscall () at /lib64/libc.so.6
#1  0x00007fcc46ab3495 in  () at /usr/X11R6/lib64/libGL.so.1
#2  0x00007fcc46ab3193 in  () at /usr/X11R6/lib64/libGL.so.1
#3  0x00007fcc44154afb in  () at /usr/lib64/libnvidia-glcore.so.384.98
#4  0x00007fcc441556b9 in  () at /usr/lib64/libnvidia-glcore.so.384.98
#5  0x00007fcc440aec99 in  () at /usr/lib64/libnvidia-glcore.so.384.98
#6  0x00007fcc44117643 in  () at /usr/lib64/libnvidia-glcore.so.384.98
#7  0x00007fcc43c4aeb0 in  () at /usr/lib64/libnvidia-glcore.so.384.98
#8  0x00007fcc43daa0a3 in  () at /usr/lib64/libnvidia-glcore.so.384.98
#9  0x00007fcc43d803c4 in  () at /usr/lib64/libnvidia-glcore.so.384.98
#10 0x00007fcc43d81c87 in  () at /usr/lib64/libnvidia-glcore.so.384.98
#11 0x00007fcc43d9a964 in  () at /usr/lib64/libnvidia-glcore.so.384.98
#12 0x00007fcc54ea4aa3 in QOpenGLFunctions::glTexSubImage2D(unsigned int, int, int, int, int, int, unsigned int, unsigned int, void const*) (this=0xbdea490, target=3553, level=0, xoffset=16, yoffset=0, width=240, height=1, format=32993, type=5121, pixels=0x7fcbbeb7e010) at /usr/include/qt5/QtGui/qopenglfunctions.h:1074
#13 0x00007fcc54ea426f in KisTextureTile::update(KisTextureTileUpdateInfo const&) (this=0xc37fee0, updateInfo=...) at /home/boud/dev/krita/libs/ui/opengl/kis_texture_tile.cpp:293
#14 0x00007fcc54e9c8fe in KisOpenGLImageTextures::recalculateCache(KisSharedPtr<KisUpdateInfo>) (this=0xbf17860, info=...) at /home/boud/dev/krita/libs/ui/opengl/kis_opengl_image_textures.cpp:388
#15 0x00007fcc54e93475 in KisOpenGLCanvas2::updateCanvasProjection(KisSharedPtr<KisUpdateInfo>) (this=0xbed33c0, info=...) at /home/boud/dev/krita/libs/ui/opengl/kis_opengl_canvas2.cpp:879
#16 0x00007fcc54c48e15 in KisCanvas2::updateCanvasProjection() (this=0xa393e80) at /home/boud/dev/krita/libs/ui/canvas/kis_canvas2.cpp:706
#17 0x00007fcc5514e968 in KisCanvas2::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0xa393e80, _c=QMetaObject::InvokeMetaMethod, _id=21, _a=0x7fcbb8009980) at /home/boud/dev/b-krita/libs/ui/moc_kis_canvas2.cpp:203
#18 0x00007fcc4a736b26 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#19 0x00007fcc4b647cbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#20 0x00007fcc4b64ea10 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#21 0x00007fcc5506b9bd in KisApplication::notify(QObject*, QEvent*) (this=0x7fffa259ae50, receiver=0xa393e80, event=0x7fcbb812a980) at /home/boud/dev/krita/libs/ui/KisApplication.cpp:599
#22 0x00007fcc4a70bd25 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#23 0x00007fcc4a70e303 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#24 0x00007fcc4a75d593 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /usr/lib64/libQt5Core.so.5
#25 0x00007fcc45b0d134 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#26 0x00007fcc45b0d388 in  () at /usr/lib64/libglib-2.0.so.0
#27 0x00007fcc45b0d42c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#28 0x00007fcc4a75cdbc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#29 0x00007fcc4a70a01b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#30 0x00007fcc4a7125e4 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#31 0x000000000040a186 in main(int, char**) (argc=1, argv=0x7fffa259b758) at /home/boud/dev/krita/krita/main.cc:306

Reported using DrKonqi
Comment 1 Halla Rempt 2018-01-02 15:02:39 UTC
Fixed by now.
Comment 2 Dmitry Kazakov 2018-01-04 17:20:50 UTC
Git commit f352cc1d4367542ad55d61636927e90c56e92b7d by Dmitry Kazakov.
Committed on 04/01/2018 at 17:20.
Pushed by dkazakov into branch 'master'.

Refactor KisSequentialIterator to use java-style iteration

This patch touches quite a lot of stuff throughout the entire Krita,
please report any crashes you get because of that!

Technical details:

The sequential iterator (alongside the hline and vline) iterators had
an inherent problem: when called with an empty rect it just crashed
with SIGSEGV (hlive and vline iterators just have a hack to read/write
at least one pixel when called with an empty rect). This problem happens
because of the structure of API we use: we call nextPixel() **after** the
first cycle of iteration, that is we will read/write at least one pixel
even when the requested rect is empty(!).

Now the iterator inserts one "virtual" pixel before every iteration that
allows the user to call nextPixel() **before** the the first iteration
and stop the cycle in case the check fails.

See example code snippets in kis_sequential_iterator.h

CC:kimageshop@kde.org

M  +2    -2    benchmarks/kis_bcontrast_benchmark.cpp
M  +2    -2    benchmarks/kis_blur_benchmark.cpp
M  +2    -2    benchmarks/kis_level_filter_benchmark.cpp
M  +2    -2    libs/global/kis_acs_pixel_cache_renderer.h
M  +4    -4    libs/image/filter/kis_color_transformation_filter.cc
M  +6    -6    libs/image/kis_edge_detection_kernel.cpp
M  +2    -2    libs/image/kis_gradient_painter.cc
M  +2    -2    libs/image/kis_grid_interpolation_tools.h
M  +7    -5    libs/image/kis_histogram.cc
M  +4    -4    libs/image/kis_marker_painter.cpp
M  +6    -5    libs/image/kis_paint_device.cc
M  +8    -6    libs/image/kis_paint_device_data.h
M  +6    -6    libs/image/kis_painter.cc
M  +6    -6    libs/image/kis_pixel_selection.cpp
M  +65   -12   libs/image/kis_sequential_iterator.h
M  +4    -4    libs/image/krita_utils.cpp
M  +6    -6    libs/image/layerstyles/kis_layer_style_filter_environment.cpp
M  +4    -4    libs/image/layerstyles/kis_ls_bevel_emboss_filter.cpp
M  +4    -6    libs/image/layerstyles/kis_ls_satin_filter.cpp
M  +22   -22   libs/image/layerstyles/kis_ls_utils.cpp
M  +26   -24   libs/image/lazybrush/KisWatershedWorker.cpp
M  +6    -6    libs/image/lazybrush/kis_lazy_fill_tools.cpp
M  +2    -2    libs/image/lazybrush/kis_multiway_cut.cpp
M  +14   -14   libs/image/tests/kis_iterator_benchmark.cpp
M  +53   -8    libs/image/tests/kis_iterators_ng_test.cpp
M  +2    -2    libs/image/tests/kis_lazy_brush_test.cpp
M  +2    -2    libs/image/tests/kis_paint_device_test.cpp
M  +2    -2    libs/image/tests/kis_paint_layer_test.cpp
M  +4    -4    libs/image/tests/kis_painter_test.cpp
M  +2    -2    libs/image/tests/kis_projection_test.cpp
M  +18   -18   libs/libkis/Channel.cpp
M  +2    -2    libs/ui/canvas/kis_display_color_converter.cpp
M  +2    -2    libs/ui/flake/kis_shape_selection.cpp
M  +4    -4    libs/ui/kis_node_manager.cpp
M  +2    -2    libs/ui/kis_png_converter.cpp
M  +2    -2    libs/ui/tool/kis_tool_utils.cpp
M  +1    -1    plugins/dockers/channeldocker/channelmodel.cpp
M  +8    -6    plugins/dockers/histogram/histogramdockerwidget.cpp
M  +2    -2    plugins/filters/colors/kis_color_to_alpha.cpp
M  +4    -4    plugins/filters/colors/kis_minmax_filters.cpp
M  +6    -4    plugins/filters/colorsfilters/colorsfilters.cpp
M  +2    -2    plugins/filters/embossfilter/kis_emboss_filter.cpp
M  +2    -2    plugins/filters/fastcolortransfer/fastcolortransfer.cpp
M  +2    -2    plugins/filters/fastcolortransfer/kis_wdg_fastcolortransfer.cpp
M  +2    -2    plugins/filters/gradientmap/krita_filter_gradient_map.cpp
M  +2    -2    plugins/filters/noisefilter/noisefilter.cpp
M  +2    -2    plugins/filters/oilpaintfilter/kis_oilpaint_filter.cpp
M  +4    -4    plugins/filters/pixelizefilter/kis_pixelize_filter.cpp
M  +2    -2    plugins/filters/randompickfilter/randompickfilter.cpp
M  +2    -2    plugins/filters/threshold/threshold.cpp
M  +2    -2    plugins/filters/wavefilter/wavefilter.cpp
M  +2    -2    plugins/impex/csv/csv_saver.cpp
M  +2    -2    plugins/impex/heightmap/kis_heightmap_export.cpp
M  +2    -2    plugins/impex/psd/psd_pixel_utils.cpp
M  +2    -2    plugins/paintops/defaultpaintops/duplicate/kis_duplicateop.cpp
M  +2    -3    plugins/paintops/libpaintop/kis_bidirectional_mixing_option.cpp

https://commits.kde.org/krita/f352cc1d4367542ad55d61636927e90c56e92b7d