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

Segmentation fault with Krita 3 and 4

Tags: None
(comma "," separated)
richardrichardson
Registered Member
Posts
5
Karma
0
Somehow Krita starts but won't open any image.

When I run the AppImage from terminal, it is saying

Code: Select all
./krita-4.1.5-x86_64.appimage
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Delegate created
/tmp/.mount_krita-Kr9YpD/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")
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/opacity-decrease
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/opacity-increase
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/lightness-increase
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/lightness-decrease
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/zoom-in
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotate-canvas-left
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotation-reset
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotate-canvas-right
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/zoom-out
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/brushsize-decrease
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/brushsize-increase
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/preset-switcher
file:///tmp/.mount_krita-Kr9YpD/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/edit-clear



When I open an image, Krita closes and the following is added

Code: Select all
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+["
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
Segmentationfault


I am at my wits end, please help
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
well, something is broken, but this output doesn't tell us what. Please tell us which Linux distribution and version you are using, exactly. Also try running the appimage as a different user.
richardrichardson
Registered Member
Posts
5
Karma
0
Hi Boudewijn, I have output from Krita 3.2.0 and 3.3.3 that looks different, but all end with a segmentation fault. Could it be a dependency for an AppImage? I am using Debian 8.6.

I did change the name of this directory ~.local/share/krita, that isn't exactly the same as trying to run as a different user isn't it?

This is the last output from a Krita 3.2.0 AppImage, here is where the problem started.
Code: Select all
libpng warning: iCCP: too many profiles
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
No file found for ".xml" , even though update-mime-info said it would exist.
Either it was just removed, or the directory doesn't have executable permission... ("/user/.local/share/mime", "/usr/share/mime")
krita.core: Missing name attribute for tag  "date"
libpng warning: iCCP: too many profiles
Segmentatiefout


Now I didn't run another user yet, I will but first I will have a look at my system, I did deinstall some stuff because apt-get said so with apt-get autoremove. I wait for your reply first and if the output above isn't helpful I'll restart my system, Clonezilla it and start reinstalling stuff untill it works again (I hope).
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
You should also remove .config/kritarc: that's the settings file.

If all appimages segfault, I suspect there might be a compatibility problem with this version of Debian.
richardrichardson
Registered Member
Posts
5
Karma
0
Krita 3.2.0 did work before and I had been removing packages. I did have a look at /var/log/apt/term.log and I removed Firefox ESR, before that I removed geeqie (a image viewer).

Firefox ESR said (apt-get remove firefox-esr)
Code: Select all
firefox-esr (45.5.0esr-1~deb8u1) wordt verwijderd ...
<snip>
Bezig met afhandelen van triggers voor desktop-file-utils (0.22-1) ...
Bezig met afhandelen van triggers voor mime-support (3.58) ...
<snip>


Geeqie said (apt-get remove geeqie)
Code: Select all
geeqie (1:1.2-3+b1) wordt verwijderd ...
Bezig met afhandelen van triggers voor desktop-file-utils (0.22-1) ...
Bezig met afhandelen van triggers voor mime-support (3.58) ...


The package geeqie-common was left behind on the system and I found that in this state all three Krita versions came with a segmentation fault.

Now I'm not sure this would be helpful or not (since I can not know what part in my system had made an error as I explain below) but the difference was that Krita 4.1.5 wouldn't run either without the package geeqie, which seems to have done some thing to .desktop files an mime types just like Firefox-ESR.

However in the end I tested with Krita 4.1.5, which also worked again with package geeqie reinstalled.

So what did I do, removing package geeqie learning that Krita 3.2.0 gave more error output then with geeqie installed, but Krita 3.2.0 did no longer give segmentation fault and for Krita 4.1.5 this is even better, with or without geeqie it's output is
Code: Select all
file:///tmp/.mount_krita-1sedja/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/edit-clear
No file found for ".xml" , even though update-mime-info said it would exist.
Either it was just removed, or the directory doesn't have executable permission... ("/root/.local/share/mime", "/tmp/.mount_krita-1sedja/usr/share/mime", "/usr/share/mime")
schemasFilenames ("/tmp/.mount_krita-1sedja/usr/share/krita/metadata/schemas/dc.schema", "/tmp/.mount_krita-1sedja/usr/share/krita/metadata/schemas/exif.schema", "/tmp/.mount_krita-1sedja/usr/share/krita/metadata/schemas/exrchannels.schema", "/tmp/.mount_krita-1sedja/usr/share/krita/metadata/schemas/mkn.schema", "/tmp/.mount_krita-1sedja/usr/share/krita/metadata/schemas/tiff.schema", "/tmp/.mount_krita-1sedja/usr/share/krita/metadata/schemas/xmp.schema", "/tmp/.mount_krita-1sedja/usr/share/krita/metadata/schemas/xmpmm.schema", "/tmp/.mount_krita-1sedja/usr/share/krita/metadata/schemas/xmprights.schema")
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


The only remarkable thing was that Krita 4.1.5 also kept giving a segmentation fault that reinstalling geeqie testing Krita, all versions worked and after that I removed geeqie and Krita kept working, I'm happy it does, there is actually nothing else for me then Krita under Linux and I tried to find out if it would be a mime thing or not but I couldn't find and this error went away. My issue has been solved, thank you for your help ^-^


Bookmarks



Who is online

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