Bug 453953 - Krita 5.0.6 crashes on save dialog
Summary: Krita 5.0.6 crashes on save dialog
Status: RESOLVED DUPLICATE of bug 453884
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.0.6
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-05-17 19:45 UTC by twoexem
Modified: 2022-05-18 08:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description twoexem 2022-05-17 19:45:54 UTC
Application: krita (5.0.6)

Qt Version: 5.15.4
Frameworks Version: 5.94.0
Operating System: Linux 5.17.7-arch1-2 x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.24.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Try to safe my work as a .kra file.

- Unusual behavior I noticed:
Krita throws a segfault when I press the save or abort button, but the file gets saved nonetheless.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f8705172c77 in  () at /usr/lib/libkritawidgetutils.so.17
#5  0x00007f87051d63dc in KToolBar::~KToolBar() () at /usr/lib/libkritawidgetutils.so.17
#6  0x00007f87051d64be in KToolBar::~KToolBar() () at /usr/lib/libkritawidgetutils.so.17
#7  0x00007f8706757af5 in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#8  0x00007f87071c5d05 in QWidget::~QWidget() () at /usr/lib/libQt5Widgets.so.5
#9  0x00007f87071c5f1e in QWidget::~QWidget() () at /usr/lib/libQt5Widgets.so.5
#10 0x00007f8706757af5 in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#11 0x00007f87071c5d05 in QWidget::~QWidget() () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f870734e9be in QSplitter::~QSplitter() () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f8706757af5 in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#14 0x00007f87071c5d05 in QWidget::~QWidget() () at /usr/lib/libQt5Widgets.so.5
#15 0x00007f870037ff0e in KFileWidget::~KFileWidget() () at /usr/lib/libKF5KIOFileWidgets.so.5
#16 0x00007f8706757af5 in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#17 0x00007f87071c5d05 in QWidget::~QWidget() () at /usr/lib/libQt5Widgets.so.5
#18 0x00007f8700450c82 in  () at /usr/lib/qt/plugins/platformthemes/KDEPlasmaPlatformTheme.so
#19 0x00007f87004664fc in  () at /usr/lib/qt/plugins/platformthemes/KDEPlasmaPlatformTheme.so
#20 0x00007f870046656d in  () at /usr/lib/qt/plugins/platformthemes/KDEPlasmaPlatformTheme.so
#21 0x00007f870739a828 in QDialogPrivate::~QDialogPrivate() () at /usr/lib/libQt5Widgets.so.5
#22 0x00007f87073a9aee in QFileDialogPrivate::~QFileDialogPrivate() () at /usr/lib/libQt5Widgets.so.5
#23 0x00007f8705167176 in  () at /usr/lib/libkritawidgetutils.so.17
#24 0x00007f870517d6e0 in KoFileDialog::~KoFileDialog() () at /usr/lib/libkritawidgetutils.so.17
#25 0x00007f87083da7ff in KisMainWindow::saveDocument(KisDocument*, bool, bool, bool) () at /usr/lib/libkritaui.so.17
#26 0x00007f87083db359 in KisMainWindow::slotFileSave() () at /usr/lib/libkritaui.so.17
#27 0x00007f87067619b8 in  () at /usr/lib/libQt5Core.so.5
#28 0x00007f8707195e07 in QAction::triggered(bool) () at /usr/lib/libQt5Widgets.so.5
#29 0x00007f870719b817 in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt5Widgets.so.5
#30 0x00007f870728a4ce in  () at /usr/lib/libQt5Widgets.so.5
#31 0x00007f870728a6d0 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5
#32 0x00007f870737c94f in QToolButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5
#33 0x00007f87071d9677 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#34 0x00007f87071a2a7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#35 0x00007f87071a8289 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#36 0x00007f870839e84f in KisApplication::notify(QObject*, QEvent*) () at /usr/lib/libkritaui.so.17
#37 0x00007f87067311e8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#38 0x00007f87071a6287 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /usr/lib/libQt5Widgets.so.5
#39 0x00007f87071f7345 in  () at /usr/lib/libQt5Widgets.so.5
#40 0x00007f87071f90ee in  () at /usr/lib/libQt5Widgets.so.5
#41 0x00007f87071a2a7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#42 0x00007f870839e84f in KisApplication::notify(QObject*, QEvent*) () at /usr/lib/libkritaui.so.17
#43 0x00007f87067311e8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#44 0x00007f8706b02f8c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#45 0x00007f8706aec8e5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#46 0x00007f87005b7df0 in  () at /usr/lib/libQt5XcbQpa.so.5
#47 0x00007f8703acc163 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#48 0x00007f8703b229e9 in  () at /usr/lib/libglib-2.0.so.0
#49 0x00007f8703ac96c5 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#50 0x00007f870677b9ac in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#51 0x00007f870672999c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#52 0x00007f8706734499 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#53 0x000055c1988429a8 in  ()
#54 0x00007f8706069290 in  () at /usr/lib/libc.so.6
#55 0x00007f870606934a in __libc_start_main () at /usr/lib/libc.so.6
#56 0x000055c198843c25 in  ()
[Inferior 1 (process 2500) detached]

Possible duplicates by query: bug 453884, bug 452374, bug 438256, bug 436724, bug 436705.

Reported using DrKonqi
Comment 1 Halla Rempt 2022-05-17 19:51:40 UTC
Yes, Arch broke stuff, as it is wont to do. Not a bug in Krita. If you cannot recognize it when Arch breaks stuff, please use a different distribution. You're the second one to report this "issue" and not recognize that it's not a bug in Krita.

*** This bug has been marked as a duplicate of bug 453884 ***
Comment 2 twoexem 2022-05-17 20:00:09 UTC
(In reply to Halla Rempt from comment #1)
> Yes, Arch broke stuff, as it is wont to do. Not a bug in Krita. If you
> cannot recognize it when Arch breaks stuff, please use a different
> distribution. You're the second one to report this "issue" and not recognize
> that it's not a bug in Krita.
> 
> *** This bug has been marked as a duplicate of bug 453884 ***

I'm no technical user, the KCrash dialogue just popped up and I figured I'd create a bug report. How can I see the difference between Arch breaking something and Krita breaking on itself?
Comment 3 Halla Rempt 2022-05-18 06:29:43 UTC
If you're not a technical user, you should not be using Arch linux: heck, I've been using Linux since 1993 and I won't use Arch because it breaks too often. Basically, if you're on Arch, and you get crashes, it's Arch beinb broken.
Comment 4 Antonio Rojas 2022-05-18 07:39:42 UTC
(In reply to Halla Rempt from comment #1)
> Yes, Arch broke stuff, as it is wont to do. Not a bug in Krita. If you
> cannot recognize it when Arch breaks stuff, please use a different
> distribution. You're the second one to report this "issue" and not recognize
> that it's not a bug in Krita.

You might want to tune down your tone a bit and show a minimum of respect for other projects and other people's work, as I'm sure you expect the same for yours.

No, Arch did not break anything. As it has been pointed out to you already in the duplicate report, this is caused by kxmlgui 5.94. Like 90% of the times you randomly accuse Arch of "breaking things", the only reason you are getting reports from Arch is that it's one of the first distros to update packages. You will soon enough start getting reports from other distros.

There is nothing Arch can do to fix this. This needs to be addressed in krita or kxmlgui. There, I even did the bisecting for you:
https://invent.kde.org/frameworks/kxmlgui/-/commit/9d0885549bcdf57d33007d8c30dc09ef47cb3eec
Comment 5 twoexem 2022-05-18 08:24:23 UTC
(In reply to Halla Rempt from comment #3)
> If you're not a technical user, you should not be using Arch linux: heck,
> I've been using Linux since 1993 and I won't use Arch because it breaks too
> often. Basically, if you're on Arch, and you get crashes, it's Arch beinb
> broken.

Arch Linux is usually pretty stable for me, I've used it for over a year now and nothing ever broke, except for a GRUB update removing my boot record once. Downgrading the kxmlgui package like suggested in the other report stopped the crashing, so I'll use that as a workaround until it gets fixed.