Pcbnew: zone lose net assignment after group move and undo

Bug #1840727 reported by Jakub Kozdon
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
High
jean-pierre charras

Bug Description

Steps to reproduce:

1. Open Pcbnew
2. Select block of object including some zone
3. Move block
4. Undo move

Sometime this not appear after the first try.

I can prepare a video if needed.

--

Application: KiCad
Version: (5.1.0-1541-ga0ed40876), debug build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.52.1 OpenSSL/1.0.2s zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Platform: Linux 4.9.0-9-amd64 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.62.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.52.1
    Compiler: GCC 6.3.0 with C++ ABI 1010

Build settings:
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=OFF
    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
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF

Tags: pcbnew
Revision history for this message
Jakub Kozdon (fldrivers) wrote :

Before move.

Revision history for this message
Jakub Kozdon (fldrivers) wrote :

After move.

Revision history for this message
Jakub Kozdon (fldrivers) wrote :

After undo.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I'm assuming by group move you mean moving a selected block of objects. If that is the case, I cannot duplicate this on any of the boards I tested. It could possibly specific to your board design. Would it be possible for your to attach your board or a sample board that exhibits the issue?

Application: Pcbnew
Version: (5.1.0-1558-g0ba0c1724), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.65.3 OpenSSL/1.1.1c (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) nghttp2/1.39.1
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.70.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.65.3
    Compiler: GCC 9.2.0 with C++ ABI 1013

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

Changed in kicad:
status: New → Incomplete
tags: added: pcbnew
Jakub Kozdon (fldrivers)
summary: - Pcbnew: zone lose net assignment after group move
+ Pcbnew: zone lose net assignment after group move and undo
Revision history for this message
Jakub Kozdon (fldrivers) wrote :

I updated description.

With this board I can reproduce this. But I have this issue also with other boards.

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

The video may be helpful. I've tried a few times to reproduce this but have had no success.

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

Revision history for this message
Jakub Kozdon (fldrivers) wrote :

As you can see. But this happens randomly, sometime it is ok, sometime lose net only one zone, sometime both.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

There is something very wrong here. I can reproduce this occasionally with both the undo and redo commands but there doesn't seem to be any rhyme or reason as to what triggers it. It seems to trigger more often with the redo command.

Changed in kicad:
status: Incomplete → Triaged
importance: Undecided → High
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

This only seems to affect the master branch. I cannot duplicate it with 5.1.4.

Changed in kicad:
milestone: none → 6.0.0-rc1
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

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

Changed in kicad:
status: Triaged → Fix Committed
assignee: nobody → jean-pierre charras (jp-charras)
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.