This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Krita crashes when stylus cursor touches the canvas

Tags: None
(comma "," separated)
Kaelygon
Registered Member
Posts
2
Karma
0
Operating system: Arch Linux 4.19.8
Krita version 4.1.5
Nvidia version 415.22
Tablet drivers: https://github.com/DIGImend/digimend-kernel-drivers

I just recently did system update and noticed that Krita crashes immediately when I hover stylus cursor over the canvas but I can only use stylus to navigate menus. Everything still works in Gimp. I reinstalled Krita and tablet drivers.

Krita still works perfectly fine with mouse but I have no clue why it won't work with graphics tablet. I tested this with huion h1060, h610 and also tried enabling and disabling graphic acceleration.

Edit: I tested this with couple Krita and Linux versions

Log below

Code: Select all
[17:00:27] [campus@Kaelygon ~]$ krita

(process:1199): Gtk-WARNING **: 17:00:29.175: Locale not supported by C library.
   Using the fallback 'C' locale.
qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown), sequence: 221, resource id: 0, major code: 140 (Unknown), minor code: 20
Delegate created
/usr/lib/krita-python-libs/krita added to PYTHONPATH
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Bold")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Light")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
Shortcut for action  "reset_canvas_rotation" "Reset Canvas Rotation" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/edit-clear
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/lightness-increase
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/opacity-decrease
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/opacity-increase
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/lightness-decrease
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/zoom-in
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotate-canvas-left
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotation-reset
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotate-canvas-right
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/zoom-out
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/brushsize-decrease
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/brushsize-increase
file:///usr/lib/qt/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/preset-switcher
krita.lib.flake: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]"
krita.lib.flake: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+["
krita.lib.flake: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]"
krita.lib.flake: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+["
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setCompositionMode: Painter not active
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setCompositionMode: Painter not active
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
Segmentation fault (core dumped)
[campus@Kaelygon ~]$ uname -a
Linux Kaelygon 4.19.8-arch1-1-ARCH #1 SMP PREEMPT Sat Dec 8 13:49:11 UTC 2018 x86_64 GNU/Linux
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
I You're the third to complain about this. It's a problem with the Arch update, not a bug in Krita. I don't use Arch myself (because this kind of issue happens embarrassingly often), but maybe just rebuilding Krita will fix all the broken dependencies.
User avatar
Vladar
Registered Member
Posts
11
Karma
0
Confirm. Same problem on Arch.
Downgrading to previous version (and locking upgrades) solved the issue for now.

The following packages require the downgrade (log from pacman):
Code: Select all
karchive: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kauth: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kcompletion: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kconfig: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kcoreaddons: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kcrash: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kdbusaddons: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kguiaddons: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
ki18n: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kio: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kitemviews: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
krita: ignoring package upgrade (4.1.5-1 => 4.1.6-1)
kservice: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kwidgetsaddons: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
kwindowsystem: ignoring package upgrade (5.52.0-1 => 5.53.0-1)
qt5-base: ignoring package upgrade (5.11.2-3 => 5.12.0-1)
qt5-charts: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-declarative: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-location: ignoring package upgrade (5.11.2-2 => 5.12.0-1)
qt5-multimedia: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-quickcontrols: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-script: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-sensors: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-serialport: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-speech: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-svg: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-tools: ignoring package upgrade (5.11.2-2 => 5.12.0-1)
qt5-webchannel: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-webengine: ignoring package upgrade (5.11.2-2 => 5.12.0-1)
qt5-x11extras: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
qt5-xmlpatterns: ignoring package upgrade (5.11.2-1 => 5.12.0-1)
User avatar
zanny
Registered Member
Posts
10
Karma
0
OS
This is actually caused by a 5.12 regression. I made an issue for it over on the Qt bug tracker here: https://bugreports.qt.io/browse/QTBUG-72488

For any Arch user coming upon this, either revert to 5.11 or build qt5-base with commit d2e0e416d4444ccf3c208d6770e32ff0fb04b543 reverted.

Last edited by zanny on Tue Dec 11, 2018 11:50 pm, edited 1 time in total.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Thanks for figuring out what that is, exactly!
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Okay, I've worked around the bug, and the Qt people know about it and agree that QTabletEvent needs a copy constructor :-) Fix will be in tomorrow's release.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]