yaqwsx / KiKit

Automation tools for KiCAD
https://yaqwsx.github.io/KiKit
MIT License
1.53k stars 201 forks source link

foorprint with arc Edge Cut lines create problems #637

Open JulienCarayon opened 8 months ago

JulienCarayon commented 8 months ago

Prerequisites

KiKit version

1.4.0

KiCAD version

v7.0.10

Operating system

macOs Ventura 13.0.1

Description

Kicad 7 issue :

swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'FP_SHAPE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'BOX2< VECTOR2< int > > ', no destructor found. swig/python detected a memory leak of type 'VECTOR2< int > ', no destructor found. swig/python detected a memory leak of type 'VECTOR2< int > ', no destructor found. swig/python detected a memory leak of type 'VECTOR2< int > ', no destructor found. An error occurred: unsupported operand type(s) for +: 'SwigPyObject' and 'VECTOR2I' No output files produced swig/python detected a memory leak of type 'BOX2< VECTOR2< int > > ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'BOX2< VECTOR2< int > > ', no destructor found. swig/python detected a memory leak of type 'VECTOR2< int > ', no destructor found. swig/python detected a memory leak of type 'VECTOR2< int > ', no destructor found. swig/python detected a memory leak of type 'std::vector< ZONE > ', no destructor found. swig/python detected a memory leak of type 'VECTOR2< int > ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found. swig/python detected a memory leak of type 'EDA_ANGLE ', no destructor found.

Here is a problematic footprint exemple :

image

problematic.txt (rename the .txt to .kicad_mod)

Steps to Reproduce

Use the footprint linked above and try to split board with a board containing the footprint

yaqwsx commented 8 months ago

I am struggling to reproduce the problem you report. Could you provide precise steps to follow? Preferably, share the exact board (just outlines are just fine) that you run into the issue.

You claim to use KiCAD 7, however, you provide a footprint for KiCAD v8. When I create a test board: board.zip and run either kikit panelize untitled.kicad_pcb panel.kicad_pcb or kikit separate --looseArcs untitled.kicad_pcb separated.kicad_pcb everything works just fine (of course with KiCAD 8 and the upstream version of KiKit).

yaqwsx commented 7 months ago

This might be related to #663 - both reports are form mac, and they contain numerous errors in KiCAD API.