Bug 423572 - Krita crash sometime when opening brush settings
Summary: Krita crash sometime when opening brush settings
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.3.0
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-27 08:22 UTC by Defresne Thierry
Modified: 2020-07-02 13:36 UTC (History)
0 users

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


Attachments
patch (562 bytes, patch)
2020-06-27 12:02 UTC, Defresne Thierry
Details
masking brush overflow fix (2.63 KB, patch)
2020-06-28 12:30 UTC, Defresne Thierry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Defresne Thierry 2020-06-27 08:22:31 UTC
SUMMARY
Sometimes Krita crash when opening the brush panel settings. It may happen in various situations and there are no easy step to reproduce. It crash more often when the brush use a custom brush tip. Happens in both 4.3.0 from package manager (pacman/archlinux), 4.3.0 appimage and krita-5.0.0-prealpha-689fe92-x86_64 appimage

STEPS TO REPRODUCE
1. Select a brush
2. Open brush settings
3. Select a custom brush tip
4. Close brush settings
5. Draw on the canvas
6. Open brush settings
7. Change any settings (I personally change flow and rotation)
8. Close brush settings
9. Repeat 6 to 8 until krita crash

OBSERVED RESULT
Krita crash

EXPECTED RESULT
Open brush settings panel

SOFTWARE/OS VERSIONS
Krita log:

SESSION: 27 Jun 2020 08:55:31 +0200. Executing /usr/bin/krita

Krita Version: 4.3.0, Qt version compiled: 5.15.0, loaded: 5.15.0. Process ID: 8488
-- -- -- -- -- -- -- --
27 Jun 2020 08:55:31 +0200: Style: breeze. Available styles: Breeze, Windows, Fusion
27 Jun 2020 08:56:34 +0200: Importing application/x-krita to application/x-krita. Location: /home/vxdcxw/Atelier/Graphisme/Exercices/Etudes/thumbnails/city.kra. Real location: /home/vxdcxw/Atelier/Graphisme/Exercices/Etudes/thumbnails/city.kra. Batchmode: 0
27 Jun 2020 08:56:34 +0200: Loaded image from application/x-krita. Size: 3000 * 1600 pixels, 8.33333 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 8
27 Jun 2020 08:59:36 +0200: Saving Document /home/vxdcxw/Atelier/Graphisme/Exercices/Etudes/thumbnails/city.kra as /home/vxdcxw/Atelier/Graphisme/Exercices/Etudes/thumbnails/city.kra (mime: application/x-krita). 3000 * 1600 pixels, 9 layers.  101 frames, 24 framerate. Export configuration: No configuration
27 Jun 2020 08:59:36 +0200: Create a simple backup for /home/vxdcxw/Atelier/Graphisme/Exercices/Etudes/thumbnails/city.kra in the same location as the file.
27 Jun 2020 08:59:36 +0200: Converting from application/x-krita to application/x-krita. Location: /home/vxdcxw/Atelier/Graphisme/Exercices/Etudes/thumbnails/city.kra. Real location: /home/vxdcxw/Atelier/Graphisme/Exercices/Etudes/thumbnails/city.kra. Batchmode: 0. Configuration: none
27 Jun 2020 08:59:37 +0200: Completed saving /home/vxdcxw/Atelier/Graphisme/Exercices/Etudes/thumbnails/city.kra (mime: application/x-krita). Result: OK. Size: 7224570. MD5 Hash: 2be3f89a8909a1c5cbf2bee5f4740a08
27 Jun 2020 08:59:37 +0200: Saving Completed

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 27 Jun 2020 08:59:46 +0200. Executing /usr/bin/krita

Krita Version: 4.3.0, Qt version compiled: 5.15.0, loaded: 5.15.0. Process ID: 9613
-- -- -- -- -- -- -- --
27 Jun 2020 08:59:46 +0200: Style: breeze. Available styles: Breeze, Windows, Fusion


ADDITIONAL INFORMATION
backtrace from gdb:

[Switching to Thread 0x7fffddfa8700 (LWP 47033)]
0x00007ffff242054e in __memmove_avx_unaligned_erms () from /usr/lib/libc.so.6
(gdb) thread apply all bt

Thread 56 (Thread 0x7fff5dffb700 (LWP 47119)):
#0  0x00007ffff1cf8158 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff2891ce8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff288ffd4 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 55 (Thread 0x7fff5e7fc700 (LWP 47118)):
#0  0x00007ffff1cf8158 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff2891ce8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff288ffd4 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 54 (Thread 0x7fff5effd700 (LWP 47117)):
#0  0x00007ffff1cf8158 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff2891ce8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff288ffd4 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 53 (Thread 0x7fff5f7fe700 (LWP 47116)):
#0  0x00007ffff1cf8158 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff2891ce8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff288ffd4 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 52 (Thread 0x7fff5cffd700 (LWP 47115)):
#0  0x00007ffff1cf8158 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff2891ce8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff288ffd4 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6
--Type <RET> for more, q to quit, c to continue without paging--

Thread 51 (Thread 0x7fff7cbf5700 (LWP 47114)):
#0  0x00007ffff1cf8158 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff2891ce8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff288ffd4 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 50 (Thread 0x7fff7e7f8700 (LWP 47113)):
#0  0x00007ffff1cf8158 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff2891ce8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff288ffd4 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 49 (Thread 0x7fff5ffff700 (LWP 47112)):
#0  0x00007ffff1cf8158 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff2891ce8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff288ffd4 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 22 (Thread 0x7fffb13fa700 (LWP 47068)):
#0  0x00007ffff23b005f in poll () from /usr/lib/libc.so.6
#1  0x00007ffff0ed4f38 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff0e86221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff2ac9211 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5                                                                                                                   
#4  0x00007ffff2a6f01c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff288ac32 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 21 (Thread 0x7fffb1bfb700 (LWP 47047)):
#0  0x00007ffff23b005f in poll () from /usr/lib/libc.so.6
#1  0x00007ffff0ed4f38 in ?? () from /usr/lib/libglib-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#2  0x00007ffff0e86221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff2ac9211 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5                                                                                                                   
#4  0x00007ffff2a6f01c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff288ac32 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007fffec95518b in ?? () from /usr/lib/libQt5Quick.so.5
#7  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 20 (Thread 0x7fffb27fc700 (LWP 47046)):
#0  0x00007ffff23b005f in poll () from /usr/lib/libc.so.6
#1  0x00007ffff0ed4f38 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff0e86221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff2ac9211 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5                                                                                                                   
#4  0x00007ffff2a6f01c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff288ac32 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007fffec6bb789 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 19 (Thread 0x7fffb2ffd700 (LWP 47045)):
#0  0x00007ffff2382571 in clock_nanosleep@GLIBC_2.2.5 () from /usr/lib/libc.so.6
#1  0x00007ffff2387e87 in nanosleep () from /usr/lib/libc.so.6
#2  0x00007ffff2ac8b6f in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff591a767 in KisTileDataSwapper::run() () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#4  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 18 (Thread 0x7fffb37fe700 (LWP 47044)):
#0  0x00007ffff23b571d in syscall () from /usr/lib/libc.so.6
#1  0x00007ffff288e0c2 in QSemaphore::acquire(int) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff58f8154 in KisTileDataPooler::waitForWork() () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#3  0x00007ffff58f8209 in KisTileDataPooler::run() () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#4  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6
--Type <RET> for more, q to quit, c to continue without paging--

