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
6.63k stars 778 forks source link

[OrcaSlicer 2.1.1] Segfault when going to machine's g-code twice #6069

Open brunetton opened 2 months ago

brunetton commented 2 months ago

Is there an existing issue for this problem?

OrcaSlicer Version

2.1.1

Operating System (OS)

Linux

OS Version

Ubuntu 23.10

Additional system information

Intel Core i5-8250U 64 / RAM 16 GiB / Intel UHD Graphics 620

Printer

Personalized version of Ender 3

How to reproduce

  1. open OrcaSlicer
  2. open printer configuration
  3. goto g-code
  4. close printer configuration
  5. open printer configuration again
  6. goto g-code

Actual results

the app crashes, segmentation fault in console logs

Expected results

I should be able to visualize and edit printer's G-code

Project file & Debug log uploads

Untitled.zip

[error] 2024-07-09 13:23:15.695937[Thread 0x0000712fe05db380]:calc_exclude_triangles:Unable to create exclude triangles
[error] 2024-07-09 13:23:15.712983[Thread 0x0000712fdd1246c0]:Unable to open the file/tmp/.mount_OrcaSl7Eg1XY/resources/calib/tolerance_test/OrcaToleranceTest.stl
[warning]   2024-07-09 13:23:16.427503[Thread 0x0000712fe05db380]:01:23:16 PM: Warning: Error running JavaScript: Unsupported result type
[warning]   2024-07-09 13:23:16.497883[Thread 0x0000712fe05db380]:01:23:16 PM: Warning: Error running JavaScript: Unsupported result type
[warning]   2024-07-09 13:23:16.502055[Thread 0x0000712fe05db380]:01:23:16 PM: Warning: Error running JavaScript: Unsupported result type
[warning]   2024-07-09 13:23:16.611137[Thread 0x0000712fe05db380]:01:23:16 PM: Warning: Error running JavaScript: Unsupported result type
[error] 2024-07-09 13:23:18.743566[Thread 0x0000712fe05db380]:calc_exclude_triangles:Unable to create exclude triangles
[warning]   2024-07-09 13:23:18.815036[Thread 0x0000712fe05db380]:get_version, get_version not supported,return 00.00.00.00!
[error] 2024-07-09 13:23:20.262547[Thread 0x0000712fe05db380]:calc_exclude_triangles:Unable to create exclude triangles

Checklist of files to include

Anything else?

timnolte commented 2 months ago

I believe this is a duplicate of https://github.com/SoftFever/OrcaSlicer/issues/6020

henrivdr commented 2 months ago

This could be a duplicate, but my reproduction steps are closer to this one.

serhii-nakon commented 2 months ago

I have the same issue

serhii-nakon commented 2 months ago

For me last working stable version is 2.0.0, and not working 2.1.0 and newer

serhii-nakon commented 1 month ago

Looks like it related with new Mesa due my friend use 2.1.1 with Debian 12 and main differences are - mesa, kernel, desktop environment

kernel: my - 6.9.7 (git), friends - default Debian's 6.1.99 mesa: my - 24.1.2 (git), friends - default Debian's 22.3.6 DE: my - Gnome, friends - KDE (both default Debian's)

And that are all differences between our systems.

JooJooBee666 commented 1 month ago

Same here. 2.1.1 just seg faults shortly after opening. KDE 6.1, X11, Latest Mesa AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 18.1.6, DRM 3.57, 6.9.9-200.fc40.x86_64) (0x73df) OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.3.0-devel

Tried older versions, but the result is the same, segfault right after opening. Version 2.0.0, 2.1.0 and 2.1.1 app images. Very sad today. :(

serhii-nakon commented 1 month ago

Looks like it related with new Mesa due my friend use 2.1.1 with Debian 12 and main differences are - mesa, kernel, desktop environment

kernel: my - 6.9.7 (git), friends - default Debian's 6.1.99 mesa: my - 24.1.2 (git), friends - default Debian's 22.3.6 DE: my - Gnome, friends - KDE (both default Debian's)

And that are all differences between our systems.

I just checked with older Mesa and issue still exist, also I tried with Xorg and Wayland - still exist, and looks like one main difference between my system and my friends is DE or list of libraries.

@SoftFever Where I can find debug symbols for latest builds? To get more information why it segfault in my case. I found that latest build with debug symbols was 2.0.0 but for me sqgfault starts from 2.1.0

JooJooBee666 commented 1 month ago

I's working again for me after updating to Plasma 6.1.3 and Mesa.

AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 18.1.6, DRM 3.57, 6.9.9-200.fc40.x86_64) OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.3.0-devel Release : 0.3.20240723.10.8f9a157.fc40