flathub / org.kde.krita

https://flathub.org/apps/details/org.kde.krita
5 stars 13 forks source link

Krita 5.2.2 crashes when I try to use the "Save as" option #525

Closed cold-distance closed 7 months ago

cold-distance commented 7 months ago

Hi, I saw that some Flatpak runtimes were updated yesterday and since then Krita 5.2.2 crashes when I try to use the "Save as" option. Even the "Save" option crashes the application if I try to save from a blank project.

I use Fedora Silverblue 39 with GNOME 45.5 and the Wayland session. I didn't see the same behaviour in other KDE apps like Kdenlive and Okular, so it seems specify of Krita.

I don't know what runtimes are used for Krita Flatpak. If you give me more instructions I can follow them. I share what I get booting the app from the terminal.

STEPS TO REPRODUCE

  1. Open Krita 5.2.2 Flatpak.
  2. Use the "Save as" option or try to "Save" from a new project.
  3. You see that the app crashes.

Bug when I try to save a file in Krita 5.2.2.txt Captura desde 2024-03-20 13-03-21

SteffenDuenner commented 7 months ago

I'm getting the same error message as the original poster on Linux Mint 21.3 but running an X session, not Wayland.

(krita:2): GLib-GIO-ERROR **: 17:22:52.361: No GSettings schemas are installed on the system

Krita crashes with this message every time it tries to open a file dialogue (File > Open, File > Save As, Layer > Import > Import Layer, ...). Not only a "Save As" dialogue.

Dragging and dropping images on the GUI to add layers or images works as expected, though.

lboekhorst commented 7 months ago

I am having the same issue running Pop!_OS 22.04 LTS / GNOME 42.9 / X11. I also observe it crashes for every interaction which involves a file picker.

oqipoDev commented 7 months ago

I am getting identical terminal output to cold-distance (minus Wayland related messages), it started this morning.

Upon reading the error message, I thought that the issue might be resolved by manually specifying the XDG_DATA_DIRS environment variable to /usr/local/share. Unfortunately, although the error message goes away at the time of the crash, well, it's still crashing, so it might be unrelated.

After doing that, instead of the last error I get these warnings and a GTK error:

(krita:2): Gtk-WARNING **: 23:56:26.728: Could not find the icon 'user-home-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
    http://icon-theme.freedesktop.org/releases

(krita:2): Gtk-WARNING **: 23:56:26.729: Could not load a pixbuf from /org/gtk/libgtk/icons/16x16/status/image-missing.png.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: No se ha reconocido el formato de imagen del archivo (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: No se ha reconocido el formato de imagen del archivo (gdk-pixbuf-error-quark, 3)

Meanwhile, the ~/.var/app/org.kde.krita/data/krita.log file offers little help. All entries look like this, but with different date and hour:

SESSION: 20 Mar 2024 23:39:20 -0600. Executing krita

Krita Version: 5.2.2, Qt version compiled: 5.15.7, loaded: 5.15.7. Process ID: 2
-- -- -- -- -- -- -- --
20 Mar 2024 23:39:20 -0600: Style: fusion. Available styles: Windows, Fusion
20 Mar 2024 23:39:21 -0600: Database is up to date. Version: 0.0.17, created by Krita 5.1.5, at mar oct. 10 19:51:48 2023

KRITA DID NOT CLOSE CORRECTLY

I don't know where to go from here, so for now, I'll just let this comment hoping the issue gets resolved.

System info:

SreckoM commented 7 months ago

Same here, can not use Krita at this stage.

CiQL commented 7 months ago

I am also having this issue on the Flatpak build of Krita for two different devices, both running immutable distros. Downgrading to commit 4e65184e15c22153a8072998084b7797b63b16989c4ca4478431e504f3f44bce (sudo flatpak update --commit=4e65184e15c22153a8072998084b7797b63b16989c4ca4478431e504f3f44bce org.kde.krita) reverted my Krita install to 5.2.0, which seems to be the most recent version that still allows me to open and save files properly. I am not having this issue with the AppImage build of Krita.

bbhtt commented 7 months ago

This should be fixed by https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/18580 A new runtime release should be up soon.

bbhtt commented 7 months ago

should be fixed now

cold-distance commented 7 months ago

I can save as usual now. Thanks.