Thread 16 (Thread 0x7fffd4ff9700 (LWP 47042)):
#0  0x00007ffff23b005f in poll () from /usr/lib/libc.so.6
#1  0x00007ffff0ed4f38 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff0e86221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff2ac9211 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5                                                                                                                   
#4  0x00007ffff2a6f01c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff288ac32 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 15 (Thread 0x7fffd57fa700 (LWP 47041)):
#0  0x00007ffff23b005f in poll () from /usr/lib/libc.so.6
#1  0x00007ffff0ed4f38 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff0e86221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff2ac9211 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5                                                                                                                   
#4  0x00007ffff2a6f01c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff288ac32 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 14 (Thread 0x7fffd5ffb700 (LWP 47040)):
#0  0x00007ffff5b52c4c in KisMaskGenerator::antialiasEdges() const () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17                                                                                                                        
#1  0x00007ffff5b54dfe in KisCircleMaskGenerator::valueAt(double, double) const () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17                                                                                                           
#2  0x00007ffff5b5a34a in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::processScalar(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#3  0x00007ffff5b587b9 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::process(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#4  0x00007ffff5f4ca04 in OperatorWrapper::operator()(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                                    
#5  0x00007ffff5f4ec51 in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIteration(QTypedArrayData<QRect>::iterator, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#6  0x00007ffff5f4ecee in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIterations(QTypedArrayData<QRect>::iterator, int, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
--Type <RET> for more, q to quit, c to continue without paging--
#7  0x00007ffff5f4f1c0 in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::forThreadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                     
#8  0x00007ffff5f4ee7a in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::threadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                        
#9  0x00007ffff47b78d5 in QtConcurrent::ThreadEngineBase::run() () from /usr/lib/libQt5Concurrent.so.5
#10 0x00007ffff288fde2 in ?? () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#12 0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#13 0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 13 (Thread 0x7fffd67fc700 (LWP 47039)):
#0  0x00007ffff5b54d8b in KisCircleMaskGenerator::valueAt(double, double) const () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17                                                                                                           
#1  0x00007ffff5b5a34a in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::processScalar(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#2  0x00007ffff5b587b9 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::process(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#3  0x00007ffff5f4ca04 in OperatorWrapper::operator()(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                                    
#4  0x00007ffff5f4ec51 in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIteration(QTypedArrayData<QRect>::iterator, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#5  0x00007ffff5f4ecee in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIterations(QTypedArrayData<QRect>::iterator, int, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#6  0x00007ffff5f4f1c0 in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::forThreadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                     
#7  0x00007ffff5f4ee7a in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::threadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                        
#8  0x00007ffff47b78d5 in QtConcurrent::ThreadEngineBase::run() () from /usr/lib/libQt5Concurrent.so.5
#9  0x00007ffff288fde2 in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#12 0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 12 (Thread 0x7fffd6ffd700 (LWP 47038)):
#0  0x00007ffff5b54ef3 in KisCircleMaskGenerator::valueAt(double, double) const () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17                                                                                                           
#1  0x00007ffff5b5a34a in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::processScalar(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#2  0x00007ffff5b587b9 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::process(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
--Type <RET> for more, q to quit, c to continue without paging--
#3  0x00007ffff5f4ca04 in OperatorWrapper::operator()(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                                    
#4  0x00007ffff5f4ec51 in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIteration(QTypedArrayData<QRect>::iterator, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#5  0x00007ffff5f4ecee in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIterations(QTypedArrayData<QRect>::iterator, int, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#6  0x00007ffff5f4f1c0 in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::forThreadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                     
#7  0x00007ffff5f4ee7a in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::threadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                        
#8  0x00007ffff47b78d5 in QtConcurrent::ThreadEngineBase::run() () from /usr/lib/libQt5Concurrent.so.5
#9  0x00007ffff288fde2 in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#12 0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7fffd77fe700 (LWP 47037)):
#0  0x00007ffff5b5a383 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::processScalar(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#1  0x00007ffff5b587b9 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::process(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#2  0x00007ffff5f4ca04 in OperatorWrapper::operator()(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                                    
#3  0x00007ffff5f4ec51 in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIteration(QTypedArrayData<QRect>::iterator, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#4  0x00007ffff5f4ecee in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIterations(QTypedArrayData<QRect>::iterator, int, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#5  0x00007ffff5f4f1c0 in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::forThreadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                     
#6  0x00007ffff5f4ee7a in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::threadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                        
#7  0x00007ffff47b78d5 in QtConcurrent::ThreadEngineBase::run() () from /usr/lib/libQt5Concurrent.so.5
#8  0x00007ffff288fde2 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7fffd7fff700 (LWP 47036)):
#0  0x00007ffff1cf8158 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff2891ce8 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#2  0x00007ffff288ffd4 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 9 (Thread 0x7fffdcfa6700 (LWP 47035)):
#0  0x00007fffdf1a442f in UINT8_MULT(unsigned int, unsigned int) () from /home/vxdcxw/kritadev/install/lib/kritaplugins/kritalcmsengine.so                                                                                                              
#1  0x00007fffdf1a4755 in KoColorSpaceMaths<unsigned char, unsigned char>::multiply(unsigned char, unsigned char) () from /home/vxdcxw/kritadev/install/lib/kritaplugins/kritalcmsengine.so                                                             
#2  0x00007fffdf4f45e4 in KoColorSpaceTrait<unsigned char, 4, 3>::applyAlphaU8Mask(unsigned char*, unsigned char const*, int) () from /home/vxdcxw/kritadev/install/lib/kritaplugins/kritalcmsengine.so
#3  0x00007fffdf7ab483 in KoColorSpaceAbstract<KoBgrU8Traits>::applyAlphaU8Mask(unsigned char*, unsigned char const*, int) const () from /home/vxdcxw/kritadev/install/lib/kritaplugins/kritalcmsengine.so
#4  0x00007ffff5b5a4ea in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::processScalar(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#5  0x00007ffff5b587b9 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::process(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#6  0x00007ffff5f4ca04 in OperatorWrapper::operator()(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                                    
#7  0x00007ffff5f4ec51 in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIteration(QTypedArrayData<QRect>::iterator, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#8  0x00007ffff5f4ecee in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIterations(QTypedArrayData<QRect>::iterator, int, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#9  0x00007ffff5f4f1c0 in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::forThreadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                     
#10 0x00007ffff5f4ee7a in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::threadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                        
#11 0x00007ffff47b78d5 in QtConcurrent::ThreadEngineBase::run() () from /usr/lib/libQt5Concurrent.so.5
#12 0x00007ffff288fde2 in ?? () from /usr/lib/libQt5Core.so.5
#13 0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#14 0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#15 0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7fffdd7a7700 (LWP 47034)):
#0  0x00007ffff5b54eb4 in KisCircleMaskGenerator::valueAt(double, double) const () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17                                                                                                           
#1  0x00007ffff5b5a34a in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::processScalar(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#2  0x00007ffff5b587b9 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::process(QRect const&)--Type <RET> for more, q to quit, c to continue without paging--
 () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#3  0x00007ffff5f4ca04 in OperatorWrapper::operator()(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                                    
