Master - global clearance stuck at >= 0.2 mm

This issue only showed up during recent heavy development runs. Earlier versions hounered clearances according to settings in their respective places in accordance with the intended behaviour.

It is 100% reproducible and applies to any project.

To test create a project with some SMD component. Add a couple of connections and a fill zone to one pad.

Regardless of clearance settings at global and/or net class levels the clearance does not go below 0.2 mm unless individually changed on a pad by pad basis!

The only way out is to set individual pads to a value <> 0. However this does not work for tack clearances since they do not have an individual track segment clearance setting. (yet)

It affects pads, tracks, zone fills, but works correctly for thermal pads likely because they have their own clearance setting.

So far I couldn’t find anything regarding this issue.

Ideas?

Can you post the full version info? (Help > About KiCad > Copy Full Version Info)

Also, the best way to report bugs is as a new issue in GitLab: https://gitlab.com/kicad/code/kicad/-/issues

Application: Pcbnew

Version: (5.99.0-3547-g6b5782fb1), release build

Libraries:
wxWidgets 3.1.3
libcurl/7.58.0 GnuTLS/3.5.18 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3

Platform: Linux 4.15.0-118-generic x86_64, 64 bit, Little endian, wxGTK

Build Info:
Date: Sep 26 2020 11:05:48
wxWidgets: 3.1.3 (wchar_t,wx containers) GTK+ 3.22
Boost: 1.65.1
OCC: 7.3.0
Curl: 7.58.0
ngspice: 26
Compiler: GCC 9.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_OCC=ON
KICAD_SPICE=ON

On first sight it looks like a bug that should be reported on gitlab.
However, narrowing down bug locations and behavior is detective work and something that users can do, and starting on this forum is a good way to do so.

I’ve seen several bug reports starting on this forum, nailed down to a very small area in the code before a bug report was made on gitlab, and then a fix committed within 24 hours after reported on gitlab.

I have not used 5.99 yet, so I can not help here.

Note “release build” for a 5.99? What sort of weirdness is that?

Nothing strange with that.
That’s the way it comes out with a normal git checkout on branch 5.99

It’s good practice to check in this forum first before raising an issue on gitlab.

Release/Debug build is a technical detail about compiling binaries on certain OS’s, it has nothing to do with KiCad per se, the version string just shows it. Debug builds include some more debugging information which can be used with debugging tools.

1 Like

Could you attach an example project? Interpreting a verbal explanation is error prone and takes time.

pad 3’s clearance is set manually.
The rest lives off the known default settings.

fill_clearance_test.zip (9.2 KB)

I stand corrected :slight_smile:

Reporting directly in gitlab is OK, but asking here for confirmation or help first may lead to better reports sometimes. It depends on the situation.

2 Likes

This really looks like a bug. I checked the possible clearance values in

  • zone properties

  • footprint properties

  • pad properties

  • board constraints

  • board rules (empty)

  • net classes

    Application: Pcbnew

    Version: (5.99.0-3551-g92c8ed294), debug build

    Libraries:
    wxWidgets 3.0.4
    libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3

    Platform: Linux 5.4.0-48-generic x86_64, 64 bit, Little endian, wxGTK

    Build Info:
    Date: Sep 26 2020 10:29:43
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.71.0
    OCE: 6.9.1
    Curl: 7.68.0
    Compiler: GCC 9.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=OFF
    KICAD_USE_OCE=ON
    KICAD_SPICE=OFF
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF

BTW, for some reason “preformatted text” forum formatting doesn’t work correctly.

Thanks for your confirmation this to be a bug, and a serious one at that.

I’ll be raising this issue on gitlab.

Check if it’s this: https://gitlab.com/kicad/code/kicad/-/issues/5794

Curious time line :sunglasses:

Jeff fixed it. All good again :+1:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.