Polygon with single point results in parser error

Bug #1844872 reported by Rene Poeschl on 2019-09-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Critical
Seth Hillbrand

Bug Description

A forum user reported that they had trouble opening a pcb file of theirs on the next day. The parser complains on a polygon with a single point (line 1240 in the file)

Forum post: https://forum.kicad.info/t/unable-to-load-pcb-file/19022/17

Rene Poeschl (poeschlr) wrote :
description: updated
Seth Hillbrand (sethh) wrote :

It's not that there's a single point. It's that the polygon doesn't have a closing ')' for the "pts" clause. Note that the next ')' is 4 spaces away, so it is closing the "polygon" clause.

It looks like somehow the zone iterator was mixed. Looking at the code, there's a way we could have generated this, so I'll fix the proximate cause. But I'm still not certain how we ended up with the broken polygon to begin with.

Seth Hillbrand (sethh) on 2019-09-21
Changed in kicad:
importance: Undecided → Critical
assignee: nobody → Seth Hillbrand (sethh)
milestone: none → 5.1.5
status: New → In Progress
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision bba949c04d7072a2bf043d0e55e434da675819e6
https://git.launchpad.net/kicad/patch/?id=bba949c04d7072a2bf043d0e55e434da675819e6

Changed in kicad:
status: In Progress → Fix Committed
tags: added: pcbnew
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers