Complex pads suddenly missing from footprints after upgrade to 6.0.8
I recently opened a project after upgrading KiCad and noticed that some pads disappeared from the PCB.
They are not visible in Pcbnew, nor are they visible in the FP editor.
On updating the PCB from the schematics, I get an error that the pad is not found in the footprint, so it is definitely more than just a visual glitch.
If I downgrade KiCad back to 6.0.7 everything works as expected, so it is not an error in my project or footprint. It seems to be a regression in Pcbnew.
I am not quite sure what is going on, but the pad itself uses relatively complicated primitives, so that might be why this was not caught in QA.
Minimal footprint example:
(footprint "kicad-bug" (version 20211014) (generator pcbnew)
(layer "F.Cu")
(tedit 6278D40B)
(attr smd)
(fp_text reference "REF**" (at 0 0) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp f6304a30-0b32-4315-ae80-90683ab31cb5)
)
(fp_text value "**VAL" (at 0 0 unlocked) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 85ce8ebc-8714-4ece-98b2-2895ce9e760c)
)
(pad "S1" thru_hole custom (at 0 -2.5) (size 0 0) (drill oval 1.15 0.8) (layers *.Cu *.Mask)
(zone_connect 0)
(options (clearance outline) (anchor circle))
(primitives
(gr_circle (center 0.35 0) (end 1.075 0) (width 0.000001) (fill yes))
(gr_circle (center -0.35 0) (end 0.375 0) (width 0.000001) (fill yes))
(gr_poly (pts
(xy 0.35 0.725)
(xy -0.35 0.725)
(xy -0.35 -1.225)
(xy 0.35 -1.225)
) (width 0.000001) (fill yes))
(gr_poly (pts
(xy 1.075 0)
(xy -1.075 0)
(xy -1.075 -0.5)
(xy 1.075 -0.5)
) (width 0.000001) (fill yes))
(gr_circle (center 0.35 -0.5) (end 1.075 -0.5) (width 0.000001) (fill yes))
(gr_circle (center -0.35 -0.5) (end 0.375 -0.5) (width 0.000001) (fill yes))
) (tstamp 7ba48df2-7ae3-4c72-adaf-5bceda0634b8))
)
KiCad Version
This happens on Flatpak version 6.0.8 (7c88d68c034f21f465864b53a695afb000472533a17e33af549208a48c632044
).
It does not happen on the previous commit, version 6.0.7 (3b88384e65f1ef0824cfe1841ce7d4fa8d12b389499c63bab3f2f6ce21589bb5
)
Application: KiCad Footprint Editor
Version: 6.0.8, release build
Libraries:
wxWidgets 3.2.1
Platform: Linux 5.18.13-100.fc35.x86_64 x86_64, 64 bit, Little endian, wxGTK, gnome, x11
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.80.0
OCC: 7.6.3
Curl: 7.85.0-DEV
ngspice: 37
Compiler: GCC 12.1.0 with C++ ABI 1017
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON