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

Segfaults on Linux after connected to Mainsail/fluidd #7210

Open
3 tasks done
galvani4987 opened this issue Oct 23, 2024 · 53 comments
Open
3 tasks done

Segfaults on Linux after connected to Mainsail/fluidd #7210

galvani4987 opened this issue Oct 23, 2024 · 53 comments
Labels
bug Something isn't working

Comments

@galvani4987
Copy link

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

OrcaSlicer_Linux_Ubuntu2404_V2.2.0-rc

Operating System (OS)

Linux

OS Version

GNU/Linux Mint 22

Additional system information

AMD Ryzen 5600G, NVIDIA 1660 GPU.

Printer

Sovol SV06 and Rook MK1

How to reproduce

Backup and then delete ~/.config/OrcaSlicer dir;
Run orcaslicer and go thru the setup wizard;
Click the Connection icon next to the printer's name and setup "Hostname, IP or URL", hit OK;
Orcaslicer freezes and segfaults.
Go to ~/.config/OrcaSlicer/user/default/machine and edit the printer's .json config file by setting the "print_host" parameter to "".
Orcaslicer is working again!

Actual results

Orcaslicer freezes and segfaults.

Expected results

Orcaslicer should run normaly and gain access to my printer over the network inside de DEVICE tab.

Project file & Debug log uploads

Cube.3mf.zip
log.zip

Checklist of files to include

  • Log file
  • Project file

Anything else?

I've tested it with and without the plugin blob and stealthmode active/disabled. Same results.

@galvani4987 galvani4987 added the bug Something isn't working label Oct 23, 2024
@el-quique
Copy link

el-quique commented Oct 24, 2024

Idem in LinuxMint 22.
Ryzen 5 5600x
Nvidia 3060 Ti

@tiwipewo
Copy link

Hi, I confirm this, Orca Slicer 2.2 RC (and maybe older versions)
DISTRIB_ID=LinuxMint DISTRIB_RELEASE=22 DISTRIB_CODENAME=wilma DISTRIB_DESCRIPTION="Linux Mint 22 Wilma"
Config : Xiaomi Laptop Kernel: 6.8.0-47-generic arch: x86_64 bits on quad core model: Intel Core i5-8250U & GeForce MX150 - 8 Gb Ram

It seems to be a problem with the network plugin. I have to disable my eth network when switching from printers to avoid the segfault. Maybe due to a recent update to the BBL plugin, it was working right before.

@broncosis
Copy link

debug_Sat_Oct_26_11_26_02_55407.log.txt

here is my most recent log similar behavior
works fine if I delete the bambu network plug in and only use bambu profiles but if I switch to any of my other profiles for klipper or duet machines it crashes

@broncosis
Copy link

debug_Sat_Oct_26_03_10_16_36610.log.txt

ok I was able to use my Duet profile fine but as soon as a chose to use my stealth changer which is klipper it crashed

@el-quique
Copy link

el-quique commented Oct 27, 2024

Problem HOST Conection
From what I'm seeing, the problem comes from the Linuxmint side.
When I go to the connection settings and then click on browse, it doesn't find any device.
In Zorin OS work fine

@broncosis
Copy link

broncosis commented Oct 27, 2024

well as I did updates yesterday that broke it there was a bunch of webkit packages updated I am trying to find a txt file to copy and paste
foung the dpkg.log
here is everything I updated yesterday on my desktop it stopped after that

2024-10-24 17:08:56 startup archives unpack
2024-10-24 17:08:57 upgrade google-chrome-stable:amd64 130.0.6723.58-1 130.0.6723.69-1
2024-10-24 17:08:57 status half-configured google-chrome-stable:amd64 130.0.6723.58-1
2024-10-24 17:08:58 status unpacked google-chrome-stable:amd64 130.0.6723.58-1
2024-10-24 17:08:58 status half-installed google-chrome-stable:amd64 130.0.6723.58-1
2024-10-24 17:09:03 status triggers-pending gnome-menus:amd64 3.36.0-1ubuntu3
2024-10-24 17:09:03 status triggers-pending desktop-file-utils:amd64 0.26+mint3+victoria
2024-10-24 17:09:03 status triggers-pending mailcap:all 3.70+nmu1ubuntu1
2024-10-24 17:09:03 status triggers-pending man-db:amd64 2.10.2-1
2024-10-24 17:09:03 status unpacked google-chrome-stable:amd64 130.0.6723.69-1
2024-10-24 17:09:03 upgrade distro-info-data:all 0.52ubuntu0.7 0.52ubuntu0.8
2024-10-24 17:09:03 status half-configured distro-info-data:all 0.52ubuntu0.7
2024-10-24 17:09:03 status unpacked distro-info-data:all 0.52ubuntu0.7
2024-10-24 17:09:03 status half-installed distro-info-data:all 0.52ubuntu0.7
2024-10-24 17:09:03 status unpacked distro-info-data:all 0.52ubuntu0.8
2024-10-24 17:09:03 startup packages configure
2024-10-24 17:09:03 configure distro-info-data:all 0.52ubuntu0.8
2024-10-24 17:09:03 status unpacked distro-info-data:all 0.52ubuntu0.8
2024-10-24 17:09:03 status half-configured distro-info-data:all 0.52ubuntu0.8
2024-10-24 17:09:03 status installed distro-info-data:all 0.52ubuntu0.8
2024-10-24 17:09:03 startup archives unpack
2024-10-24 17:09:04 upgrade gir1.2-webkit2-4.0:amd64 2.44.3-0ubuntu0.22.04.1 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:04 status half-configured gir1.2-webkit2-4.0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:04 status unpacked gir1.2-webkit2-4.0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:04 status half-installed gir1.2-webkit2-4.0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:04 status unpacked gir1.2-webkit2-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:04 upgrade gir1.2-javascriptcoregtk-4.0:amd64 2.44.3-0ubuntu0.22.04.1 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:04 status half-configured gir1.2-javascriptcoregtk-4.0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:04 status unpacked gir1.2-javascriptcoregtk-4.0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:04 status half-installed gir1.2-javascriptcoregtk-4.0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:04 status unpacked gir1.2-javascriptcoregtk-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:04 upgrade libwebkit2gtk-4.0-37:amd64 2.44.3-0ubuntu0.22.04.1 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:04 status triggers-pending libc-bin:amd64 2.35-0ubuntu3.8
2024-10-24 17:09:04 status half-configured libwebkit2gtk-4.0-37:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:04 status unpacked libwebkit2gtk-4.0-37:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:04 status half-installed libwebkit2gtk-4.0-37:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:05 status unpacked libwebkit2gtk-4.0-37:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:05 upgrade libjavascriptcoregtk-4.0-18:amd64 2.44.3-0ubuntu0.22.04.1 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:05 status half-configured libjavascriptcoregtk-4.0-18:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:05 status unpacked libjavascriptcoregtk-4.0-18:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:05 status half-installed libjavascriptcoregtk-4.0-18:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:05 status unpacked libjavascriptcoregtk-4.0-18:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:05 upgrade gir1.2-webkit2-4.1:amd64 2.44.3-0ubuntu0.22.04.1 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:05 status half-configured gir1.2-webkit2-4.1:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:05 status unpacked gir1.2-webkit2-4.1:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:05 status half-installed gir1.2-webkit2-4.1:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:05 status unpacked gir1.2-webkit2-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:06 upgrade gir1.2-javascriptcoregtk-4.1:amd64 2.44.3-0ubuntu0.22.04.1 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:06 status half-configured gir1.2-javascriptcoregtk-4.1:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:06 status unpacked gir1.2-javascriptcoregtk-4.1:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:06 status half-installed gir1.2-javascriptcoregtk-4.1:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:06 status unpacked gir1.2-javascriptcoregtk-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:06 upgrade libwebkit2gtk-4.1-0:amd64 2.44.3-0ubuntu0.22.04.1 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:06 status half-configured libwebkit2gtk-4.1-0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:06 status unpacked libwebkit2gtk-4.1-0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:06 status half-installed libwebkit2gtk-4.1-0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:06 status unpacked libwebkit2gtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:06 upgrade libjavascriptcoregtk-4.1-0:amd64 2.44.3-0ubuntu0.22.04.1 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:06 status half-configured libjavascriptcoregtk-4.1-0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:06 status unpacked libjavascriptcoregtk-4.1-0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:06 status half-installed libjavascriptcoregtk-4.1-0:amd64 2.44.3-0ubuntu0.22.04.1
2024-10-24 17:09:07 status unpacked libjavascriptcoregtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:07 upgrade amd64-microcode:amd64 3.20191218.1ubuntu2.2 3.20191218.1ubuntu2.3
2024-10-24 17:09:07 status half-configured amd64-microcode:amd64 3.20191218.1ubuntu2.2
2024-10-24 17:09:07 status unpacked amd64-microcode:amd64 3.20191218.1ubuntu2.2
2024-10-24 17:09:07 status half-installed amd64-microcode:amd64 3.20191218.1ubuntu2.2
2024-10-24 17:09:07 status unpacked amd64-microcode:amd64 3.20191218.1ubuntu2.3
2024-10-24 17:09:07 startup packages configure
2024-10-24 17:09:07 configure google-chrome-stable:amd64 130.0.6723.69-1
2024-10-24 17:09:07 status unpacked google-chrome-stable:amd64 130.0.6723.69-1
2024-10-24 17:09:07 status half-configured google-chrome-stable:amd64 130.0.6723.69-1
2024-10-24 17:09:07 status installed google-chrome-stable:amd64 130.0.6723.69-1
2024-10-24 17:09:07 configure libjavascriptcoregtk-4.0-18:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:07 status unpacked libjavascriptcoregtk-4.0-18:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:07 status half-configured libjavascriptcoregtk-4.0-18:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:07 status installed libjavascriptcoregtk-4.0-18:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:07 configure gir1.2-javascriptcoregtk-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:07 status unpacked gir1.2-javascriptcoregtk-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:07 status half-configured gir1.2-javascriptcoregtk-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:07 status installed gir1.2-javascriptcoregtk-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:07 configure amd64-microcode:amd64 3.20191218.1ubuntu2.3
2024-10-24 17:09:07 status unpacked amd64-microcode:amd64 3.20191218.1ubuntu2.3
2024-10-24 17:09:07 status half-configured amd64-microcode:amd64 3.20191218.1ubuntu2.3
2024-10-24 17:09:07 status installed amd64-microcode:amd64 3.20191218.1ubuntu2.3
2024-10-24 17:09:08 status triggers-pending initramfs-tools:all 0.140ubuntu13.4
2024-10-24 17:09:08 configure libjavascriptcoregtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status unpacked libjavascriptcoregtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status half-configured libjavascriptcoregtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status installed libjavascriptcoregtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 configure libwebkit2gtk-4.0-37:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status unpacked libwebkit2gtk-4.0-37:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status half-configured libwebkit2gtk-4.0-37:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status installed libwebkit2gtk-4.0-37:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 configure libwebkit2gtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status unpacked libwebkit2gtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status half-configured libwebkit2gtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status installed libwebkit2gtk-4.1-0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 configure gir1.2-webkit2-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status unpacked gir1.2-webkit2-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status half-configured gir1.2-webkit2-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status installed gir1.2-webkit2-4.0:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 configure gir1.2-javascriptcoregtk-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status unpacked gir1.2-javascriptcoregtk-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status half-configured gir1.2-javascriptcoregtk-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status installed gir1.2-javascriptcoregtk-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 configure gir1.2-webkit2-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status unpacked gir1.2-webkit2-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status half-configured gir1.2-webkit2-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 status installed gir1.2-webkit2-4.1:amd64 2.46.1-0ubuntu0.22.04.3
2024-10-24 17:09:08 trigproc libc-bin:amd64 2.35-0ubuntu3.8
2024-10-24 17:09:08 status half-configured libc-bin:amd64 2.35-0ubuntu3.8
2024-10-24 17:09:08 status installed libc-bin:amd64 2.35-0ubuntu3.8
2024-10-24 17:09:08 trigproc man-db:amd64 2.10.2-1
2024-10-24 17:09:08 status half-configured man-db:amd64 2.10.2-1
2024-10-24 17:09:08 status installed man-db:amd64 2.10.2-1
2024-10-24 17:09:08 trigproc mailcap:all 3.70+nmu1ubuntu1
2024-10-24 17:09:08 status half-configured mailcap:all 3.70+nmu1ubuntu1
2024-10-24 17:09:08 status installed mailcap:all 3.70+nmu1ubuntu1
2024-10-24 17:09:08 trigproc desktop-file-utils:amd64 0.26+mint3+victoria
2024-10-24 17:09:08 status half-configured desktop-file-utils:amd64 0.26+mint3+victoria
2024-10-24 17:09:08 status installed desktop-file-utils:amd64 0.26+mint3+victoria
2024-10-24 17:09:08 trigproc gnome-menus:amd64 3.36.0-1ubuntu3
2024-10-24 17:09:08 status half-configured gnome-menus:amd64 3.36.0-1ubuntu3
2024-10-24 17:09:08 status installed gnome-menus:amd64 3.36.0-1ubuntu3
2024-10-24 17:09:08 trigproc initramfs-tools:all 0.140ubuntu13.4
2024-10-24 17:09:08 status half-configured initramfs-tools:all 0.140ubuntu13.4
2024-10-24 17:09:33 status installed initramfs-tools:all 0.140ubuntu13.4

