← Back to team overview

kicad-developers team mailing list archive

Re: Possible hang in SHAPE_POLY_SET ::Fracture() (from Bug 1632648:] Filled zone crashes KiCad in Stable 4.0.4)

 

On 12.10.2016 14:49, jp charras wrote:
> Hi Orson and Tomasz,
> 
> A few days ago I had a look at this issue, previously reported to the Kicad forum.
> Although it happens on 4.04 and not in the current version, I am thinking it is not fixed (it does
> not happen just because there are a few changes which generate a slightly different zone shape).
> 
> It happens because in SHAPE_POLY_SET::fractureSingle( POLYGON& paths ) this code:
> 
>     // keep connecting holes to the main outline, until there's no holes left...
>     while( num_unconnected > 0 )
>     {
> <skipped>
>         num_unconnected -= processEdge( edges, smallestX );
>     }
> hangs if processEdge returns 0.
> 
> processEdge can return 0, and this is the case with the minimal board I attached.
> 
> May I ask you to have a look into this suspicious code (I am not familiar with it)?
> 
> Thanks.
> 
Hi JP,

Does the file outline created by 4.0.4 contain duplicate vertices?

Tom


Follow ups

References