6.0 loses connections when thermal spokes don't intersect the centers of pads

Bug #1840721 reported by Seth Hillbrand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
Undecided
Jeff Young

Bug Description

Playing with the new polygon zone fill strategy, I notice that it is more conservative in generating thermal connections than the legacy strategy. This leads to unexpected disconnects.

In the attached board file, the legacy strategy correctly fills the GND zone, connecting to the four pads in the net. Switching to the polygon fill strategy and refilling results in disconnected pads and no fill.

Application: Pcbnew
Version: (5.1.0-1557-g1bfefc61e), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Platform: Linux 4.19.0-5-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.67.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.64.0
    Compiler: GCC 8.3.0 with C++ ABI 1013

Build settings:
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF

Tags: pcbnew
Revision history for this message
Seth Hillbrand (sethh) wrote :
Revision history for this message
Jeff Young (jeyjey) wrote :

@Seth, I think this is a connection problem, not a zone fill problem. Draw a track from one of the ground pins to the zone and the zone will fill.

Note that it does trim the circled spokes in the attached image. But I assume that's not what's the issue here?

tags: added: pcbnew
Revision history for this message
Seth Hillbrand (sethh) wrote :

Might be a connection issue working with the new outline zone fills. Even with the track, the zone fill doesn't make connection to the pads (see image).

Revision history for this message
Seth Hillbrand (sethh) wrote :
Revision history for this message
Jeff Young (jeyjey) wrote :

That explains the connection issue.

Note, however, that it's sort of what you asked for. You have the clearance around the middle two pads set to larger than the distance to the center of the GND pads.

Revision history for this message
Seth Hillbrand (sethh) wrote :

Agreed. The issue I'm highlighting that we will want to fix before we make the new fill type default is that the connectivity is different between the two fill types. The zone fill does connect properly when using the stroked fill.

Revision history for this message
Jeff Young (jeyjey) wrote :

Much to my surprise it appears to be changes to the connection algorithm rather than the fill algorithm that produce this difference. See attached image which shows the fill from 5.1: the thermal spokes are trimmed in a similar fashion and don't intersect with the centers of the pads.

summary: - Polygon zone fill loses connection on some footprints
+ 6.0 loses connections when thermal spokes don't intersect the centers of
+ pads
Revision history for this message
Seth Hillbrand (sethh) wrote :

@Jeff- 6.0 works fine using the stroked zone fills. It is the polygon-only (no stroke) that doesn't connect.

Revision history for this message
Jeff Young (jeyjey) wrote :

I suspect it has something to do with how the connection algorithm is processing the zone edge.

Jeff Young (jeyjey)
Changed in kicad:
assignee: nobody → Jeff Young (jeyjey)
status: New → In Progress
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

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

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

"// Wicked witch" LOL. I hope there are not wicked witches in my board design.

Revision history for this message
Seth Hillbrand (sethh) wrote :

Nice. I pushed a small fixup for complex board speed.

Also, this exposed a bug in how we were handling connectivity with the old stroked zones that should be fixed now. Thanks for handling this Jeff!

Revision history for this message
Jeff Young (jeyjey) wrote :

He he... so before my change it was actually 5.1 that was in error when it was connecting the zones (due to all the width being placed outside).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.