@darco415
Copy link

darco415 commented Oct 27, 2024

I just updated webkit on my LM22 just now hoping previous issues were addressed. Now on the RC, it flashes the home screen and it goes dark. Followed OP instructions and it worked, also device tab is working now???? Thxs Bro!
*edit....so by adding host ip after running OS, the systems freezes up and crashes.Adding the hostname does not crash but device mng says cannot connect to moonraker

@el-quique
Copy link

el-quique commented Oct 27, 2024

@broncosis . Hello. You are using LM Debian Edition? or LM Cinnamon

@broncosis
Copy link

@el-quique Cinnamon

@broncosis
Copy link

as long as I don't have a hostname or ip in the Json file it seams to work ok

@el-quique
Copy link

el-quique commented Oct 28, 2024

Captura de pantalla de 2024-10-27 23-07-10
Captura de pantalla de 2024-10-27 23-01-50
@broncosis @darco415
Half solution on LinuxMint 22 updated to today.

In the host for the printer connection use:

"ip or host":7125

7125 is the port for moonraker (control in moonraker.cfg file). You can upload gcode files to the printer, but we will not have them displayed in the device tab.

It might be a good idea to install:
sudo apt install libwebkitgtk-6.0-4 libwebkitgtk-6.0-dev

@broncosis
Copy link