#4  0x00007ffff5f4ec51 in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIteration(QTypedArrayData<QRect>::iterator, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#5  0x00007ffff5f4ecee in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIterations(QTypedArrayData<QRect>::iterator, int, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#6  0x00007ffff5f4f1c0 in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::forThreadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                     
#7  0x00007ffff5f4ee7a in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::threadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                        
#8  0x00007ffff47b78d5 in QtConcurrent::ThreadEngineBase::run() () from /usr/lib/libQt5Concurrent.so.5
#9  0x00007ffff288fde2 in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#12 0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7fffddfa8700 (LWP 47033)):
#0  0x00007ffff242054e in __memmove_avx_unaligned_erms () from /usr/lib/libc.so.6
#1  0x00007ffff5b5a4b7 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::processScalar(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#2  0x00007ffff5b587b9 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::process(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#3  0x00007ffff5f4ca04 in OperatorWrapper::operator()(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                                    
#4  0x00007ffff5f4ec51 in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIteration(QTypedArrayData<QRect>::iterator, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#5  0x00007ffff5f4ecee in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIterations(QTypedArrayData<QRect>::iterator, int, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#6  0x00007ffff5f4f1c0 in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::forThreadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                     
#7  0x00007ffff5f4ee7a in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::threadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                        
#8  0x00007ffff47b78d5 in QtConcurrent::ThreadEngineBase::run() () from /usr/lib/libQt5Concurrent.so.5
#9  0x00007ffff288fde2 in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#12 0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7fffe5fca700 (LWP 47032)):
--Type <RET> for more, q to quit, c to continue without paging--
#0  0x00007ffff23b005f in poll () from /usr/lib/libc.so.6
#1  0x00007ffff0ed4f38 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffff0e86221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff2ac9211 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5                                                                                                                   
#4  0x00007ffff2a6f01c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff288ac32 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff4692098 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7fffee5e4700 (LWP 47031)):
#0  0x00007ffff23b005f in poll () from /usr/lib/libc.so.6
#1  0x00007ffff17f763b in ?? () from /usr/lib/libxcb.so.1
#2  0x00007ffff17f937b in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007fffee759c51 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007ffff288be0f in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff1cf1422 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff23babf3 in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fffeeb87f80 (LWP 47024)):
#0  0x00007ffff58fd623 in QRect::width() const () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#1  0x00007ffff5b5a21e in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::processScalar(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#2  0x00007ffff5b587b9 in KisBrushMaskScalarApplicator<KisCircleMaskGenerator, (Vc::Implementation)0>::process(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#3  0x00007ffff5f4ca04 in OperatorWrapper::operator()(QRect const&) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                                    
#4  0x00007ffff5f4ec51 in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIteration(QTypedArrayData<QRect>::iterator, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#5  0x00007ffff5f4ecee in QtConcurrent::MapKernel<QTypedArrayData<QRect>::iterator, OperatorWrapper>::runIterations(QTypedArrayData<QRect>::iterator, int, int, void*) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#6  0x00007ffff5f4f1c0 in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::forThreadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                     
#7  0x00007ffff5f4ee7a in QtConcurrent::IterateKernel<QTypedArrayData<QRect>::iterator, void>::threadFunction() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                        
#8  0x00007ffff47b7805 in QtConcurrent::ThreadEngineBase::startBlocking() () from /usr/lib/libQt5Concurrent.so.5
#9  0x00007ffff5f4cd7a in QtConcurrent::ThreadEngine<void>::startBlocking() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                            
--Type <RET> for more, q to quit, c to continue without paging--
#10 0x00007ffff5f4c367 in QtConcurrent::ThreadEngineStarter<void>::startBlocking() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                     
#11 0x00007ffff5f4d0e8 in void QtConcurrent::blockingMap<QVector<QRect>, OperatorWrapper>(QVector<QRect>&, OperatorWrapper) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#12 0x00007ffff5f4a752 in KisAutoBrush::generateMaskAndApplyMaskOrCreateDab(KisSharedPtr<KisFixedPaintDevice>, KisBrush::ColoringInformation*, KisDabShape const&, KisPaintInformation const&, double, double, double) const () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                       
#13 0x00007ffff5f52d26 in KisBrush::mask(KisSharedPtr<KisFixedPaintDevice>, KoColor const&, KisDabShape const&, KisPaintInformation const&, double, double, double) const () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#14 0x00007ffff5f4b0da in KisAutoBrush::createBrushPreview() () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                                                           
#15 0x00007ffff5f49a68 in KisAutoBrush::KisAutoBrush(KisMaskGenerator*, double, double, double) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                        
#16 0x00007ffff5f769d2 in KisAutoBrushFactory::createBrush(QDomElement const&, QSharedPointer<KisResourcesInterface>) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17
#17 0x00007ffff5f55f51 in KisBrushRegistry::createBrush(QDomElement const&, QSharedPointer<KisResourcesInterface>) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                     
#18 0x00007ffff5f5253a in KisBrush::fromXML(QDomElement const&, QSharedPointer<KisResourcesInterface>) () from /home/vxdcxw/kritadev/install/lib/libkritalibbrush.so.17                                                                                 
#19 0x00007fffe4113cf6 in KisBrushOptionProperties::readOptionSettingResourceImpl(KisPropertiesConfiguration const*, QSharedPointer<KisResourcesInterface>) () from /home/vxdcxw/kritadev/install/lib/libkritalibpaintop.so.17
#20 0x00007ffff6c1eb12 in KisPaintopPropertiesResourcesBase::readOptionSetting(KisPinnedSharedPtr<KisPropertiesConfiguration>, QSharedPointer<KisResourcesInterface>) () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17
#21 0x00007fffe418d53c in KisMaskingBrushOptionProperties::read(KisPropertiesConfiguration const*, double, QSharedPointer<KisResourcesInterface>) () from /home/vxdcxw/kritadev/install/lib/libkritalibpaintop.so.17
#22 0x00007fffe418a1aa in KisMaskingBrushOption::readOptionSetting(KisPinnedSharedPtr<KisPropertiesConfiguration>) () from /home/vxdcxw/kritadev/install/lib/libkritalibpaintop.so.17                                                                   
#23 0x00007ffff6cd955b in KisPaintOpOption::startReadOptionSetting(KisPinnedSharedPtr<KisPropertiesConfiguration>) () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17                                                                           
#24 0x00007ffff6cdc7a8 in KisPaintOpSettingsWidget::setConfiguration(KisPinnedSharedPtr<KisPropertiesConfiguration>) () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17
#25 0x00007ffff596f76a in KisPaintOpConfigWidget::setConfigurationSafe(KisPinnedSharedPtr<KisPropertiesConfiguration>) () from /home/vxdcxw/kritadev/install/lib/libkritaimage.so.17
#26 0x00007ffff6ccbcda in KisPaintopBox::slotUpdateOptionsWidgetPopup() () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17                                                                                                                      
#27 0x00007ffff6acfa1a in KisPaintopBox::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17                                                                                        
#28 0x00007ffff2aa7940 in ?? () from /usr/lib/libQt5Core.so.5
#29 0x00007ffff6ae0a0f in KisPaintOpPresetsPopup::brushEditorShown() () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17                                                                                                                         
--Type <RET> for more, q to quit, c to continue without paging--
#30 0x00007ffff6e4ef87 in KisPaintOpPresetsPopup::showEvent(QShowEvent*) () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17                                                                                                                     
#31 0x00007ffff3588c7e in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#32 0x00007ffff3547702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#33 0x00007ffff6f3823f in KisApplication::notify(QObject*, QEvent*) () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17                                                                                                                          
#34 0x00007ffff2a7069a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#35 0x00007ffff35854c8 in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#36 0x00007ffff358541a in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
#37 0x00007ffff35854a2 in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#38 0x00007ffff35887d5 in QWidgetPrivate::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
#39 0x00007ffff4d5617e in KisPopupButton::showPopupWidget() () from /home/vxdcxw/kritadev/install/lib/libkritawidgetutils.so.17
#40 0x00007ffff4d2ae58 in KisPopupButton::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /home/vxdcxw/kritadev/install/lib/libkritawidgetutils.so.17
#41 0x00007ffff2aa7940 in ?? () from /usr/lib/libQt5Core.so.5
#42 0x00007ffff363996f in ?? () from /usr/lib/libQt5Widgets.so.5
#43 0x00007ffff363ae93 in ?? () from /usr/lib/libQt5Widgets.so.5
#44 0x00007ffff363b093 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5
#45 0x00007ffff3588c7e in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#46 0x00007ffff3547702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#47 0x00007ffff354e977 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#48 0x00007ffff6f3823f in KisApplication::notify(QObject*, QEvent*) () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17
#49 0x00007ffff2a7069a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#50 0x00007ffff354d85e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/libQt5Widgets.so.5
#51 0x00007ffff35a13b2 in ?? () from /usr/lib/libQt5Widgets.so.5
#52 0x00007ffff35a478f in ?? () from /usr/lib/libQt5Widgets.so.5
#53 0x00007ffff3547702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#54 0x00007ffff6f3823f in KisApplication::notify(QObject*, QEvent*) () from /home/vxdcxw/kritadev/install/lib/libkritaui.so.17
#55 0x00007ffff2a7069a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#56 0x00007ffff2e4cf1c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
#57 0x00007ffff2e4ddfc in QGuiApplicationPrivate::processTabletEvent(QWindowSystemInterfacePrivate::TabletEvent*) () from /usr/lib/libQt5Gui.so.5
#58 0x00007ffff2e226ec in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#59 0x00007fffee75ac8c in ?? () from /usr/lib/libQt5XcbQpa.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#60 0x00007ffff0e8743c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#61 0x00007ffff0ed4fa9 in ?? () from /usr/lib/libglib-2.0.so.0
#62 0x00007ffff0e86221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#63 0x00007ffff2ac9211 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#64 0x00007ffff2a6f01c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#65 0x00007ffff2a774a4 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#66 0x0000555555e2d0c1 in main ()
Comment 1 Defresne Thierry 2020-06-27 11:17:57 UTC
A more helpful backtrace:

Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x00007ffff2da8911 in __memset_avx2_erms () from /usr/lib/libc.so.6
(gdb) thread apply 1 bt

