prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.51k stars 1.9k forks source link

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

Open juckendesAuge opened 1 week ago

juckendesAuge commented 1 week ago

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

Version of PrusaSlicer

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

Operating system

Fedora release 40 (Forty)

Printer model

Prusa MK3s+

richarrd-h commented 1 week ago

I have the same problem with slackware 15.0

jfbauer432 commented 1 week ago

Same issue on Ubuntu 24.04

alsternerd commented 1 week ago

Same on Arch Linux.

lukasmatena commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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-40Slackware-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 commented 1 week ago

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 commented 1 week ago

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

neclimdul commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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

abatkin commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

Still not working on Fedora 40

Flatpak works fine under Fedora

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

nekopep commented 1 week ago

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

transplier commented 2 days ago

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.