bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
1.84k stars 258 forks source link

Ubuntu 24.04 LTS: error while loading shared libraries: libwebkit2gtk-4.0.so.37 #3973

Open mhoellein opened 4 months ago

mhoellein commented 4 months ago

Bambu Studio Version

1.9.1 Public Beta 4

Where is the application from?

Bambu Lab github releases

OS version

Ubuntu 24.04

Additional system information

No response

Printer

Bambu Lab X1

How to reproduce

start the AppImage

Actual results

error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

Expected results

BambuStudio should start

Project file & Debug log uploads

log.zip

Checklist of files to include

Bjoernsen commented 4 months ago

I recently updated from 23.10 to 24.04 and have exactly the same error message. Everything worked with 23.10. I already install libwebkit2gtk-4.1-dev (4.0 does not exist) via apt without success.

mampaiva commented 4 months ago

I solved this problem by adding the previous lts repository and installing version 4.0. For this I changed the file sudo vim /etc/apt/sources.list.d/ubuntu.sources Add the follow line: `Types: deb URIs: http://br.archive.ubuntu.com/ubuntu/ Suites: jammy noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites: jammy-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg`

then update the repositories with apt update and go to synaptic to search and install the correct version of libwebkit2gtk

Screenshot from 2024-04-30 11-27-03

ajft commented 4 months ago

thanks @mampaiva - you've solved a problem I'm experiencing with Cisco AnyConnect VPN software that gives the same webkit error

sanity commented 3 months ago

Recently updated to Ubuntu 24.04 and experiencing the same issue.

lanewei120 commented 3 months ago

please try following commands on ubuntu 24.04 to solve this issue currently

sudo ln -sf /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37
sudo ln -sf /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

we are also trying to solve this issue without the above workarounds

LuisPortanel commented 3 months ago

Thanks, @mampaiva . I recently upgraded to Ubuntu 24.04 and I had issues with my Pulse Secure VPN / Ivanti Secure VPN installation. With your workaround, I could finally install the VPN. Thanks!

mechano commented 3 months ago

Creating the links doesn't work on my Ubuntu 24.04

sudo ln -sf /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37
sudo ln -sf /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

I've a core dump.

But it works for me this command from terminal:

WEBKIT_DISABLE_COMPOSITING_MODE=1 .appImage/OrcaSlicer.AppImage

I've added to the desktop icon I've created under .local/share/applications

[Desktop Entry]
Name=OrcaSlicer
GenericName=3D Printing Software
Icon=OrcaSlicer
Exec="WEBKIT_DISABLE_COMPOSITING_MODE=1 /home/mechano/.appImage/OrcaSlicer.AppImage" %F
Terminal=false
Type=Application
MimeType=model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;application/x-amf;
Categories=Graphics;3DGraphics;Engineering;
Keywords=3D;Printing;Slicer;slice;3D;printer;convert;gcode;stl;obj;amf;SLA
StartupNotify=false
StartupWMClass=OrcaSlicer
lanewei120 commented 3 months ago

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

DipFlip commented 3 months ago

please try following commands on ubuntu 24.04 to solve this issue currently

sudo ln -sf /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37
sudo ln -sf /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

we are also trying to solve this issue without the above workarounds

This results in the following error for me (Ubuntu 24.04)

(process:79503): libsoup-ERROR **: 13:25:25.773: libsoup2 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported.

lanewei120 commented 3 months ago

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

DipFlip commented 3 months ago

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

Thank you @lanewei120 but I'm actually trying to run another program - Cisco Anyconnect. It also throws the same error so that's how I ended up on this thread.

jinzzasol commented 3 months ago

I solved this problem by adding the previous lts repository and installing version 4.0. For this I changed the file sudo vim /etc/apt/sources.list.d/ubuntu.sources Add the follow line: `Types: deb URIs: http://br.archive.ubuntu.com/ubuntu/ Suites: jammy noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites: jammy-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg`

then update the repositories with apt update and go to synaptic to search and install the correct version of libwebkit2gtk

Screenshot from 2024-04-30 11-27-03

This is the best solution. Thank you.

MackBambu commented 3 months ago

On Ubuntu, each release has its own versions of software. When a new LTS release is published, older releases no longer receive updates for their software. However, our software cannot operate in this manner. Supporting an increasing number of Linux distributions can lead to larger and more cumbersome software packages. I propose creating a script that detects different distributions and corrects their inconsistencies.

