SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
7.45k stars 893 forks source link

Not able to launch Orca Slicer on Fedora Linux 38 #1841

Open magnum61 opened 1 year ago

magnum61 commented 1 year ago

Describe the bug The app image cannot be started. Error message regarding libwebkit2gtk, but this is installed properly on the system. System is installed from scratch - Fedora 38 KDE Spin

To Reproduce Download and launch the app image

Expected behavior Launch the application

Printer model Creality K1 Max, but it should not matter as the app is not even starting

Desktop (please complete the following information): OS: Fedora Linux 38 Desktop: KDE Plasma

magnum61 commented 1 year ago

Meanwhile i got it working after additionally install the devel version of libwebkit2gtk.

However the Java errors persist. This wouldn't be a problem, but the import of a machine profile (Creality K1) is not persistent. The file is stored in the profile folder, but won't show up in Orca Slicer as new config.

KenricYoung commented 1 year ago

Confirmed the launching issue. Helped track this issue for a user on the fedora discord for the latest 1.7.0 appimage. For Workstation users and the Plasma spin, as @magnum61 mentioned, fedora users must install the webkit2gtk4.0 to launch the appimage.

I used toolbx using the fedora-toolbox:38 container to run the flatpak. The container image needed the following packages to provide the specified libraries to launch the appimage.

  1. fuse-libs --> libfuse.so.2
  2. fontconfig --> libfontconfig.so.1
  3. libglvnd-glx -->libGL.so.1
  4. libglvnd-egl --> libEGL.so.1
  5. gtk3 --> libgtk-3.so.0
  6. gstreamer1-plugins-base --> libgstvideo-1.0.so.0
  7. webkit2gtk4.0 --> libwebkit2gtk-4.0.so.37
github-actions[bot] commented 11 months ago

GitHub bot: this issue is stale because it has been open for 90 days with no activity.

kinghat commented 11 months ago

not stale and relevant on fedora 39 still.

kevinpita commented 11 months ago

Installing webkit2gtk4.0 fixed this issue for me on Fedora 39

sudo dnf install webkit2gtk4.0
kinghat commented 11 months ago

Installing webkit2gtk4.0 fixed this issue for me on Fedora 39

sudo dnf install webkit2gtk4.0

i actually had to run: sudo dnf install '/usr/lib64/libwebkit2gtk-4.0.so.37' on f39 kde

XrayIndia4 commented 10 months ago

I am on Fedora 39 (gnome) and Orca Version 1.9 (older versions have this issue too for me)

I couldn't launch either BambuStudio or OrcaSlicer, but webkit2gtk4.0-devel did work for me. I already had the non-devel version installed, but that didn't help. I also tried BambuStudio Flatpak that recently came out and everything works there from the get go, but I'd much rather us OrcaSlicer...

Here's a link to the fedora package: https://packages.fedoraproject.org/pkgs/webkitgtk/webkit2gtk4.0-devel/

lucagervasi commented 10 months ago

Confirm unable to have it working on Fedora 39.i'm pretty sure there is a webpage under the setup wizard as the cursor seems to "see" selectable text in some points.

Screenshot from 2024-01-19 14-18-45

breathless19 commented 9 months ago

I have the same thing on Nobara where it stops at the Setup wizard. Can't get this program to open up properly regardless of which AppImage managing program I use.

bryanweatherly commented 9 months ago

Installing webkit2gtk4.0 fixed this issue for me on Fedora 39

sudo dnf install webkit2gtk4.0

This also worked to fix the issue on Fedora Silverblue 39

rpm-ostree install webkit2gtk4.0
lucagervasi commented 9 months ago

Installing webkit2gtk4.0 fixed this issue for me on Fedora 39

sudo dnf install webkit2gtk4.0

Still unrendered windows.

Last metadata expiration check: 0:48:02 ago on lun 19 feb 2024, 10:38:36.
Package webkit2gtk4.0-2.42.5-1.fc39.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

This also worked to fix the issue on Fedora Silverblue 39

rpm-ostree install webkit2gtk4.0