ok I have been just exporting gcode and uploading it manually

@broncosis
Copy link

broncosis commented Oct 28, 2024

updating web kit to version 6 like you suggested seems to have done the trick with out the port number
but still testing ok so no after some testing it still crashes adding the port number seems to help for now

@alex999888777
Copy link

@el-quique
Thank you very much, your solution with the moonraker port works perfect for me. I never used the device tab anyway.

@galvani4987
Copy link
Author

@el-quique
Thanks! I've just downloaded the v2.2.0 release and i can confirm the issue is still there, but your solution works!

I can send gcode to the printer over the network using :7125 and OrcaSlicer works just fine.

@CitrusIntellect
Copy link

#6908 #6520

@hacknslay
Copy link

@el-quique

Thank you very much, this have made my day!

@Noisyfox
Copy link
Collaborator

Noisyfox commented Oct 30, 2024

I think that has to be a bug in webkit (or libwebkit2gtk) because I can put any valid url as the printer's host and it works perfectly well, as long as the url does not point to mainsail:
image
image

And as soon as I change the host to mainsail it crashes immediately.

I found this issue
mainsail-crew/mainsail#1922
and I also tried the badwolf browser it mentions, and same crash happened as soon as mainsail is loaded.

Side note: this also happens with BambuStudio and PrusaSlicer as well.

@broncosis
Copy link

broncosis commented Oct 30, 2024 via email

@Noisyfox
Copy link
Collaborator

They might share similar designs that triggered this issue.

@tolistim
Copy link

Moved up to 2.2.0.4 release build and adding the Moonraker port 7125 to the address alleviates the SEGFAULT and allows the networking to function for sending files. However, this causes the Device tab to attempt to connect with Mainsail instead of Fluidd with a Mainsail info screen instead of the main Mainsail UI.

@el-quique
Copy link

el-quique commented Oct 31, 2024

Captura de pantalla de 2024-10-30 21-47-11
OrcaSlicer 2.2.0
Strange behavior. If I add "files" to the host address, everything works fine until I enter the Dashboard or G-Codes Viewer.
Host: klipper.local/files

PD: Upon entering to G-Codes Viewer:
(WebKitWebProcess:37098): WARNING **: 21:37:47.424: The GStreamer FDK AAC plugin is missing, AAC playback is unlikely to work.

@HakunMatat4
Copy link

I had similar issue with Cinnamon 21.3 and the solution is to avoid any network interaction, otherwise, the slicer gets into a crash loop, and fresh start with a few catches.

I got 2.2.0 official running on Mint Cinnamon 21.3 but without network, Mainsail/browser is better than no slicer at all.
Hopefully, this network drama can be fixed.

