supermerill / SuperSlicer

G-code generator for 3D printers (Prusa, Voron, Creality, etc.)
4.04k stars 515 forks source link

SuSi encountered an error - std::bad_alloc #4242

Closed Tau512 closed 2 weeks ago

Tau512 commented 1 month ago

What happened?

App error at the end of slicing, resulting in the following error. Infrequently occurs on custom profiles, but the defaults appear to occur 100% of the time

SuperSlicer has encountered an error. It was likely caused by running out of memory. If you are sure you have enough RAM on your system, this may also be a bug and we would be glad if you reported it.
std::bad_alloc

plenty of ram available on laptop:

$ free -m
               total        used        free      shared  buff/cache   available
Mem:           31800        9701       16313        2309        8554       22098
Swap:           8191           0        8191

crashes using any of the default print settings. the error window has been dismissed just before taking this screenshot: image

ok with my custom 0.20 profile (note that this was taken AFTER the std::bad_alloc error, with no other changes than print profile selection): image

Project file & How to reproduce

no project file as it appears to occur on any model.

load STL, change Print profile to a default profile and click slice button. Error occurs.

Version

2.5.59.9 Stable

Operating system

Fedora40 KDESpin, using appimage

Printer model

Heavily modified Ender6

benalleng commented 1 month ago

occurs 100% of the time on custom profiles for me

darco415 commented 1 month ago

running Linux Mint, same error on both app images

supermerill commented 1 month ago

can't reproduce with default profile on a basic cube image

Can you upload a buggy project file? What os do you use?

pfsmorigo commented 1 month ago

Same here. I get std::bad_alloc by using SuperSlicer-ubuntu_18.04-gtk2-2.5.59.9.AppImage. Reverted to SuperSlicer-ubuntu_18.04-gtk2-2.5.59.8.AppImage and I'm fine now.

Tau512 commented 1 month ago

Fedora20 KDEspin here. using SuperSlicer-ubuntu_18.04-2.5.59.9.AppImage (latest stable), but also occuring on the latest RC (c0faf97).

I tried with all default presets (print, filament & printer) with a default 'box' shape added. Error still occuring. heres the project file: 4242project.zip

heres the same model that slices ok and does not exhibit the error with user presets. 4242project-custom.zip

kipwittchen commented 1 month ago

This problem is gone for me with the latest version, 2.5.59.10

supermerill commented 1 month ago

I reproduced it on linux

supermerill commented 1 month ago

4258

Routhinator commented 3 weeks ago

Happening here on Kubuntu 24.04, AppImage - happens with a custom profile and the nozzle set to 0.2mm

Routhinator commented 3 weeks ago

Set the infill from Gyroid > Rectilinear and was able to slice without this error.

Encountered with this STL, which slices on Cura without an issue.