Mine is not ostree-based :(

xPakrikx commented 9 months ago

Installing webkit2gtk4.0 fixed this issue for me on Fedora 39

sudo dnf install webkit2gtk4.0

Still unrendered windows.

Last metadata expiration check: 0:48:02 ago on lun 19 feb 2024, 10:38:36.
Package webkit2gtk4.0-2.42.5-1.fc39.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

This also worked to fix the issue on Fedora Silverblue 39

rpm-ostree install webkit2gtk4.0

Mine is not ostree-based :(

Same on my fedora 39.

cadriel commented 9 months ago

I had the same issue. I installed the webkit dependency which allowed me to open the app. However, I then installed the bambu network plugin - and signed in, and now the app consistently crashes on startup.

vprasad1973 commented 8 months ago

FYI to any of the Fedora or other distro folks having difficulty with launching Orca app image, go ahead and try last night's Jan 22 v2.0.0 dev image from the nightly builds-- WORKS FANTASTIC!!!

magnum61 commented 8 months ago

go ahead and try last night's Jan 22 v2.0.0 dev image from the nightly builds-- WORKS FANTASTIC!!!

Nope, not on my device with Fedora 39. Still the webkit error. i can install it manually, but the AppImage requires it. After manual install of the library it works.

image

cadriel commented 8 months ago

Its now working for me. The network plugin re-installed when I opened it, and now it doesn't crash - and I can see the live feed of my printer.

I did already have the webkit dependency installed, so I'm not sure if that's still a requirement - but it otherwise works flawlessy so far.

Great work!

JohnGalt1717 commented 8 months ago

I'm still getting a blank screen on the setup wizard.

dslauter commented 8 months ago

Installing webkit fixed the OrcaSlicer on OpenSuse Tumbleweed

sudo zypper in libwebkit2gtk-4_0-37

Thank you!

va7wv commented 7 months ago

Same issue, tried libwebkit and also the latest beta AppImages. Blank setup screen on Fedora 39 KDE.

xPakrikx commented 7 months ago

Confirm unable to have it working on Fedora 39.i'm pretty sure there is a webpage under the setup wizard as the cursor seems to "see" selectable text in some points.

Screenshot from 2024-01-19 14-18-45

This was solved by this for me: https://github.com/SoftFever/OrcaSlicer/issues/4935#issuecomment-2050100610

Luke56784 commented 7 months ago

Same issue on Fedora 39 KDE in combination with the V2.0.0 release.

sudo dnf install webkit2gtk4.0.x86_64

sudo dnf install webkit2gtk4.0-devel.x86_64

fixed it. It's starting now.

va7wv commented 7 months ago

Screenshot_20240415_201638

No dice. Executing export WEBKIT_DISABLE_COMPOSITING_MODE=1 does work though. I think I will come back when there is a tested Fedora package available. Seems pretty hacky to do Appimages and all these weird workarounds.

Luke56784 commented 7 months ago

Same issue on Fedora 39 KDE in combination with the V2.0.0 release.

sudo dnf install webkit2gtk4.0.x86_64

sudo dnf install webkit2gtk4.0-devel.x86_64

fixed it. It's starting now.

I don't know why but today I could not start the app image again...

breathless19 commented 7 months ago

Just a heads up guys, the latest nightly appimage (2.1.0) works without monkeying with webkit stuff.

I'm using Bazzite (Fedora Universal Blue) and have a Nvidia GTX 1080.

Only issue is that it asks about the cert every startup

va7wv commented 7 months ago

2.1.0 makes it past the setup screen now, but then crashes after using it for 5 minutes. Not useable at all.

hidara2000 commented 6 months ago

I can confirm that the following worked for me on Fedora 40 sudo dnf install webkit2gtk4.0 gtk3

I had some issues with dark mode either not working or the GCODE text and setup page was blank.

My working fix at this Github link

jamincollins commented 6 months ago

No dice. Executing export WEBKIT_DISABLE_COMPOSITING_MODE=1 does work though. I think I will come back when there is a tested Fedora package available. Seems pretty hacky to do Appimages and all these weird workarounds.

Does your system have an Nvidia GPU?

jamincollins commented 6 months ago

Assuming your system does have a discrete Nvidia GPU, this PR should fix it: https://github.com/SoftFever/OrcaSlicer/pull/5276

DaveSpe commented 4 months ago

It does not fix it, still an issue in Fedora 40 with Orca Slicer v2.1.1 and the AppImage. image

QuietWindUponTheMoor commented 4 months ago

I'm having the exact same issue... sigh I thought it was just me, guess not. Been trying to fix this for a week with no luck. Using Fedora 40 with KDE Plasma 6. I've tried basically all of the suggestions mentioned here to no avail so far.

This really sucks because I have some projects to work on

corincorvus commented 4 months ago

Same Problem like @QuietWindUponTheMoor. 2.1.1 not work on Fedora 39 and 40.

My Error:

/usr/bin/AppImageLauncher: /lib64/libcurl.so.4: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/appimagelauncher/libappimageupdate.so)

[2024-07-22 12:07:16.745672] [0x00007f4e1c850680] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
add font of NanumGothic-Regular returns 1
add font of NanumGothic-Bold returns 1
Authorization required, but no authorization protocol specified

(orca-slicer:13962): GLib-GObject-CRITICAL **: 12:07:16.896: invalid (NULL) pointer instance

(orca-slicer:13962): GLib-GObject-CRITICAL **: 12:07:16.896: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
DaveSpe commented 4 months ago

I'm having the exact same issue... sigh I thought it was just me, guess not. Been trying to fix this for a week with no luck. Using Fedora 40 with KDE Plasma 6. I've tried basically all of the suggestions mentioned here to no avail so far.

This really sucks because I have some projects to work on

You can launch the software from console to get through the wizard with this command...

__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json ~/Applications/OrcaSlicer_Linux_V2.1.1_f96f5666c033dc24e3f0b0f3c57a4402.AppImage

Once you do that once and go through the Wizard, subsequent launches you will be able to start the software normally.

corincorvus commented 4 months ago

You can launch the software from console to get through the wizard with this command...

__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json ~/Applications/OrcaSlicer_Linux_V2.1.1_f96f5666c033dc24e3f0b0f3c57a4402.AppImage

Once you do that once and go through the Wizard, subsequent launches you will be able to start the software normally.

If i use your Command:

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:19.273: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:19.274: gtk_window_resize: assertion 'height > 0' failed

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:19.280: gtk_window_resize: assertion 'height > 0' failed

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:19.280: gtk_window_resize: assertion 'height > 0' failed

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:19.286: gtk_widget_set_size_request: assertion 'width >= -1' failed

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:19.416: gtk_widget_set_size_request: assertion 'width >= -1' failed
Failed to get GBM device
Failed to get GBM device
Datei oder Verzeichnis nicht gefunden

(orca-slicer:7050): GLib-GObject-CRITICAL **: 09:04:20.382: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:20.382: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:7050): GLib-GObject-CRITICAL **: 09:04:20.382: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:20.382: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:7050): GLib-GObject-CRITICAL **: 09:04:20.384: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:20.384: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:7050): GLib-GObject-CRITICAL **: 09:04:20.385: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:20.385: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:7050): GLib-GObject-CRITICAL **: 09:04:20.386: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:20.386: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:7050): GLib-GObject-CRITICAL **: 09:04:20.387: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:20.387: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(orca-slicer:7050): GLib-GObject-CRITICAL **: 09:04:20.387: invalid cast from 'wxPizza' to 'GtkCellLayout'

