slic3r / Slic3r

Open Source toolpath generator for 3D printers
https://slic3r.org/
GNU Affero General Public License v3.0
3.29k stars 1.29k forks source link

Saving printer settings causes slic3r to crash #4965

Open mechsin opened 4 years ago

mechsin commented 4 years ago

Issue I am new to slic3r and I was trying to setup my printer but it every time I save my printer settings slic3r crashes. After this it also fails to start up again giving off a free: invalid pointer message. This happens even if I don't make any changes. Slic3r will start again if I remove the ini file that was created when the save occurred.

To Reproduce Steps to reproduce the behavior:

  1. Open printer settings
  2. Hit the button to save current printer settings
  3. Enter save name, I have just been leaving the default Untitled but I have also use Anet
  4. Hit OK and slic3r crashes
  5. Slic3r crashes silently on start until Untitled.ini file is removed, in my case from ~/.Slic3r/printer

3D Model and Slic3r Configuration Export No model

Expected behavior Slic3r shouldn't crash and shouldn't fail to start. If there is something wrong with the printer configuration the user should get a warning prior to the file saving.

Desktop (please complete the following information):

Additional context This is the ini file that is created on save Untitled.txt

lordofhyphens commented 4 years ago

Check with 1.3.1-dev

mechsin commented 3 years ago

I was able to use the Slic3r-1.3.1-dev-877138e-PR4843-x86_64.AppImage of the dev build and everything seemed to work fine no crashes. I did the test as I stated in the original post as well as editing some of the settings and saving the values as a new printer. I was able to both save the settings and close and restart Sli3r with crashing.

So it looks like this issue will be fixed when you release 1.3.1

Thanks

TheAlgorythm commented 3 years ago

I have the same error on Manjaro but on slicing.

$ slic3r
free(): invalid pointer
[1]    54455 abort (core dumped)  slic3r

The first time I opened slic3r all was ok until i tried to slice an amf-file. Then slic3r crashed and since then it is not possible to start slic3r anymore. The only thing which won't crash is slicing from the CLI. I'm using the AUR binary, which downloads it directly from the GitHub releases page. I'm currently on v1.3.0-3.

Update: My problem is the same as #4841 but I think they have the same root cause.

ghost commented 2 years ago

DISTRIB_ID=ManjaroLinux DISTRIB_RELEASE=21.1.3 DISTRIB_CODENAME=Pahvo DISTRIB_DESCRIPTION="Manjaro Linux

Since it seems that the problem still could not be solved, I'm warming up the topic again. I have downloaded the latest version from the project page. I can fill out the welcome assistant completely, but when I import an stl file and change the print settings afterwards, the software crashes when I press the save button. After that I can't start the software because it also ends with an invalid pointer message.

alexban01 commented 2 years ago

also happens on archlinux 5.18.1-arch1-1