Skip to content

Freeze when a detailed gerber is processed with a low dpi value #1

Description

@corna

pcb2gcode freezes when a very detailed gerber is processed with a low dpi value (in my case, 1000)
A simple workaround is to increase the dpi value, but a proper solution should be found
With gdb I've noticed that the while(true) loop in calculate_outline function (within surface.cpp) never ends.

You can reproduce the error using this gerber file

https://gist.github.com/Corna/e3b0e5dc20e99738d14d

with these command line options

pcb2gcode --front=front.gtl --dpi=1000 --metric=true --metricoutput=true --optimise=true --zchange=10.0000 --zero-start=true --zsafe=5.0000 --extra-passes=0 --mill-feed=600 --mill-speed=10000 --offset=0.1000 --zwork=-0.0500 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions