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

Appimage error PrusaSlicer-2.8.0+linux-x64-GTK3-202406270929.AppImage #12931

Open
2 tasks
juckendesAuge opened this issue Jun 27, 2024 · 26 comments
Open
2 tasks

Comments

@juckendesAuge
Copy link

Description of the bug

2.8.0 have under Fedora 40 an error. 2.7.4 works fine.

md5sum PrusaSlicer-2.7.4+linux-x64-GTK3-202404050928.AppImage
876343150dc2c3e7590363988932b63b PrusaSlicer-2.7.4+linux-x64-GTK3-202404050928.AppImage

md5sum PrusaSlicer-2.8.0+linux-x64-GTK3-202406270929.AppImage
2a0bce7fcd05edcafc9801af0db79470 PrusaSlicer-2.8.0+linux-x64-GTK3-202406270929.AppImage

./PrusaSlicer-2.8.0+linux-x64-GTK3-202406270929.AppImage
/tmp/.mount_PrusaSxYOK4W/usr/bin/bin/prusa-slicer: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

Project file & How to reproduce

./PrusaSlicer-2.8.0+linux-x64-GTK3-202406270929.AppImage
/tmp/.mount_PrusaSxYOK4W/usr/bin/bin/prusa-slicer: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

PrusaSlicer-2.8.0+linux-x64-GTK3-202406270929.AppImage

Operating system

Fedora release 40 (Forty)

Printer model

Prusa MK3s+

@richarrd-h
Copy link

I have the same problem with slackware 15.0

@jfbauer432
Copy link

Same issue on Ubuntu 24.04

@alsternerd
Copy link

Same on Arch Linux.

@lukasmatena
Copy link
Collaborator

There are two AppImages in the release page, you need to download the other one. I have just amended the release notes with a paragraph describing the situation.

@juckendesAuge
Copy link
Author

Thank you very much

But the name Ubuntu is a bad choice if it is to be used on several distributions. For this reason, I have not even tried to test the version...
It only refers to one Linux (Ubuntu) distribution.

@alsternerd
Copy link

There are two AppImages in the release page, you need to download the other one. I have just amended the release notes with a paragraph describing the situation.

It's the same with the version stated in the title, not just the Ubuntu-version.

On what system did you test the .AppImages before releasing?
Since libwebkit2gtk isn't even a package available in pacman on Arch. Haven't tested on Debian (stable and testing), yet.

@lukasmatena
Copy link
Collaborator

Thanks for your comments. I understand that the situation is not ideal and that there is room for improvement.

But the name Ubuntu is a bad choice if it is to be used on several distributions.

I understand. However, listing all distributions in the name would not be better, not to mention impossible. A suffix like "Ubuntu-24-04_Fedora-40_Slackware-15_..." did not sound right either. The "Ubuntu-24-04" was supposed to mean that the binary was built on Ubuntu 24.04. We briefly considered some "old" / "new", but that would probably raise even more questions as to what new features there are, etc.

We will spend some more time trying to build the AppImage that just runs everywhere. If we do not succeed, we may reconsider if AppImage is a good format to use for PrusaSlicer deployment... And if not, what is.

@alsternerd
Copy link

We will spend some more time trying to build the AppImage that just runs everywhere. If we do not succeed, we may reconsider if AppImage is a good format to use for PrusaSlicer deployment... And if not, what is.

The .AppImage format is okay and better than snap or something like that.
But what can be done immediately is state the dependencies, in this case >= libwebkit2gtk-4.0 could be enough.
Maybe even in the Updatedownloader inside the PrusaSlicer.AppImage, so that we don't run into that after the update. :)

@Drezir
Copy link

Drezir commented Jun 28, 2024

What about flatpak? Is it an option to pack prusaslicer?

@neclimdul
Copy link

I don't know if its new but there's a separate appimage for these distros to fix this. It worked great for me.

PrusaSlicer-2.8.0+linux-x64-GTK3-202406271021-Ubuntu-24-04.AppImage

BTW, Thanks Prusa! Orca's been broken by this for quite a while now but you've already worked around it.

@skint007
Copy link

skint007 commented Jun 29, 2024

I get this error when installing the one for Ubuntu 24.04, which I'm on, if I run the none Ubuntu one, it just closes out instantly after running.
image

@nekopep
Copy link

nekopep commented Jun 29, 2024

Under debian 12 we have:
/usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0
instead of 4.0.so

@abatkin
Copy link

abatkin commented Jun 30, 2024

The ubuntu version works if you create your own .desktop file, the appimage is not compatible with "appimagelauncher"

You don't even need to create your own .desktop file - launch it once (i.e. via a terminal) and let it do its own desktop integration.

@trainmeditations
Copy link

