Bug 438563

Summary: krita seg fault on redo crop
Product: [Applications] krita Reporter: ByteEnable <ByteEnable>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: shzam, tamtamy.tymona
Priority: NOR    
Version: 4.4.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ByteEnable 2021-06-13 16:51:20 UTC
KDE Crash Handler failed to upload so here is the report.

Application: krita (4.4.3-beta1)

Qt Version: 5.15.2
Frameworks Version: 5.82.0
Operating System: Linux 5.12.9-300.fc34.x86_64 x86_64
Windowing System: X11
Drkonqi Version: 5.22.0
Distribution: Fedora 34 (Thirty Four)

-- Information about the crash:
- What I was doing when the application crashed:
Captured a screenshot via Spectacle.
Copied the image to the clipboard
Pasted as new web image into Krita
Cropped the image
Just clicked on the image to undo crop
Redo crop via the menu
crash

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fe449e80b63 in KisSavedCommandBase::runStroke(bool) () from /lib64/libkritaimage.so.20
#5  0x00007fe4477b5282 in KUndo2QStack::redo() () from /lib64/libkritacommand.so.20
#6  0x00007fe44af72966 in UndoStack::processPostponedJobs() () from /lib64/libkritaui.so.20
#7  0x00007fe448b124fd in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#8  0x00007fe449569686 in QAction::triggered(bool) () from /lib64/libQt5Widgets.so.5
#9  0x00007fe44956bf70 in QAction::activate(QAction::ActionEvent) () from /lib64/libQt5Widgets.so.5
#10 0x00007fe4496e9fea in QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) () from /lib64/libQt5Widgets.so.5
#11 0x00007fe4496f1612 in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) () from /lib64/libQt5Widgets.so.5
#12 0x00007fe4495b085e in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#13 0x00007fe44956fe73 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#14 0x00007fe4495775ad in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#15 0x00007fe44af676bd in KisApplication::notify(QObject*, QEvent*) () from /lib64/libkritaui.so.20
#16 0x00007fe448ae1f48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#17 0x00007fe449575e6a in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib64/libQt5Widgets.so.5
#18 0x00007fe4495c93a0 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#19 0x00007fe4495cc1fe in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#20 0x00007fe44956fe73 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#21 0x00007fe44af676bd in KisApplication::notify(QObject*, QEvent*) () from /lib64/libkritaui.so.20
#22 0x00007fe448ae1f48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#23 0x00007fe448f1ca08 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#24 0x00007fe448efe4fc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#25 0x00007fe435c234ce in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#26 0x00007fe4461954cf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#27 0x00007fe4461e94e8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#28 0x00007fe446192c03 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#29 0x00007fe448b2e6f8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#30 0x00007fe448ae09b2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#31 0x00007fe448ae8544 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#32 0x00005622c03979f4 in main ()
[Inferior 1 (process 18619) detached]

Report to https://bugs.kde.org/
Comment 1 sh_zam 2021-06-20 12:42:08 UTC
The fix is in Krita 4.4.5

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