#7392

@ToasterUwU
Copy link

Just like isaac, im also on NixOS (Unstable) and have the exact same issue as well.

@wbvczar
Copy link

wbvczar commented Dec 30, 2024

I discovered this issue recently when I reloaded my system and went from KDE NEON on Ubuntu 22.04 to the latest KDE NEON on Ubuntu 24.04. I am fine until I enter the IP address of the printer (Ender 3 v2 on Klipper Raspberry Pi). As soon as I enter the IP, Orca crashes with a segment fault. I tried the latest nightly build, and the problem is there also.

@svenakela
Copy link

I encountered this on Ubuntu 24.04 with all possible images, including the daily build. I have a Voron configured and in the file ~/.config/OrcaSlicer/user/default/machine/<my machine name and settings name>.json there is a config:
"print_host": "http://voron1.home/"
which I changed to:
"print_host": "http://voron1.home:7125/"

And that stopped the crashing. So @el-quique's fix works.

@cemkod
Copy link

cemkod commented Jan 5, 2025

I'm having this problem both with flatpak and appImage install of nightly and latest versions.

@Beagon
Copy link

Beagon commented Jan 6, 2025

I'm encountering this with the flatPak and Appimage on Manjaro.

@svenakela
Copy link

@cemkod, @Beagon did you try the fix posted just above your comments?

@cemkod
Copy link

cemkod commented Jan 7, 2025

@svenakela Yes, that's how I'm using it right now. But it was nice to have the mainsail screen. So it is a temporary clutch at best.

@Beagon
Copy link

Beagon commented Jan 7, 2025

@cemkod, @Beagon did you try the fix posted just above your comments?

Yes that workaround luckily works! I just wanted to let my voice be heard as to emphasize this as an issue :)

@deployor
Copy link

deployor commented Jan 19, 2025

Encountering problems when using fluidds port! With my k1 max still! Moonraker works, but the device tab is useless then!

@jalexandre0
Copy link

Same problem when using mainsail or fluid port. I don't use the device tab often, and change to moonraker port fix my problem for now. Nix OS 24.11 and Orca Slicer 2.2.0

@klack
Copy link

klack commented Jan 26, 2025

Thank you for the work around

@jarrard
Copy link

jarrard commented Jan 27, 2025

Putting machine IP in crashes Orca. No work around works.

EDIT: It works, you just can't see the camera etc with :7125 workaround.
YOU CAN still login to klipper via web browser and that works. So seems to be a webkit issue perhaps?

@MdotAmaan
Copy link

MdotAmaan commented Feb 3, 2025

Having the same issue on NixOS stable 24.11 (plasma wayland). The port was already there in my json. Orcaslicer crashed a couple of seconds after launching after adding the mainsail ip of my k1 max. Tried to use unstable but orcaslicer wouldnt even launch (happened even before i added the k1 max though, so that appears to be a separate issue)

@astrohoward
Copy link

Same issue on Linux Mint LDME 6, segfaults if IP address put in for Neptune 4+ printer, fluidd interface. Same whether normal user or sudo.
Able to run Orcaslicer if no network address assigned to device. Can slice and save gcode. Upload to printer via Fluidd web interface and prints fine.

@novaplusplus
Copy link

Same occurring on Kubuntu 24.10 out of the blue until I manually edited the machine config (after a LOT of trial and error) to use the direct port on the slicer URL. So from https://hostname to http://hostname:7125

I am not sure what changed as just a few hours ago it was working, but I presume it's something to do with a package update to webkit, which seems to be the absolute bane of slicers lately. Annoying as someone who doesn't even use the device tab and just has a browser bookmark to the web interface instead 🤷

@jhstatewide
Copy link

This was driving me nuts. I can confirm pointing it at :7125 is a great workaround for now. I will say, I NEVER use the device tab and it's just a memory suck for me. I would love to be able to disable it entirely.

@grooby
Copy link

grooby commented Feb 19, 2025

Just want to confirm that I have this same issue using 2.3.0 Dev (or Beta) flatpak file.

I am seeing this error message

ERROR: WebKit encountered an internal error. This is a WebKit bug.
/buildstream/gnome/sdk/webkit2gtk-4.1.bst/Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(562) : internallyFailedLoadTimerFired

Additionally, using :7125 still does not allow me to upload and print.