(orca-slicer:7050): Gtk-CRITICAL **: 09:04:20.387: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

** (orca-slicer:7050): CRITICAL **: 09:04:20.391: Cannot register URI scheme wxfs more than once

** (orca-slicer:7050): CRITICAL **: 09:04:20.391: Cannot register URI scheme memory more than once
Failed to get GBM device
Failed to get GBM device
Failed to get GBM device

image

FinnKrass commented 4 months ago

You can launch the software from console to get through the wizard with this command...

__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json ~/Applications/OrcaSlicer_Linux_V2.1.1_f96f5666c033dc24e3f0b0f3c57a4402.AppImage

This works, thanks. Launches after going through the wizard still blanked though, so just making a script to launch this command may be the best solution for now :)

corincorvus commented 4 months ago

Today, after some Updates, the Error changes:

Command:

__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json ~/Programmdaten/Apps/OrcaSlicer_Linux_V2.1.1_f96f5666c033dc24e3f0b0f3c57a4402.appimage
/usr/bin/AppImageLauncher: /lib64/libcurl.so.4: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/appimagelauncher/libappimageupdate.so)
[2024-07-30 15:00:43.129688] [0x00007f14bc664680] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
add font of NanumGothic-Regular returns 1
add font of NanumGothic-Bold returns 1
Authorization required, but no authorization protocol specified

(orca-slicer:29580): GLib-GObject-CRITICAL **: 15:00:43.267: invalid (NULL) pointer instance

(orca-slicer:29580): GLib-GObject-CRITICAL **: 15:00:43.267: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

If i remove the appimagelauncher i get this (File still exist):

image image

bash: ./OrcaSlicer_Linux_V2.1.1.appimage: cannot execute: required file not found
dumb-taco commented 3 months ago

I had the same problem but with the installation sudo dnf install webkit2gtk4.0 gtk3 I was unexpectedly able to start and use Orcaslicer 2.2.0 with Gear Lever without any problems.

Nobara (Fedora) 40 Plasma 6.1.1

NoSadBeHappy commented 3 months ago

Installing webkit2gtk4.0 fixed this issue for me on Fedora 39

sudo dnf install webkit2gtk4.0

i actually had to run: sudo dnf install '/usr/lib64/libwebkit2gtk-4.0.so.37' on f39 kde

This worked for me on fedora 40, thanks!

witc-git commented 1 month ago

Installing webkit2gtk4.0 and launch with WEBKIT_DISABLE_COMPOSITING_MODE=1 variable gets the startup wizard working, but only the menus work, the render & preview panes are blank.

Fedora 40 Gnome 46 (primarily Wayland) nVidia V2.1.1 Appimage with Gear Lever