Netname aliasing causes disconnections

Bug #1823501 reported by Oleg Endo
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
High
Jon Evans

Bug Description

I've been using netname aliases in pretty much every design so far. It might be debatable whether it's a clean and nice way of doing things or not, but it gets the thing done. Using official net-ties is cumbersome and impractical most of the times, as those always require fiddling with the net-tie footprint.

Anyway, since the recent connectivity changes in eeschema, it doesn't resolve aliases to the same netname anymore. I think before it was just picking one of the possible netnames, which is fine. However, now it results in many disconnections. Please see attached reduced test case.

Using nightly builds on Ubuntu 18.

Tags: eeschema
Revision history for this message
Oleg Endo (oleg.endo) wrote :
Revision history for this message
Seth Hillbrand (sethh) wrote :

Regardless of the actual netname, a design like this clearly intends the two nets to be connected.

Application: pcbnew
Version: (5.1.0-143-g0cc77f3e39-dirty), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1b 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-4-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:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=ON
    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

Changed in kicad:
importance: Undecided → High
milestone: none → 6.0.0-rc1
status: New → Triaged
Alan Miller (alanmi)
Changed in kicad:
status: Triaged → Fix Committed
status: Fix Committed → Confirmed
Jon Evans (craftyjon)
Changed in kicad:
assignee: nobody → Jon Evans (craftyjon)
Revision history for this message
Jon Evans (craftyjon) wrote :

I can no longer reproduce this as of latest master 3b46253
Can anyone else still see this problem?

Revision history for this message
Alan Miller (alanmi) wrote :

Still not working, unless the master you are talking has not been migrated to the latest night build. DRC now picks up that there are more than one name given to this bus or net and then picks one of the names carrying to pcbnew.
Attached the project used to test.

Regards
Alan

Application: kicad
Version: (5.1.0-218-ge90452d0e), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Jon Evans (craftyjon) wrote :

Some new fixes in tonight, please re-open if you see further problems

Changed in kicad:
status: Confirmed → Fix Committed
Revision history for this message
Oleg Endo (oleg.endo) wrote :

Checking on the latest 203019d ...

In one design I have something like in the screenshot.
The local net "+1.05V" on that sheet does not get propmoted to the global net "+1V_SoM0" and so it is still disconnected.

Revision history for this message
Oleg Endo (oleg.endo) wrote :

This is the updated test case to reproduce the issue.

Jon Evans (craftyjon)
Changed in kicad:
status: Fix Committed → In Progress
Revision history for this message
Jon Evans (craftyjon) wrote :

I believe this is fixed by https://git.launchpad.net/kicad/commit/?id=e2c12d8c2578dc6c3bf7293ccda2d747dfd9761c
Please re-open if you see problems

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Oleg Endo (oleg.endo) wrote :

Looks OK now. Thanks a lot!

Revision history for this message
Alan Miller (alanmi) wrote :

Still issues, updated test file, when more than one component are on the two netlist DRC sees it as a duplicate, but still doesn't connect some of the components.

Changed in kicad:
status: Fix Committed → Confirmed
Revision history for this message
Alan Miller (alanmi) wrote :

Sorry forget to add version info

Application: kicad
Version: (5.1.0-375-g3aaba79b8), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Jon Evans (craftyjon) wrote :

Hi Alan, your file Test1.zip does not load, because it is missing the subsheet "file5CB793ED.sch"
Can you please upload the test project including the subsheet so I can check it?

Revision history for this message
Alan Miller (alanmi) wrote :

Sorry about that.
Regards

Revision history for this message
Jon Evans (craftyjon) wrote :

Hi Alan,
Thanks for the updated file.
It looks like it is working for me on a more recent build.
Your version 5.1.0-375-g3aaba79b8 is a week old or so, could you please try a newer nightly and report if you still see the issue?
Thanks.

Changed in kicad:
status: Confirmed → Fix Committed
Revision history for this message
Alan Miller (alanmi) wrote :

Yes I can confirm it works with latest build.
Thanks.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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