Not sure if upgrading to the gtk version might help here, per #7210 (comment)

@witc-git
Copy link

witc-git commented Feb 23, 2025

I'm experiencing this (or at least it appears to be the same) on the 2.3.0 Flatpak Beta on Fedora 41, Ryzen 5, Nvidia 1060 with proprietary drivers.
Update: I'm convinced that whatever is causing this has to do with Nvidia graphics. While having all the issues on the Ryzen machine mentioned above, I've had a flawless experience from the same version of the flatpak beta on my Intel laptop with integrated graphics and no environment variable added, it was plug and play on the laptop. Both machines are on Fedora 41 with latest updates installed.
My Nvidia driver failed to load once and it booted in Nouveau, had the same issues. Whenever I find a fix it works for a day or two and then dies for no clear reason again. I also get a spammed with webkit crash reports on the PC whenever I open Orca. I have none of these issues on the PC with any other software, though which is a little weird, I'd expect the driver to bug out other apps too.

@etrigan63
Copy link

This is happening to me on my main workstation (CachyOS (Arch) + RTX A2000 (Nvidia proprietary drivers)), but not on my Framework 13 AMD laptop (CachyOS (Arch) + AMD M780 (kernel drivers)) it works perfectly fine.

@rilkman
Copy link

rilkman commented Feb 28, 2025

getting the following with ubuntu 22.04 app image on pop os

ERROR: WebKit encountered an internal error. This is a WebKit bug. ./Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp(562) : internallyFailedLoadTimerFired

@gaspatxo
Copy link

does anyone know what is the specific bug in webkit causing this?

@tarelda
Copy link

tarelda commented Mar 7, 2025

I can also confirm that issue persist on 2.3.0-beta2. My workstation setup is - i7-4790K + GTX960 on Ubuntu 24.04. NVIDIA pattern also present here. Putting IP causes instant crash. Also adding flag --debug 5 doesn't increase the verbosity of logging in case of AppImage.

@edco
Copy link

edco commented Mar 11, 2025

I'm seeing the same thing with a locally built AppImage and app, using both the 2.3.0-beta2 tag and the latest source (as of a day or two ago). My system is Ubuntu 24.10 running on Intel with an NVIDIA GPU. I'm a newcomer to gdb so I may be completely on the wrong track, but got it to generate the trace below. Interestingly the references to enterAcceleratedCompositingMode persist even with the environment variable WEBKIT_DISABLE_COMPOSITING_MODE=1.

(process:53299): libsoup-DEBUG: 22:59:52.152: stopping input source
(process:53299): libsoup-DEBUG: 22:59:52.152: received frame 1 with 1489 payload
(process:53299): libsoup-DEBUG: 22:59:52.152: message: delivering 1 with 1489 length
(process:53299): libsoup-DEBUG: 22:59:52.152: received frame 1 with 116 payload
(process:53299): libsoup-DEBUG: 22:59:52.152: message: delivering 1 with 116 length

