Bus/hierarchy bug, netlist broken

Bug #1838140 reported by Diego Herranz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
High
Jon Evans

Bug Description

Hi, all.

I'm using nightlies and facing a weird bug with buses. I was wondering whether it can be related to recent bus upgrades.

I've got a bus:
ROW0, ROW1, ROW2, ROW3, ROW4, ROW5, ROW6, ROW7, which on the PCB layout becomes
ROW0, ROW0, ROW0, ROW0, ROW0, ROW0, ROW0, ROW7 ???
It seems to be semi-random and I've seen other combinations too.

I've managed to reduce the SCH to a minimal example (attached). Further changes to this seem to fix it somehow, so I couldn't reduce it anymore.
Note that one of the symbols is not on the official library so I've included a local library.
I've tried replacing that symbol for a standard header, but that seems to fix the problem, although I can't see anything wrong with the symbol itself.

I asked on the development mailing list and jp charras confirmed it:

> I confirm there is a serious issue shown by this sample: the netlist is broken.
> Moreover, when I try to add a bus name ("ROW[0..7]") to the bus, Eeschema crashes.
> Looks like the bug has something to do with hierarchical labels.

> I do not see issues with the schematic.

I agree it is a serious one too given it breaks the netlist. I've got a SCH which I can't layout because of this. It's not an important project and that is why I'm using nightlies, but now I can't open the layout on 5.x stable because the format changed :)

Many thanks!

Application: KiCad
Version: 6.0.0-unknown-6b031d9~100~ubuntu16.04.1, release build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.4.0-157-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.58.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.47.0
    Compiler: GCC 5.4.0 with C++ ABI 1009
Build settings:
    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

Tags: eeschema
Revision history for this message
Diego Herranz (diegoherranz) wrote :
Jon Evans (craftyjon)
Changed in kicad:
assignee: nobody → Jon Evans (craftyjon)
importance: Undecided → High
tags: added: eeschema
Changed in kicad:
status: New → Confirmed
summary: - Weird bus/hierarchy bug
+ Bus/hierarchy bug, netlist broken
Changed in kicad:
milestone: none → 6.0.0-rc1
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

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

Changed in kicad:
status: Confirmed → Fix Committed
Revision history for this message
Diego Herranz (diegoherranz) wrote :

Wow, that was quick.
I'll test it when the nightly gets updated and report back.

Thanks!

Revision history for this message
Diego Herranz (diegoherranz) wrote :

I've just tested the updated nightly and it seems to work OK.
Thanks again!

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

No problem! Thanks for taking the time to make a test case reproducing this issue, it's very helpful.

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

Other bug subscribers

Bug attachments

Remote bug watches

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