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.37k stars 878 forks source link

Segfaults on Linux after connected to Mainsail/fluidd #7210

Open galvani4987 opened 1 month ago

galvani4987 commented 1 month ago

Is there an existing issue for this problem?

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

Anything else?

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

el-quique commented 4 weeks ago

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

tiwipewo commented 4 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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

broncosis commented 3 weeks ago

@el-quique Cinnamon

broncosis commented 3 weeks ago

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

el-quique commented 3 weeks ago

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 commented 3 weeks ago

ok I have been just exporting gcode and uploading it manually

broncosis commented 3 weeks ago

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 commented 3 weeks ago

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

galvani4987 commented 3 weeks ago

@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 commented 3 weeks ago

6908 #6520

hacknslay commented 3 weeks ago

@el-quique

Thank you very much, this have made my day!

Noisyfox commented 3 weeks ago

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 https://github.com/mainsail-crew/mainsail/issues/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 commented 3 weeks ago

Mine points at fluid which also crashes Makes me kinda feel like the bug is in mainsail and fluid as it's the only thing that fails. 

⁣Get BlueMail for Android ​

On Oct 30, 2024, 7:54 AM, at 7:54 AM, Noisyfox @.***> wrote:

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.

https://github.com/mainsail-crew/mainsail/issues/1922

-- Reply to this email directly or view it on GitHub: https://github.com/SoftFever/OrcaSlicer/issues/7210#issuecomment-2447417476 You are receiving this because you were mentioned.

Message ID: @.***>

Noisyfox commented 3 weeks ago

They might share similar designs that triggered this issue.

tolistim commented 3 weeks ago

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 commented 3 weeks ago

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 commented 2 weeks ago

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.

https://github.com/SoftFever/OrcaSlicer/issues/7392

HakunMatat4 commented 2 weeks ago

Thank you @el-quique , that solved the problem. I am running Mint Cinnamon 21.3 with 2.2.0 official:

sudo nala install libwebkitgtk-6.0-4 libjavascriptcoregtk-6.0-1 ( the first package pulled the second ) [IP]:7125 and mDNS works trident01.home.arpa:7125