5.3.3 Flatpack Wacon not woring under Ubunutu 26.04.1

Type of device: wacom table
Brand and version of the device: Wacom One by Wacom M Pe
System : Ubuntu 26.04.1

I have a similar problem like Krita 5.3 on ubuntu 26.04 wacom not working - #14 by wonkypolygons , but downgrading Xwayland to 24.1.9 did not fix the issue.

Krita runs without issue but the table acts as a mouse that cannot paint (I see it as a second mouse pointer).
I tested that the table works in Inkscape and GIMP.

I am running Krita 5.3.3 from flatpak. In general:

$ flatpak run org.kde.krita
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Gtk-Message: 14:46:21.239: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:46:21.240: Failed to load module "canberra-gtk-module"
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.

and it runs with the issue, the only thing I see when using the table is:

qrc:/OpenTypeFeatureDelegate.qml:113:5: QML ToolTipBase: cannot find any window to open popup in.
qrc:/OpenTypeFeatureDelegate.qml:113:5: QML ToolTipBase: cannot find any window to open popup in.
The imageRectInWidgetPixels topLeft() does not match the documentOffsetF!
imageRectInWidgetPixels: QRectF(-0.6,-0.6 0x0)
documentOffsetF: QPointF(1,1)
qt.qpa.xkeyboard: QXcbKeyboard::handleKeyEvent: key pressed, but it is already present in the registry code 133 qtcode 16777299 registered qtcode 16777299
qt.qpa.xkeyboard: QXcbKeyboard::handleKeyEvent: key pressed, but it is already present in the registry code 133 qtcode 16777299 registered qtcode 16777299

When I try forcing wayland I get qt.qpa errros, e.g.:

$ flatpak run  --socket=wayland --env=QT_QPA_PLATFORM=wayland --env=XDG_SESSION_TYPE=wayland org.kde.krita
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, xcb.

though I have installed (qt6-wayland and qtwayland5). If I use flatseal with this option:

I get a similar error:

$ flatpak run org.kde.krita
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, xcb.

Activating the last switch “Inheriting wayland socket” does not change anything.

I also trying running the AppImage, but get the same results (and it takes ages to start!)

Any help is highly appreciated.

:slight_smile: Hello @kakila, and welcome to the forum!

Did you already try it with the AppImage to cross-check if the issue persists when you use the one and only official version of Krita for Linux?
Did you try another driver, like those from OpenTabletDriver?

Michelist

@Michelist thank you for your prompt answer.
As I mentioned, I tried the app with the same results

$ ./Downloads/krita-5.3.3-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 
Could not find platform dependent libraries <exec_prefix>
/tmp/.mount_krita-JiCjhK/usr/lib/krita-python-libs/krita added to PYTHONPATH
qrc:/OpenTypeFeatureDelegate.qml:113:5: QML ToolTipBase: cannot find any window to open popup in.
qrc:/OpenTypeFeatureDelegate.qml:113:5: QML ToolTipBase: cannot find any window to open popup in.
The imageRectInWidgetPixels topLeft() does not match the documentOffsetF!
imageRectInWidgetPixels: QRectF(-0.6,-0.6 0x0)
documentOffsetF: QPointF(1,1)


$ QT_QPA_PLATFORM=wayland ./Downloads/krita-5.3.3-x86_64.AppImage
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Abgebrochen                (Speicherabzug geschrieben) QT_QPA_PLATFORM=wayland ./Downloads/krita-5.3.3-x86_64.AppImage


$ sudo dpkg -i ~/Downloads/xwayland_24.1.9-1_amd64.deb
[sudo: authenticate] Passwort:
$dpkg: Warnung: Paket xwayland (2:24.1.10-1) wird durch ältere Version (2:24.1.9-1) ersetzt
(Lese Datenbank ... 257940 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../xwayland_24.1.9-1_amd64.deb ...
Entpacken von xwayland (2:24.1.9-1) über (2:24.1.10-1) ...
xwayland (2:24.1.9-1) wird eingerichtet ...
Trigger für desktop-file-utils (0.28-1build1) werden verarbeitet ...
Trigger für gnome-menus (3.38.1-1ubuntu1) werden verarbeitet ...
Trigger für man-db (2.13.1-1build1) werden verarbeitet ...

$ Xwayland -version
The X.Org Foundation Xwayland Version 24.1.9 (12401009)
X Protocol Version 11, Revision 0
xwayland 24.1.9 (
)


$ QT_QPA_PLATFORM=wayland ./Downloads/krita-5.3.3-x86_64.AppImage
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Abgebrochen                (Speicherabzug geschrieben) QT_QPA_PLATFORM=wayland ./Downloads/krita-5.3.3-x86_64.AppImage


If you propose things to test, I can give it a try.

Regaring drivers: the table works without issues at the GNOME level and in all the other apps I tried (Inkscape, GIMP, Gromix MPX)

Oops, I’ve overlooked that you mentioned he AppImage at the end.

Okay, but you will then have to hope that a knowledgeable Linux user takes notice of your topic and can offer a solution. I’m far out of my depth here, although I set up my first Linux machine in the mid-90s and have used some over the years. However, I’m a Windows guy. I don’t like Windows, but I know it very well, having provided support for it for years.

Michelist

@Michelist don0t worry, thank you very much.

I’ll post links to the issue in other channels, maybe somebody takes a look

Most likely the xwayland bug again: Touchscreen stylus not working on Gnome 50

Thanks @Ciubix , I had tried downgrading xwayland already. In the last post you see that did not fix the issue.

Hi all, @Lynx3d gave a tip and pointed me to the 6.0.3 ImageApp.
The app loads much faster than the 5.3.3 and the tablet work when I pass the environment variable QT_QPA_PLATFORM=wayland.
Loads of warnings though:

$ QT_QPA_PLATFORM=wayland ./Downloads/krita-6.0.3-x86_64.AppImage
This plugin does not support dynamic OpenGL loading!
This plugin does not support dynamic OpenGL loading!
INFO: prefill qrhi surface: 0
Could not find platform independent libraries 
Could not find platform dependent libraries <exec_prefix>
/tmp/.mount_krita-LdepFh/usr/lib/krita-python-libs/krita added to PYTHONPATH
qrc:/FontStyle.qml:294:9: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/FontStyle.qml:302:13
qrc:/FontStyle.qml:273:9: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/FontStyle.qml:281:13
qrc:/TextAlign.qml:269:9: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/TextAlign.qml:275:13
qrc:/TextAlign.qml:252:13: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/TextAlign.qml:260:17
qrc:/TextAlign.qml:238:13: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/TextAlign.qml:245:17
qrc:/TextAlign.qml:225:13: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/TextAlign.qml:233:17
qrc:/FontStyle.qml:294:9: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/FontStyle.qml:302:13
qrc:/FontStyle.qml:273:9: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/FontStyle.qml:281:13
qrc:/TextAlign.qml:269:9: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/TextAlign.qml:275:13
qrc:/TextAlign.qml:252:13: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/TextAlign.qml:260:17
qrc:/TextAlign.qml:238:13: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/TextAlign.qml:245:17
qrc:/TextAlign.qml:225:13: QML GroupButton: Binding loop detected for property "icon.color":
qrc:/TextAlign.qml:233:17
qrc:/TextIndent.qml:102:9: QML RowLayout: Binding loop detected for property "height"
qrc:/TextIndent.qml:102:9: QML RowLayout: Binding loop detected for property "height"
FPS-DEBUG: Frame compression mode: two frames (default)
qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
qt.qpa.wayland: Can't send tablet event with no proximity surface, ignoring
qt.qpa.wayland: Can't send tablet event with no proximity surface, ignoring
qt.qpa.wayland.textinput: virtual void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_leave(wl_surface*) Got leave event for surface 0x0 focused surface 0x59be232c8760
qt.qpa.wayland: Can't send tablet event with no proximity surface, ignoring
qt.qpa.wayland.textinput: virtual void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_leave(wl_surface*) Got leave event for surface 0x0 focused surface 0x59be3348d3e0
The imageRectInWidgetPixels topLeft() does not match the documentOffsetF!
imageRectInWidgetPixels: QRectF(-0.6,-0.6 0x0)
documentOffsetF: QPointF(1,1)
qt.qpa.wayland: Can't send tablet event with no proximity surface, ignoring
qt.qpa.wayland: Can't send tablet event with no proximity surface, ignoring
qt.qpa.wayland: Can't send tablet event with no proximity surface, ignoring
...
qt.qpa.wayland: Can't send tablet event with no proximity surface, ignoring
qt.qpa.wayland.textinput: virtual void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_leave(wl_surface*) Got leave event for surface 0x0 focused surface 0x59be25892c90
qt.qpa.wayland: Can't send tablet event with no proximity surface, ignoring
QWidgetRepaintManager: skipped frames: 0.995025 %
qt.qpa.wayland.textinput: virtual void QtWaylandClient::QWaylandTextInputv3::zwp_text_input_v3_leave(wl_surface*) Got leave event for surface 0x0 focused surface 0x59be30050890


You will never be able to run 5.3 with QT_QPA_PLATFORM=wayland 5.3 does not have wayland support built in at all. Have you tried running 5.3 with downgraded xwayland and without the variable?

@Ciubix yes, I understand that now :smiley: (lynx3d told me the same in the pepper&carrot chat).
So, testing 5.3.3 with downgraded Xwayland (24.1.9) still doesn’t work and I see this output in the console:

$ ./Downloads/krita-5.3.3-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 
Could not find platform dependent libraries <exec_prefix>
/tmp/.mount_krita-GdnnOb/usr/lib/krita-python-libs/krita added to PYTHONPATH
qrc:/OpenTypeFeatureDelegate.qml:113:5: QML ToolTipBase: cannot find any window to open popup in.
qrc:/OpenTypeFeatureDelegate.qml:113:5: QML ToolTipBase: cannot find any window to open popup in.
The imageRectInWidgetPixels topLeft() does not match the documentOffsetF!
imageRectInWidgetPixels: QRectF(-0.6,-0.6 0x0)
documentOffsetF: QPointF(1,1)


repeat, this is with downgraded XWayland:

$ Xwayland -version
The X.Org Foundation Xwayland Version 24.1.9 (12401009)
X Protocol Version 11, Revision 0
xwayland 24.1.9 (
)


So, I think I wioll stick to the 6.0.3 ImageApp and wait for flatpak to upgrade to the 6.x releases

Don’t know if it helps, but rather than downgrading you could try upgrading to the latest xwayland:

24.1.13-1 works for me with krita on ubuntu 26.04. Also saves me the trouble of the package changement to 10-1 every time I update the system.