Thread 1 (Thread 0x7fffef50e880 (LWP 127540)):
#0  0x00007ffff2da8911 in __memset_avx2_erms () from /usr/lib/libc.so.6
#1  0x00007ffff6061966 in KisFixedPaintDevice::initialize (this=0x5555621d1840, defaultValue=defaultValue@entry=0 '\000') at /usr/include/qt/QtCore/qrect.h:269
#2  0x00007ffff622e847 in KisAutoBrush::createBrushPreview (this=0x55556060dcf0) at /home/vxdcxw/kritadev/krita/libs/global/kis_shared_ptr.h:179
#3  0x00007ffff622f387 in KisAutoBrush::KisAutoBrush (this=0x55556060dcf0, as=0x7fffffffcb10, angle=0, randomness=0, density=1) at /home/vxdcxw/kritadev/krita/libs/brush/kis_auto_brush.cpp:93
#4  0x00007ffff624802e in KisAutoBrushFactory::createBrush (this=<optimized out>, brushDefinition=..., resourcesInterface=...) at /home/vxdcxw/kritadev/krita/libs/brush/kis_auto_brush_factory.cpp:41
#5  0x00007ffff6233890 in KisBrushRegistry::createBrush (this=0x7ffff625a220 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder>, element=..., resourcesInterface=...) at /usr/include/c++/10.1.0/bits/atomic_base.h:325
#6  0x00007ffff6231af6 in KisBrush::fromXML (element=..., resourcesInterface=...) at /usr/include/c++/10.1.0/bits/atomic_base.h:325
#7  0x00007fffdff87042 in KisBrushOptionProperties::readOptionSettingResourceImpl (this=0x7fffffffcdd0, setting=<optimized out>, resourcesInterface=...) at /usr/include/c++/10.1.0/bits/atomic_base.h:325
#8  0x00007ffff6f1b1f5 in KisPaintopPropertiesResourcesBase::readOptionSetting (this=<optimized out>, settings=..., resourcesInterface=...) at /usr/include/qt/QtCore/qsharedpointer_impl.h:158
#9  0x00007fffdffc1478 in KisMaskingBrushOptionProperties::read (this=this@entry=0x7fffffffce40, setting=0x5555664a9b50, masterBrushSize=583, resourcesInterface=...) at /usr/include/c++/10.1.0/bits/atomic_base.h:325
#10 0x00007fffdffc021f in KisMaskingBrushOption::readOptionSetting (this=0x555564364630, setting=...) at /home/vxdcxw/kritadev/krita/libs/global/kis_shared_ptr.h:155
#11 0x00007ffff6fa23f4 in KisPaintOpOption::startReadOptionSetting (this=this@entry=0x555564364630, setting=...) at /home/vxdcxw/kritadev/krita/libs/ui/kis_paintop_option.cpp:75
#12 0x00007ffff6fa51ae in KisPaintOpSettingsWidget::setConfiguration (this=0x555564247b30, config=...) at /usr/include/c++/10.1.0/bits/atomic_base.h:325
#13 0x00007ffff5f288a0 in KisPaintOpConfigWidget::setConfigurationSafe (this=this@entry=0x555564247b30, config=...) at /usr/include/c++/10.1.0/bits/atomic_base.h:325
#14 0x00007ffff6f94884 in KisPaintopBox::slotUpdateOptionsWidgetPopup (this=0x55555983acc0) at /usr/include/c++/10.1.0/bits/atomic_base.h:325
#15 0x00007ffff342f940 in ?? () from /usr/lib/libQt5Core.so.5
#16 0x00007ffff3f10c7e in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#17 0x00007ffff3ecf702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#18 0x00007ffff7123c29 in KisApplication::notify (this=<optimized out>, receiver=0x55555a62f990, event=0x7fffffffd2e0) at /home/vxdcxw/kritadev/krita/libs/ui/KisApplication.cpp:736
#19 0x00007ffff33f869a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#20 0x00007ffff3f0d4c8 in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#21 0x00007ffff3f0d41a in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
#22 0x00007ffff3f0d4a2 in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#23 0x00007ffff3f107d5 in QWidgetPrivate::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
#24 0x00007ffff559a5f9 in KisPopupButton::showPopupWidget (this=0x5555589b6390) at /usr/include/qt/QtCore/qscopedpointer.h:116
#25 0x00007ffff342f940 in ?? () from /usr/lib/libQt5Core.so.5
#26 0x00007ffff3fc196f in ?? () from /usr/lib/libQt5Widgets.so.5
#27 0x00007ffff3fc2e93 in ?? () from /usr/lib/libQt5Widgets.so.5
#28 0x00007ffff3fc3093 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5
#29 0x00007ffff3f10c7e in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#30 0x00007ffff3ecf702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#31 0x00007ffff3ed6977 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#32 0x00007ffff7123c29 in KisApplication::notify (this=<optimized out>, receiver=0x5555589b6390, event=0x7fffffffdba0) at /home/vxdcxw/kritadev/krita/libs/ui/KisApplication.cpp:736
#33 0x00007ffff33f869a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#34 0x00007ffff3ed585e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/libQt5Widgets.so.5
#35 0x00007ffff3f293b2 in ?? () from /usr/lib/libQt5Widgets.so.5
#36 0x00007ffff3f2c78f in ?? () from /usr/lib/libQt5Widgets.so.5
#37 0x00007ffff3ecf702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#38 0x00007ffff7123c29 in KisApplication::notify (this=<optimized out>, receiver=0x555558b79bd0, event=0x7fffffffdee0) at /home/vxdcxw/kritadev/krita/libs/ui/KisApplication.cpp:736
#39 0x00007ffff33f869a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#40 0x00007ffff37d4f1c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
#41 0x00007ffff37d5dfc in QGuiApplicationPrivate::processTabletEvent(QWindowSystemInterfacePrivate::TabletEvent*) () from /usr/lib/libQt5Gui.so.5
#42 0x00007ffff37aa6ec in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#43 0x00007fffef0e3c8c in ?? () from /usr/lib/libQt5XcbQpa.so.5
#44 0x00007ffff180f43c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#45 0x00007ffff185cfa9 in ?? () from /usr/lib/libglib-2.0.so.0
#46 0x00007ffff180e221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#47 0x00007ffff3451211 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#48 0x00007ffff33f701c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#49 0x00007ffff33ff4a4 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#50 0x0000555555e28780 in main (argc=<optimized out>, argv=0x7fffffffe6b8) at /home/vxdcxw/kritadev/krita/krita/main.cc:591
Comment 2 Defresne Thierry 2020-06-27 12:02:48 UTC
Created attachment 129721 [details]
patch

I have found a way to fix the bug however I lack the expertise to debug it further. I hope this will help.
Comment 3 Defresne Thierry 2020-06-28 12:30:09 UTC
Created attachment 129739 [details]
masking brush overflow fix

I achieved to find the root cause of the problem and a way to solve it. This fix may also improve performances for peoples experiencing custom brush/slow brush window issues.

I attached a diff file with the fix. However this is my first patch and I'm not very comfortable with Krita dev right now. So the solution is using a hardcoded value for the max size instead of fetching it from user settings.

I hope this will help to solve the bug.


Origin of the crash: an overflow happens in the brush preview device because it tries to allocate an invalid QRect with huge height/width.
The problem: masked brush tip size is soft-locked but it can overflow UI limitation because it is bound to base brush tip size (related to `KisMaskingBrushOption::MasterBrushSizeAdapter`). This will happen even if the masked brush option is disabled.

The root cause: The masked brush size value is not clamped into the range [O, Settings.maxBrushSize], this result in huge allocations when the brush window tries to create the device for the brush preview.

A better way to Reproduce the bug:
1. Open a file
2. Create a new brush from Pixel Engine
3. Set its size to 1
4. Set masked brush tip size to 1000
5. Close the brush settings window
6. Change the brush size to something big (100 is enough on my computer)
7. Open the brush settings window
8. Crash
Comment 4 Dmitry Kazakov 2020-07-02 13:36:05 UTC
Git commit 3d8ebb27f9d3e9fad9ff4d9c32e5045ac111c116 by Dmitry Kazakov.
Committed on 02/07/2020 at 13:35.
Pushed by dkazakov into branch 'master'.

Add a workaround for too big brushes generated by Masking Brush option

The masking brush is scaled by the "master" brush size value. That is,
it may become much larger than the user-defined limit.

This patch is a workaround that limits the size of the masking brush
by 3*brughLimit size. The patch doesn't notify the user about the cropping,
neither adjusts it the sliders limits, hence "workaround".

TODO:

1) Implement a warning notifying the user that his masking
   brush has been cropped

2) Make sure that the sliders in KisMaskingBrushOption have
   correct limits (right now they are limited by usual
   maximumBrushSize)

Thanks Defresne Thierry for tracking down the bug and providing
a draft patch! :)

M  +21   -1    libs/image/brushengine/kis_paintop_settings.cpp
M  +21   -0    libs/image/kis_image_config.h

https://invent.kde.org/graphics/krita/commit/3d8ebb27f9d3e9fad9ff4d9c32e5045ac111c116
Comment 5 Dmitry Kazakov 2020-07-02 13:36:49 UTC
Git commit f717b0385683562bba951130343aff2fd4639c38 by Dmitry Kazakov.
Committed on 02/07/2020 at 13:36.
Pushed by dkazakov into branch 'krita/4.3'.

Add a workaround for too big brushes generated by Masking Brush option

The masking brush is scaled by the "master" brush size value. That is,
it may become much larger than the user-defined limit.

This patch is a workaround that limits the size of the masking brush
by 3*brughLimit size. The patch doesn't notify the user about the cropping,
neither adjusts it the sliders limits, hence "workaround".

TODO:

1) Implement a warning notifying the user that his masking
   brush has been cropped

2) Make sure that the sliders in KisMaskingBrushOption have
   correct limits (right now they are limited by usual
   maximumBrushSize)

Thanks Defresne Thierry for tracking down the bug and providing
a draft patch! :)

M  +21   -1    libs/image/brushengine/kis_paintop_settings.cpp
M  +21   -0    libs/image/kis_image_config.h

https://invent.kde.org/graphics/krita/commit/f717b0385683562bba951130343aff2fd4639c38