Thread 1 "orcaslicer_main" received signal SIGSEGV, Segmentation fault.
Downloading source file /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp...
webkitWebViewBaseEnterAcceleratedCompositingMode () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:2938
warning: 2938	/usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp: No such file or directory
(process:53299): libsoup-DEBUG: 22:59:52.390: stopping input source
(process:53299): libsoup-DEBUG: 22:59:52.390: received frame 1 with 138 payload
(process:53299): libsoup-DEBUG: 22:59:52.390: message: delivering 1 with 138 length
#0  webkitWebViewBaseEnterAcceleratedCompositingMode () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:2938
#1  0x00007ffff23efad1 in WebKit::WebPageProxy::enterAcceleratedCompositingMode () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/UIProcess/WebPageProxy.cpp:10743
#2  0x00007ffff25528b5 in WebKit::DrawingAreaProxyCoordinatedGraphics::enterAcceleratedCompositingMode () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.cpp:237
#3  0x00007ffff203a5b5 in IPC::callMemberFunction<WebKit::DrawingAreaProxy, WebKit::DrawingAreaProxy, void (unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext> >(WebKit::DrawingAreaProxy*, void (WebKit::DrawingAreaProxy::*)(unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext>&&)::{lambda((auto:1&&)...)#1}::operator()<unsigned long, WebKit::LayerTreeContext>(unsigned long&&, WebKit::LayerTreeContext&&) const () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/Platform/IPC/HandleMessage.h:135
#4  std::__invoke_impl<void, IPC::callMemberFunction<WebKit::DrawingAreaProxy, WebKit::DrawingAreaProxy, void (unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext> >(WebKit::DrawingAreaProxy*, void (WebKit::DrawingAreaProxy::*)(unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext>&&)::{lambda((auto:1&&)...)#1}, unsigned long, WebKit::LayerTreeContext>(std::__invoke_other, IPC::callMemberFunction<WebKit::DrawingAreaProxy, WebKit::DrawingAreaProxy, void (unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext> >(WebKit::DrawingAreaProxy*, void (WebKit::DrawingAreaProxy::*)(unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext>&&)::{lambda((auto:1&&)...)#1}&&, unsigned long&&, WebKit::LayerTreeContext&&) () at /usr/include/c++/14/bits/invoke.h:61
#5  std::__invoke<IPC::callMemberFunction<WebKit::DrawingAreaProxy, WebKit::DrawingAreaProxy, void (unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext> >(WebKit::DrawingAreaProxy*, void (WebKit::DrawingAreaProxy::*)(unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext>&&)::{lambda((auto:1&&)...)#1}, unsigned long, WebKit::LayerTreeContext>(IPC::callMemberFunction<WebKit::DrawingAreaProxy, WebKit::DrawingAreaProxy, void (unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext> >(WebKit::DrawingAreaProxy*, void (WebKit::DrawingAreaProxy::*)(unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext>&&)::{lambda((auto:1&&)...)#1}&&, unsigned long&&, WebKit::LayerTreeContext&&) () at /usr/include/c++/14/bits/invoke.h:96
#6  std::__apply_impl<IPC::callMemberFunction<WebKit::DrawingAreaProxy, WebKit::DrawingAreaProxy, void (unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext> >(WebKit::DrawingAreaProxy*, void (WebKit::DrawingAreaProxy::*)(unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext>&&)::{lambda((auto:1&&)...)#1}, std::tuple<unsigned long, WebKit::LayerTreeContext>, 0ul, 1ul>(IPC::callMemberFunction<WebKit::DrawingAreaProxy, WebKit::DrawingAreaProxy, void (unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext> >(WebKit::DrawingAreaProxy*, void (WebKit::DrawingAreaProxy::*)(unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext>&&)::{lambda((auto:1&&)...)#1}&&, std::tuple<unsigned long, WebKit::LayerTreeContext>&&, std::integer_sequence<unsigned long, 0ul, 1ul>) () at /usr/include/c++/14/tuple:2921
#7  _ZSt5applyIZN3IPC18callMemberFunctionIN6WebKit16DrawingAreaProxyES3_FvmRKNS2(process:53299): libsoup-DEBUG: 22:59:52.553: stopping input source
(process:53299): libsoup-DEBUG: 22:59:52.553: received frame 1 with 744 payload
(process:53299): libsoup-DEBUG: 22:59:52.553: message: delivering 1 with 744 length
(process:53299): libsoup-DEBUG: 22:59:52.631: stopping input source
(process:53299): libsoup-DEBUG: 22:59:52.631: received frame 1 with 197 payload
(process:53299): libsoup-DEBUG: 22:59:52.631: message: delivering 1 with 197 length
_16LayerTreeContextEESt5tupleIJmS4_EEEEvPT_MT0_T1_OT2_EUlDpOT_E_TkSt12__tuple_likeS9_EDcOSA_OSC_ () at /usr/include/c++/14/tuple:2936
#8  IPC::callMemberFunction<WebKit::DrawingAreaProxy, WebKit::DrawingAreaProxy, void(unsigned long, WebKit::LayerTreeContext const&), std::tuple<unsigned long, WebKit::LayerTreeContext> > () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/Platform/IPC/HandleMessage.h:133
#9  IPC::handleMessage<Messages::DrawingAreaProxy::EnterAcceleratedCompositingMode, WebKit::DrawingAreaProxy, WebKit::DrawingAreaProxy, void(unsigned long, WebKit::LayerTreeContext const&)> () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/Platform/IPC/HandleMessage.h:235
#10 WebKit::DrawingAreaProxy::didReceiveMessage () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/build-soup3/DerivedSources/WebKit/DrawingAreaProxyMessageReceiver.cpp:48
#11 0x00007ffff2356d08 in IPC::MessageReceiverMap::dispatchMessage () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/Platform/IPC/MessageReceiverMap.cpp:129
#12 0x00007ffff2476dc3 in WebKit::WebProcessProxy::didReceiveMessage () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/UIProcess/WebProcessProxy.cpp:1212
#13 0x00007ffff23519f5 in IPC::Connection::dispatchMessage () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/Platform/IPC/Connection.cpp:1451
#14 0x00007ffff2352414 in IPC::Connection::dispatchMessage () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/Platform/IPC/Connection.cpp:1408
#15 IPC::Connection::dispatchIncomingMessages () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WebKit/Platform/IPC/Connection.cpp:1563
#16 0x00007ffff1199d6c in WTF::Function<void()>::operator() () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WTF/wtf/Function.h:82
#17 WTF::RunLoop::performWork () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WTF/wtf/RunLoop.cpp:147
#18 0x00007ffff1235aed in operator() () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WTF/wtf/glib/RunLoopGLib.cpp:80
#19 _FUN () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WTF/wtf/glib/RunLoopGLib.cpp:82
#20 0x00007ffff123692d in operator() () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WTF/wtf/glib/RunLoopGLib.cpp:53
#21 _FUN () at /usr/src/webkit2gtk-2.46.6-0ubuntu0.24.10.1/Source/WTF/wtf/glib/RunLoopGLib.cpp:56
#22 0x00007ffff6c82397 in g_main_dispatch (context=0x55555ba666e0) at ../../../glib/gmain.c:3357
        dispatch = 0x7ffff12368d0 <_FUN()>
        prev_source = 0x0
        begin_time_nsec = 36169793131148
        was_in_call = 0
        user_data = 0x7fffd50180e0
        callback = 0x7ffff1235ae0 <_FUN()>
        cb_funcs = 0x7ffff6d70380 <g_source_callback_funcs>
        cb_data = 0x55555d9393e0
        need_destroy = <optimized out>
        source = 0x55555d93a230
        current = 0x55555bd522a0
        i = 0
        __func__ = "g_main_dispatch"
#23 0x00007ffff6ce2dc7 in g_main_context_dispatch_unlocked (context=0x55555ba666e0) at ../../../glib/gmain.c:4208
#24 g_main_context_iterate_unlocked.isra.0 (context=0x55555ba666e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4273
        max_priority = 2147483647
        timeout_usec = 81189
        some_ready = 1
        nfds = 8
        allocated_nfds = <optimized out>
        fds = 0x555562665d70
        begin_time_nsec = 36169786890992
#25 0x00007ffff6c83097 in g_main_loop_run (loop=0x55555c067730) at ../../../glib/gmain.c:4475
        self = <optimized out>
        __func__ = "g_main_loop_run"
#26 0x00007ffff7408025 in gtk_main () at ../../../gtk/gtkmain.c:1329
        loop = 0x55555c067730
#27 0x0000555559e571c5 in wxGUIEventLoop::DoRun() ()
#28 0x0000555559f840b1 in wxEventLoopBase::Run() ()
#29 0x0000555559f4de52 in wxAppConsoleBase::OnRun() ()
#30 0x0000555559fd6038 in wxEntry(int&, wchar_t**) ()
#31 0x0000555556eb6ac4 in Slic3r::GUI::GUI_Run(Slic3r::GUI::GUI_InitParams&) ()
#32 0x00005555561c26ab in Slic3r::CLI::run(int, char**) ()
#33 0x00005555560e43d8 in main ()

@edco
Copy link

edco commented Mar 12, 2025

In my case at-least, this appears to relate to #8373 - though since this issue predates that PR by several months it's clearly not the full story. Regardless, a fix or workaround that has proved robust for me is simply commenting out export WEBKIT_DISABLE_DMABUF_RENDERER=1 here:

export WEBKIT_DISABLE_DMABUF_RENDERER=1

I've just tested against the new v2.3.0-rc tag, running the app directly and in an AppImage, and it works flawlessly, with hardware accelerated views in the Prepare and Preview tabs, plus the Web UI in the Device tab.

If you're not building the app yourself you can edit the file that that code ends up in, AppRun (though if you're using a pre-built AppImage, editing that file may be a little involved).

Paging @klylabs - do you have any thoughts about this? It seems like your PR mostly fixed this issue, and getting rid of WEBKIT_DISABLE_DMABUF_RENDERER=1 completes the fix (for me, at-least).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests