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

Crash when slicing special SL1 project #4836

Closed
tritol opened this issue Oct 5, 2020 · 1 comment
Closed

Crash when slicing special SL1 project #4836

tritol opened this issue Oct 5, 2020 · 1 comment

Comments

@tritol
Copy link

tritol commented Oct 5, 2020

Version

Version: 2.2.0
Build: PrusaSlicer-2.2.0+UNKNOWN

Operating system type + version

Operating System: Unix
System Architecture: 64 bit
System Version: Linux 5.8.8-arch1-1 x86_64
Total RAM size [MB]: 33,488MB

3D printer brand / version + firmware version (if known)

Original Prusa SL1

Behavior

Crash when slicing only one layer object.
Load slicer-killer.3mf and press "Slice now"

Project File (.3MF) where problem occurs

slicer-killer.zip

@lukasmatena
Copy link
Collaborator

Confirmed. The cause of the crash is in void SLAPrint::Steps::apply_printer_corrections. When there is just one slice, faded_lyrs = std::min(po.m_slice_index.size(), faded_lyrs); will assign 1 into faded_lyrs. And this immediately leads to division by zero just below that. This creates a NAN value, which in turns makes it crash a little down the road.

Maybe @tamasmeszaros would know what to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants