Bug 447583 - Cannot create new image or open existing image (on Wayland)
Summary: Cannot create new image or open existing image (on Wayland)
Status: RESOLVED LATER
Alias: None
Product: krita
Classification: Applications
Component: * Unknown (show other bugs)
Version: 5.0.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-27 17:58 UTC by assaf_hershko
Modified: 2021-12-27 18:23 UTC (History)
1 user (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 assaf_hershko 2021-12-27 17:58:22 UTC
I'm on Arch Linux (EndeavourOS), using Gnome. System up to date. Nvidia graphics, using Wayland.
Installed the latest version of Krita using pacman (i.e. from the Arch repositories).

The application opens fine, but when I try to create a new document nothing happens after I press the Create button (the dialog just closes with nothing happening).

This is what I'm seeing in the terminal (the 4 statements at the end about "QOpenGLWidget" show up after I press the Create button):

[assaf@assaf-endeavour ~]$ krita
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

(process:15074): Gtk-WARNING **: 17:54:49.524: Locale not supported by C library.
	Using the fallback 'C' locale.
Invalid profile :  "/usr/share/color/icc/colord/Crayons.icc" "Crayon Colors"
Invalid profile :  "/usr/share/color/icc/colord/x11-colors.icc" "X11 Colors"
Loading plugin "/usr/lib/kritaplugins/kritaseexprgenerator.so" failed,  "Cannot load library /usr/lib/kritaplugins/kritaseexprgenerator.so: (libKSeExprUI.so.4: cannot open shared object file: No such file or directory)"
Loading plugin "/usr/lib/kritaplugins/kritamypaintop.so" failed,  "Cannot load library /usr/lib/kritaplugins/kritamypaintop.so: (libmypaint.so.0: cannot open shared object file: No such file or directory)"
QObject::startTimer: Timers cannot have negative intervals
krita.scripting: "Traceback (most recent call last):"
krita.scripting: "  File \"/usr/lib/krita-python-libs/krita/__init__.py\", line 11, in <module>"
krita.scripting: "    from .api import *"
krita.scripting: "  File \"/usr/lib/krita-python-libs/krita/api.py\", line 15, in <module>"
krita.scripting: "    from PyKrita.krita import *"
krita.scripting: "ModuleNotFoundError: No module named 'PyQt5'"
krita.scripting: "Could not import krita"
QOpenGLWidget: Failed to make context current
QOpenGLWidget: Failed to make context current
QOpenGLWidget: Failed to make context current
QOpenGLWidget: Failed to make context current
Comment 1 assaf_hershko 2021-12-27 18:05:23 UTC
Also tried with the latest appimage (downloaded from the Krita website). Application crashed completely after pressing the "Create" button (File => New => Create).

This is what I see in the terminal:

[assaf@assaf-endeavour Downloads]$ ./krita-5.0.0-x86_64.appimage 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QObject::startTimer: Timers cannot have negative intervals
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
/tmp/.mount_krita-ozhZ8z/usr/lib/krita-python-libs/krita added to PYTHONPATH
The X11 connection broke: No error (code 0)
X connection to :0 broken (explicit kill or server shutdown).
Segmentation fault (core dumped)
Comment 2 Halla Rempt 2021-12-27 18:10:12 UTC
Krita simply does not support Wayland at this moment. We're also not working on it yet; versions of Qt that work with Wayland and tablets are too broken to use, and Qt 5.12 doesn''t support it. Apparently there's a workaround or a patch in Arch that disables our warning dialog about that.
Comment 3 assaf_hershko 2021-12-27 18:18:12 UTC
Thanks Halla. Sad to hear, as I have to use Wayland (to get fractional scaling) and would love to be able to use Krita. Keeping my fingers crossed for it in the future.
Comment 4 assaf_hershko 2021-12-27 18:23:46 UTC
Just wondering - is there a way to run Krita on XWayland?