There are two AppImages in the release page, you need to download the other one. I have just amended the release notes with a paragraph describing the situation.

Neither appimage works in Debian 12 (bookworm).

PrusaSlicer-2.8.0+linux-x64-GTK3-202406270929.AppImage doesn't work with the system libwebkit2gtk
PrusaSlicer-2.8.0+linux-x64-GTK3-202406271021-Ubuntu-24-04.AppImage doesn't work with the system glibc

/tmp/.mount_PrusaSLcDndp/usr/bin/bin/prusa-slicer: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /tmp/.mount_PrusaSLcDndp/usr/bin/bin/prusa-slicer)
/tmp/.mount_PrusaSLcDndp/usr/bin/bin/prusa-slicer: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /tmp/.mount_PrusaSLcDndp/usr/bin/bin/prusa-slicer)
/tmp/.mount_PrusaSLcDndp/usr/bin/bin/prusa-slicer: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /tmp/.mount_PrusaSLcDndp/usr/bin/bin/prusa-slicer)

I tried using flatpak, but the entrance script for that isn't reading from the xdg doc mount. The files are placed there correctly and if I launch it on its own I can open a file from there, but it's not launching properly when launched from a file.

Doesn't seem to be a working installation option for Debian at the moment

@juckendesAuge
Copy link
Author

Still not working on Fedora 40

Flatpak works fine under Fedora

Flatpak—the future of application distribution - https://www.flatpak.org/setup/Fedora

@nekopep
Copy link

nekopep commented Jun 30, 2024

I think on debian 12 asking for libwebkit2gtk-4.1 will do the job

@transplier
Copy link

Please note that on at least my Kubuntu 24.04 installation, libwebkit2gtk was not bundled at all, which led to neither AppImage starting at all. I had to do sudo apt install libwebkit2gtk-4.1-0 to get it working. May be worth adding to the documentation, too. This information is included in the "how to build" section, but most users will not be building this software.

@flux242
Copy link

flux242 commented Jul 11, 2024

Both versions of the Appimage (Ubuntu and sansUbuntu) won't start on Ubuntu 22.04. Same error - missing libwebkit2gtk-4.1-0. I do not have that lib on my system at all! I carefully select what libs are allowed to be installed on my system and that lib does not belong

First of all creating different versions of AppImage defeats its purpose!
Secondly I don't really understand what's the problem of putting that lib into the container but instead starting to look for another container format! It worked before and now not? What is going on?

Ps: I checked there was no libwebkit in the 2.7.4 too. This dep must be something new
pps: I found this about libwebkit SoftFever/OrcaSlicer#4616 (comment)

thanks for adding this dep!

@frank-pian
Copy link

Orca tried to package libwebkit in the appimage, and the size of the appimage increased by 50MB, which seems to be acceptable.
https://github.com/buzzhuzz/OrcaSlicer/actions/runs/8849590037
But they didn't, choosing to do the same as prusa.
SoftFever/OrcaSlicer#5203

@wohali
Copy link

wohali commented Jul 22, 2024

Doesn't seem to be a working installation option for Debian at the moment

Confirmed on Debian bookworm (12.6) here - neither version works, with the same errors as @trainmeditations posted. This is definitely a packaging issue.

Following the build from source instructions, I'm able to build and run 2.8.0 on the same machine.

@umk0m1qk
Copy link

umk0m1qk commented Aug 2, 2024

The ubuntu version works if you create your own .desktop file, the appimage is not compatible with "appimagelauncher"

You don't even need to create your own .desktop file - launch it once (i.e. via a terminal) and let it do its own desktop integration.

I have the exact same problem. Running 24.04 with appimagelauncher handling my appimage integrations. Can you give the specific CLI command to launch Prusa Slicer appimage bypassing appiamgelauncher? Uninstalling appiamgelauncher isn't really an option since it will break all my other appimage integrations. As of right now, I can't get Prusa Slicer to work at all on Ubuntu 24.04. Yes, I am using PrusaSlicer-2.8.0+linux-x64-GTK3-202406271021-Ubuntu-24-04.AppImage

@flux242
Copy link

flux242 commented Aug 3, 2024

Why do you need webkit? To render what's new page or to show ads? Can there be a version without that useful feature like before?

@neclimdul
Copy link

@flux242 it's used for the printer view where you can see klipper ui's and prusa's management site.

@VasilNikolov
Copy link

Can confirm debian doens't work even after installing libwebkit2gtk-4.1

@probonopd
Copy link
Contributor

To everyone affected, please try the AppImage linked in

and please let us know how how it works for you. Thanks!

@nekopep
Copy link

nekopep commented Dec 9, 2024

I confirm it works on debian 12! Good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests