Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when export button clicked #15686

Closed
1 of 2 tasks
sulincix opened this issue Jun 6, 2023 · 4 comments
Closed
1 of 2 tasks

Crash when export button clicked #15686

sulincix opened this issue Jun 6, 2023 · 4 comments
Labels
Status: Duplicate Duplicate of another issue. Type: Bug The code does not produce the intended behavior.

Comments

@sulincix
Copy link

sulincix commented Jun 6, 2023

Application Version

5.3.1

Operating System

Gentoo GNU/Linux

Printer

Ender 3 V2

Reproduction steps

  1. install gentoo openrc gnome
  2. download cura
  3. executable

Actual results

Error output:

PyInstaller/loader/pyimod02_importers.py:352: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
Gtk-Message: 20:09:01.959: Failed to load module "canberra-gtk-module"
Gtk-Message: 20:09:01.960: Failed to load module "canberra-gtk-module"
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
Cyclic dependency detected between "file:///tmp/.mount_UltiMac6D1nu/share/cura/resources/qml/Actions.qml" and "file:///tmp/.mount_UltiMac6D1nu/share/cura/resources/qml/Actions.qml"
QQmlEngine::setContextForObject(): Object already has a QQmlContext
file:///tmp/.mount_UltiMac6D1nu/share/cura/resources/qml/PrintSetupSelector/Recommended/RecommendedPrintSetup.qml:96:17: QML QQuickItem: Binding loop detected for property "height"
file:///tmp/.mount_UltiMac6D1nu/share/cura/resources/qml/PrintSetupSelector/Recommended/RecommendedPrintSetup.qml:96:17: QML QQuickItem: Binding loop detected for property "height"

(UltiMaker-Cura:30159): Gtk-WARNING **: 20:09:11.885: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita-old/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita-old/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
/tmp/.mount_UltiMac6D1nu/AppRun: line 25: 30159 Aborted                 $scriptdir/UltiMaker-Cura "$@"

note: modern.appimage not crashed but do nothing.

Expected results

...

Checklist of files to include

  • Log file
  • Project file

Additional information & file uploads

...

@sulincix sulincix added Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior. labels Jun 6, 2023
@sulincix
Copy link
Author

sulincix commented Jun 6, 2023

I found fix:

  1. run ./cura.appimage --appimage-extract command for extract appimage
  2. remove libgdk-3.0.so and libgdk-pixbuf-2.0.so files
  3. create new appimage file with appimagekit (or directly r AppRun file)

I think gdk-pixbuf loader version and appimage version are incompatible.

@MariMakes
Copy link
Contributor

Hey @sulincix,

Welcome to the UltiMaker Cura Github 🚀
Sorry, it took us a while to get back to you 😞

This issue is very much outside my field of expertise 😦😖
I'll bring it up to the team to see what they can do to improve it.

Fingers crossed 🤞

@MariMakes MariMakes added Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. and removed Status: Triage This ticket requires input from someone of the Cura team labels Sep 4, 2023
@gcoppex
Copy link

gcoppex commented Oct 18, 2023

Thanks @sulincix for your fix. It worked on my end.

@leoheck wrote a similar script (#11856) that could be adapted for this quick fix:

AppImage=./UltiMaker-Cura-5.4.0-linux.AppImage
./${AppImage} --appimage-extract 
mv squashfs-root/libgdk-3.0.so squashfs-root/libgdk-3.0.so.removed
mv squashfs-root/libgdk-pixbuf-2.0.so squashfs-root/libgdk-pixbuf-2.0.so.removed
./appimagetool-x86_64.AppImage squashfs-root 
mv -f Ultimaker_Cura-x86_64.AppImage ${AppImage}

As @leoheck noted, this script requires appimagetool

@MariMakes
Copy link
Contributor

Quick update from our side 👋

This seems to be a duplicate of #16932
We have a ticket on our backlog with the intent to improve this behavior.

I'll be closing this issue as a duplicate but you can follow the progress here: #16932

@MariMakes MariMakes closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
@MariMakes MariMakes added Status: Duplicate Duplicate of another issue. and removed Status: Under Investigation The issue has been confirmed or is assumed to be likely to be a real issue. It's pending discussion. labels Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Duplicate Duplicate of another issue. Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

No branches or pull requests

3 participants