Bug 393217 - crash when resizing tool options applet w/ select shapes tool+vector layer
Summary: crash when resizing tool options applet w/ select shapes tool+vector layer
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.0.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-04-17 09:00 UTC by sruz.tst
Modified: 2018-05-02 11:57 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sruz.tst 2018-04-17 09:00:18 UTC
Application: krita (4.0.1)

Qt Version: 5.9.4
Frameworks Version: 5.43.0
Operating System: Linux 4.16.1-gentoo x86_64
Distribution: "NAME=Gentoo"

-- Information about the crash:
- What I was doing when the application crashed:
I was resizing the tool options applet with "select shapes" tool, working on text/vector layer (on outline color/width tab) - the crash happened while dragging the bottom of the applet.

- Custom settings of the application:
I'm using gentoo, krita-4.0.1 ebuild from the main repository, so the build config should be fairly standard, but it's not the official binary nontheless (if there's such a thing).
Original config for user from krita 3.3, didn't wipe when upgrading to 4.0.1.

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
29	  return SYSCALL_CANCEL (wait4, pid, stat_loc, options, NULL);
[Current thread is 1 (Thread 0x7f7e27886740 (LWP 1662))]

Thread 10 (Thread 0x7f7dd1cc6700 (LWP 1675)):
#0  0x00007fff9b568a21 in clock_gettime ()
#1  0x00007f7e242331db in __GI___clock_gettime (clock_id=1, tp=0x7f7dd1cc5b40) at ../sysdeps/unix/clock_gettime.c:99
#2  0x00007f7e24d93921 in ?? () from /usr/lib64/libQt5Core.so.5
#3  0x00007f7e24d92369 in QTimerInfoList::updateCurrentTime() () from /usr/lib64/libQt5Core.so.5
#4  0x00007f7e24d927d5 in QTimerInfoList::timerWait(timespec&) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f7e24d93e5c in ?? () from /usr/lib64/libQt5Core.so.5
#6  0x00007f7e24d93f4d in ?? () from /usr/lib64/libQt5Core.so.5
#7  0x00007f7e1cb138cb in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f7e1cb1432b in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f7e1cb1452c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f7e24d941eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#11 0x00007f7e24d40e1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#12 0x00007f7e24b96c9b in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#13 0x00007f7ddb12b276 in ?? () from /usr/lib64/libQt5Quick.so.5
#14 0x00007f7e24b9b3cf in ?? () from /usr/lib64/libQt5Core.so.5
#15 0x00007f7e1e3fba99 in start_thread (arg=0x7f7dd1cc6700) at pthread_create.c:456
#16 0x00007f7e24223abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 9 (Thread 0x7f7dd3595700 (LWP 1674)):
#0  0x00007f7e1cb5bbc4 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f7e1cb1330d in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7e1cb142b5 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7e1cb1452c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7e24d941eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f7e24d40e1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f7e24b96c9b in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#7  0x00007f7ddb9483c5 in ?? () from /usr/lib64/libQt5Qml.so.5
#8  0x00007f7e24b9b3cf in ?? () from /usr/lib64/libQt5Core.so.5
#9  0x00007f7e1e3fba99 in start_thread (arg=0x7f7dd3595700) at pthread_create.c:456
#10 0x00007f7e24223abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 8 (Thread 0x7f7dda747700 (LWP 1673)):
#0  0x00007f7e1e402bf6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55939c1388d4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55939c138880, cond=0x55939c1388a8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55939c1388a8, mutex=0x55939c138880) at pthread_cond_wait.c:655
#3  0x00007f7e24b9ba9a in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f7e24b957ef in QSemaphore::tryAcquire(int, int) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f7e2232fe62 in KisTileDataSwapper::run() () from /usr/lib64/libkritaimage.so.16
#6  0x00007f7e24b9b3cf in ?? () from /usr/lib64/libQt5Core.so.5
#7  0x00007f7e1e3fba99 in start_thread (arg=0x7f7dda747700) at pthread_create.c:456
#8  0x00007f7e24223abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 7 (Thread 0x7f7ddaf48700 (LWP 1672)):
#0  0x00007f7e1e402bf6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55939c138644) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55939c1385f0, cond=0x55939c138618) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55939c138618, mutex=0x55939c1385f0) at pthread_cond_wait.c:655
#3  0x00007f7e24b9ba9a in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f7e24b95533 in QSemaphore::acquire(int) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f7e2231490e in ?? () from /usr/lib64/libkritaimage.so.16
#6  0x00007f7e2231521a in ?? () from /usr/lib64/libkritaimage.so.16
#7  0x00007f7e24b9b3cf in ?? () from /usr/lib64/libQt5Core.so.5
#8  0x00007f7e1e3fba99 in start_thread (arg=0x7f7ddaf48700) at pthread_create.c:456
#9  0x00007f7e24223abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 6 (Thread 0x7f7deeff5700 (LWP 1668)):
#0  0x00007fff9b568a21 in clock_gettime ()
#1  0x00007f7e242331db in __GI___clock_gettime (clock_id=1, tp=0x7f7deeff4b80) at ../sysdeps/unix/clock_gettime.c:99
#2  0x00007f7e24d93921 in ?? () from /usr/lib64/libQt5Core.so.5
#3  0x00007f7e24d92369 in QTimerInfoList::updateCurrentTime() () from /usr/lib64/libQt5Core.so.5
#4  0x00007f7e24d927d5 in QTimerInfoList::timerWait(timespec&) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f7e24d93e5c in ?? () from /usr/lib64/libQt5Core.so.5
#6  0x00007f7e24d93f4d in ?? () from /usr/lib64/libQt5Core.so.5
#7  0x00007f7e1cb138cb in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f7e1cb1432b in ?? () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f7e1cb1452c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f7e24d941eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#11 0x00007f7e24d40e1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#12 0x00007f7e24b96c9b in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#13 0x00007f7e1e629f15 in ?? () from /usr/lib64/libQt5DBus.so.5
#14 0x00007f7e24b9b3cf in ?? () from /usr/lib64/libQt5Core.so.5
#15 0x00007f7e1e3fba99 in start_thread (arg=0x7f7deeff5700) at pthread_create.c:456
#16 0x00007f7e24223abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 5 (Thread 0x7f7df2a99700 (LWP 1667)):
#0  0x00007f7e1e402bf6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x559394693280) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x559394693230, cond=0x559394693258) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x559394693258, mutex=0x559394693230) at pthread_cond_wait.c:655
#3  0x00007f7e05ff1c6b in ?? () from /usr/lib64/dri/r600_dri.so
#4  0x00007f7e05ff1917 in ?? () from /usr/lib64/dri/r600_dri.so
#5  0x00007f7e1e3fba99 in start_thread (arg=0x7f7df2a99700) at pthread_create.c:456
#6  0x00007f7e24223abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 4 (Thread 0x7f7df329a700 (LWP 1666)):
#0  0x00007f7e1e402bf6 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5593946926fc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x5593946926a8, cond=0x5593946926d0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x5593946926d0, mutex=0x5593946926a8) at pthread_cond_wait.c:655
#3  0x00007f7e05ff1c6b in ?? () from /usr/lib64/dri/r600_dri.so
#4  0x00007f7e05ff1917 in ?? () from /usr/lib64/dri/r600_dri.so
#5  0x00007f7e1e3fba99 in start_thread (arg=0x7f7df329a700) at pthread_create.c:456
#6  0x00007f7e24223abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 3 (Thread 0x7f7e072a4700 (LWP 1665)):
#0  0x00007f7e2421840d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f7e1cb143fe in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f7e1cb147f2 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7e0ac681d6 in ?? () from /usr/lib64/libgio-2.0.so.0
#4  0x00007f7e1cb3ce15 in ?? () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f7e1e3fba99 in start_thread (arg=0x7f7e072a4700) at pthread_create.c:456
#6  0x00007f7e24223abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 2 (Thread 0x7f7e07aa5700 (LWP 1664)):
#0  __libc_enable_asynccancel () at ../sysdeps/unix/sysv/linux/x86_64/cancellation.S:67
#1  0x00007f7e24218402 in poll () at ../sysdeps/unix/syscall-template.S:84
#2  0x00007f7e1cb143fe in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f7e1cb1452c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f7e1cb14591 in ?? () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f7e1cb3ce15 in ?? () from /usr/lib64/libglib-2.0.so.0
#6  0x00007f7e1e3fba99 in start_thread (arg=0x7f7e07aa5700) at pthread_create.c:456
#7  0x00007f7e24223abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7f7e27886740 (LWP 1662)):
[KCrash Handler]
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#5  0x00007f7e2415ff99 in __GI_abort () at abort.c:89
#6  0x00007f7e241a151f in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f7e242a8140 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#7  0x00007f7e241a94fd in malloc_printerr (action=3, str=0x7f7e242a81b8 "double free or corruption (!prev)", ptr=<optimized out>, ar_ptr=<optimized out>) at malloc.c:5091
#8  0x00007f7e241a9e56 in _int_free (av=0x7f7e244d6b00 <main_arena>, p=0x55939f51c590, have_lock=0) at malloc.c:3880
#9  0x00007f7e252d11e7 in QImageData::~QImageData() () from /usr/lib64/libQt5Gui.so.5
#10 0x00007f7e252d14b6 in QImage::~QImage() () from /usr/lib64/libQt5Gui.so.5
#11 0x00007f7e27038040 in ?? () from /usr/lib64/libkritaui.so.16
#12 0x00007f7e259e84e8 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#13 0x00007f7e259a71dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#14 0x00007f7e259aed42 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#15 0x00007f7e270d7ac7 in KisApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkritaui.so.16
#16 0x00007f7e24d42269 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#17 0x00007f7e259e12da in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /usr/lib64/libQt5Widgets.so.5
#18 0x00007f7e259e1936 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#19 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#20 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#21 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#22 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#23 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#24 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#25 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#26 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#27 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#28 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#29 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#30 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#31 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#32 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#33 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#34 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#35 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#36 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#37 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#38 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#39 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#40 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#41 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#42 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#43 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#44 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#45 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#46 0x00007f7e259e2689 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#47 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#48 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#49 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#50 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#51 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#52 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#53 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#54 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#55 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#56 0x00007f7e259e2576 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#57 0x00007f7e259e14ab in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib64/libQt5Widgets.so.5
#58 0x00007f7e259b744f in ?? () from /usr/lib64/libQt5Widgets.so.5
#59 0x00007f7e259b76be in ?? () from /usr/lib64/libQt5Widgets.so.5
#60 0x00007f7e259cfcef in QWidgetPrivate::syncBackingStore() () from /usr/lib64/libQt5Widgets.so.5
#61 0x00007f7e259e86f0 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#62 0x00007f7e25b0592b in QMainWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#63 0x00007f7e26605a77 in KMainWindow::event(QEvent*) () from /usr/lib64/libkritawidgetutils.so.16
#64 0x00007f7e2663dc69 in KXmlGuiWindow::event(QEvent*) () from /usr/lib64/libkritawidgetutils.so.16
#65 0x00007f7e259a71dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#66 0x00007f7e259aed42 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#67 0x00007f7e270d7ac7 in KisApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkritaui.so.16
#68 0x00007f7e24d42269 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#69 0x00007f7e24d44fa3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#70 0x00007f7e24d94413 in ?? () from /usr/lib64/libQt5Core.so.5
#71 0x00007f7e1cb141ee in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#72 0x00007f7e1cb14465 in ?? () from /usr/lib64/libglib-2.0.so.0
#73 0x00007f7e1cb1452c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#74 0x00007f7e24d941bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#75 0x00007f7e24d40e1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#76 0x00007f7e24d49614 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#77 0x0000559393279d9f in main ()

Possible duplicates by query: bug 392350, bug 391270, bug 387393, bug 385145, bug 381268.

Reported using DrKonqi
Comment 1 Scott Petrovic 2018-04-17 15:41:10 UTC
Does this crash consistently with certain steps? Or did this just happen one time?

These errors look very Qt specific, so it might not be something we can fix.
Comment 2 sruz.tst 2018-04-17 16:42:34 UTC
Seems to happen consistently, with these steps:
1) open (jpg) image
2) add text using text tool
3) pick "select shapes tool" (remaining on the newly created vector layer)
4) pick the text
5) select the second tab in "tool options" applet (outline properties)
6) try to enlarge the tool options applet by dragging the bottom border
7) => crash
Some of these steps may not be necessary, but this is what I've tested couple times and what seems to reliably cause crash. I haven't had much time, I can do more testing later with clean config etc.
Comment 3 Antti Savolainen 2018-04-17 17:39:32 UTC
Thanks for the detailed steps I was able to confirm this. https://webmshare.com/0BVnw 