thaowl commented 2 months ago

Using building on Ubuntu 24.04 https://github.com/tauri-apps/tauri/issues/9662 helps.

-- I worked around this by adding the following line to /etc/apt/sources.list:

deb http://gb.archive.ubuntu.com/ubuntu jammy main

Then doing:

sudo apt update sudo apt install libwebkit2gtk-4.0-dev

-- remove added line from sources.list after installation to keep enviroment sane.

Then build deps and BambuStudio. Altough deps do build with libwebkit2gtk-4.1, building BambuStudio later will fail. Works for me.

MWWorks commented 2 months ago

Confirm that the new 1.9.2 release also has this issue, it is unable to run on eg Ubuntu 24.04.

Also confirm that the patched version provided above by @lanewei120 seems to work - so please patch the 1.9.2 - and ideally include it going forward, the appimage should have all dependencies :)

caco3 commented 2 months ago

Same issue for me on Ubuntu 24.04

hainjedaf commented 2 months ago

Same issue on Debian unstable/Sid/Trixie

since 1.09 no BambuSLicer runs. All crash with following error: [code] /tmp/.mount_bambu-L82HJc/bin/bambu-studio: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory [/code]

Unpacking the AppImage and running the executable, causes same error

lanewei120 commented 2 months ago

Confirm that the new 1.9.2 release also has this issue, it is unable to run on eg Ubuntu 24.04.

Also confirm that the patched version provided above by @lanewei120 seems to work - so please patch the 1.9.2 - and ideally include it going forward, the appimage should have all dependencies :)

that version can not work on some linux versions also, we will find a final solution later

currently please use the workaround solution or the flathub version https://flathub.org/apps/com.bambulab.BambuStudio

Andrew-Pynch commented 2 months ago

@mampaiva this worked, thank you so much!

MackBambu commented 2 months ago

https://github.com/MackBambu/BambuStudio/actions/runs/9691686545/artifacts/1643561459 This appimage was built using libwebkit2gtk-4.1.

hainjedaf commented 2 months ago

It works on Debian 12 Sid/Unstable.

No it doesn't.... -Opening a file over a network connection (e.g. gvfs smb) causes some files to report 'file contains no geometric data' Copy same file to local drive. Opens flawlessly.

-Slicing the Upgraded Bambu Spoolwinder I get: boost::filesystem::create_directory: No such file or directory [system:2]: "/tmp/bamboo_model/Thu_Jun_27/21_12_35#109292#47/Metadata"

leodrostes commented 1 month ago

I solved this problem by adding the previous lts repository and installing version 4.0. For this I changed the file sudo vim /etc/apt/sources.list.d/ubuntu.sources Add the follow line: `Types: deb URIs: http://br.archive.ubuntu.com/ubuntu/ Suites: jammy noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites: jammy-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg`

then update the repositories with apt update and go to synaptic to search and install the correct version of libwebkit2gtk

Screenshot from 2024-04-30 11-27-03

it worked for me too. Thanks!

m1ndcr4ck commented 2 weeks ago

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

Thank you @lanewei120 but I'm actually trying to run another program - Cisco Anyconnect. It also throws the same error so that's how I ended up on this thread.

@DipFlip , I'm trying the same, any luck to solve this issue?

DipFlip commented 2 weeks ago

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

Thank you @lanewei120 but I'm actually trying to run another program - Cisco Anyconnect. It also throws the same error so that's how I ended up on this thread.

@DipFlip , I'm trying the same, any luck to solve this issue?

@m1ndcr4ck yes thaowl's solution worked for me so now i have Anyconnect installed on Ubuntu 24.04 and it's working fine!

m1ndcr4ck commented 2 weeks ago

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

Thank you @lanewei120 but I'm actually trying to run another program - Cisco Anyconnect. It also throws the same error so that's how I ended up on this thread.

@DipFlip , I'm trying the same, any luck to solve this issue?

@m1ndcr4ck yes thaowl's solution worked for me so now i have Anyconnect installed on Ubuntu 24.04 and it's working fine!

@DipFlip thanks so much, currently, I was able to run it using this workaround https://github.com/bambulab/BambuStudio/issues/3973#issuecomment-2085476683, however, I still need it on a different Linux distro "Kali"