Ultimaker / CuraEngine

Powerful, fast and robust engine for converting 3D models into g-code instructions for 3D printers. It is part of the larger open source project Cura.
https://ultimaker.com/en/products/cura-software
GNU Affero General Public License v3.0
1.67k stars 880 forks source link

[5.x.x] CuraEngine crashes when slicing walls #1895

Closed Dogm closed 1 year ago

Dogm commented 1 year ago

Application Version all 5.x.x

Platform Tested on Windows but most likely relevant for all platforms

Steps to Reproduce 1) use model.stl - (need rename jpg to stl for correct file format) model stl

2) move model on platform x += 1.5005f y += 1.5005f z += -0.122840881f

3) set line width = 5.6 mm, layer height 0.2 mm

SlicerProcess will crashes with reporting progress of generating WallToolPaths (i have this one in 13 layer (~2.6mm from bottom))

Crush in \src\SkeletalTrapezoidationGraph.cpp

void SkeletalTrapezoidationGraph::collapseSmallEdges(coord_t snap_dist) {
...
        //  o-o
        //  | | > collapse sides
        //  o o
        if (should_collapse(quad_start->from, quad_end->to) && should_collapse(quad_start->to, quad_end->from))
        { // Collapse start and end edges and remove whole cell
        ...
            quad_start->twin->twin = quad_end->twin;
            quad_end->twin->twin = quad_start->twin;  // <------ quad_end->twin = null
        ...
        }
...
}
Dogm commented 1 year ago

Any ideas how to fix this bug?

jellespijker commented 1 year ago

this is the infamous slicing crash that you encounter. It is a complex problem to solve, what often helpa is rotating the model and slice again.

@MariMakes do we have a Cura issue where we can link this issue?

Dogm commented 1 year ago

Have same problem sometimes on generate infill walls (Lines pattern) 8(

MariMakes commented 1 year ago

I've been summoned 👑

We are tracking our slicing crashes with the Slicing Crash Label in the Cura repo. You can create an issue using this template

@jellespijker you might be referring to this one https://github.com/Ultimaker/Cura/issues/12019

jellespijker commented 1 year ago

hi @Dogm I'm closing this issue as a duplicate of Ultimaker/Cura#12019 please follow the process in that ticket