(gdb) bt
#0  0x00007ffff44f40bb in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff44f5f5d in __GI_abort () at abort.c:90
#2  0x00007ffff453e28d in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff4665528 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff454564a in malloc_printerr (action=<optimized out>, str=0x7ffff4665888 "free(): invalid next size (normal)", ptr=<optimized out>, ar_ptr=<optimized out>) at malloc.c:5426
#4  0x00007ffff454773e in _int_free (av=0x7ffff4897c20 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:4175
#5  0x00007ffff454c44e in __GI___libc_free (mem=<optimized out>) at malloc.c:3145
#6  0x00007ffff56c62b5 in QImageData::~QImageData() () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#7  0x00007ffff56c6327 in QImage::~QImage() () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007ffff75c117d in KisStopGradientSliderWidget::paintEvent(QPaintEvent*) (this=0x55556130c670, pe=0x7fffffffa930) at ./libs/ui/widgets/kis_stopgradient_slider_widget.cpp:117
#9  0x00007ffff5e7edc8 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007ffff5e3e46c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007ffff5e45d34 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff76aa495 in KisApplication::notify(QObject*, QEvent*) (this=0x7fffffffdda0, receiver=0x55556130c670, event=0x7fffffffa930) at ./libs/ui/KisApplication.cpp:652
#13 0x00007ffff50c3de8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff5e77f6a in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007ffff5e7852a in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#40 0x00007ffff5e79190 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#42 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#44 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#45 0x00007ffff5e79319 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#46 0x00007ffff5e78136 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#47 0x00007ffff5e4da84 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#48 0x00007ffff5e4dcc5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#49 0x00007ffff5e6753f in QWidgetPrivate::syncBackingStore() () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#50 0x00007ffff5e7ef38 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#51 0x00007ffff5f6cbab in QMainWindow::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#52 0x00007ffff6aab839 in KMainWindow::event(QEvent*) (this=0x555556b4eab0, ev=0x555560d80f70) at ./libs/widgetutils/xmlgui/kmainwindow.cpp:780
#53 0x00007ffff6ae33d1 in KXmlGuiWindow::event(QEvent*) (this=0x555556b4eab0, ev=0x555560d80f70) at ./libs/widgetutils/xmlgui/kxmlguiwindow.cpp:125
#54 0x00007ffff5e3e46c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#55 0x00007ffff5e45d34 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#56 0x00007ffff76aa495 in KisApplication::notify(QObject*, QEvent*) (this=0x7fffffffdda0, receiver=0x555556b4eab0, event=0x555560d80f70) at ./libs/ui/KisApplication.cpp:652
#57 0x00007ffff50c3de8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#58 0x00007ffff50c655d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#59 0x00007ffff511ce53 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#60 0x00007fffec790fb7 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007fffec7911f0 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007fffec79127c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#63 0x00007ffff511c47f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#64 0x00007ffff50c1e3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#65 0x00007ffff50cada4 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#66 0x0000555555849423 in main(int, char**) (argc=1, argv=0x7fffffffdf28) at ./krita/main.cc:361
Comment 4 Dmitry Kazakov 2018-04-18 20:27:34 UTC
Git commit 19f6e2ab340570562a169599bbba5c59296807ac by Dmitry Kazakov.
Committed on 18/04/2018 at 20:24.
Pushed by dkazakov into branch 'master'.

Fix crash when resizing the Tool Options for the shape selection tool

KoFillConfigWidget should update visibility of the widgets
explicitly in KoFillConfigWidget::activate() to ensure the widgets
are really hidden (since recently shapeChanged() can skip the
update if the mode hasn't changed)

M  +11   -2    libs/ui/kis_stopgradient_editor.cpp
M  +3    -0    libs/ui/widgets/KoFillConfigWidget.cpp
M  +4    -1    libs/ui/widgets/kis_stopgradient_slider_widget.cpp

https://commits.kde.org/krita/19f6e2ab340570562a169599bbba5c59296807ac
Comment 5 Dmitry Kazakov 2018-04-18 20:31:55 UTC
Just wanted to tell a big thank you to Antti Savolainen for a nice video with the reproduction steps. It helped fixing the bug a lot! :)
Comment 6 Antti Savolainen 2018-04-18 20:55:26 UTC
Happy to help. Finding out the exact steps of crashes and recording a video of them happening is extremely fun when I know I make the the life of the people fixing it easier.
Comment 7 Halla Rempt 2018-05-02 11:57:32 UTC
Git commit 29df640252a5efb1329694379980fad39d5872fd by Boudewijn Rempt, on behalf of Dmitry Kazakov.
Committed on 02/05/2018 at 11:54.
Pushed by rempt into branch 'krita/4.0'.

Fix crash when resizing the Tool Options for the shape selection tool

KoFillConfigWidget should update visibility of the widgets
explicitly in KoFillConfigWidget::activate() to ensure the widgets
are really hidden (since recently shapeChanged() can skip the
update if the mode hasn't changed)
(cherry picked from commit 1ce1fc9276ca9dd95eedf6c6fe4a4888d6f63a4c)

M  +11   -2    libs/ui/kis_stopgradient_editor.cpp
M  +3    -0    libs/ui/widgets/KoFillConfigWidget.cpp
M  +4    -1    libs/ui/widgets/kis_stopgradient_slider_widget.cpp

https://commits.kde.org/krita/29df640252a5efb1329694379980fad39d5872fd