pcbnew: segmentation fault trying to remove cutout

Bug #1736147 reported by Sergey A. Borshch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Maciej Suminski

Bug Description

After attempting to remove zone cutout by deleting all of it corners, any action with zone leads to segmentation fault.

Steps to reproduce:

1) create zone.
2) choose selection tool.
3) Select zone.
4) Select "Zone->Add a zone cutout" in dropdown menu (without p.2 this item grayed out, why? And you have to return to p.2 every time to add another cutout to same zone).
5) select zone again, move cursor over every cutout corner and select "remove corner" in dropdown menu.
6) notice, that you are unable to delete last corner. I think last corner or two has to be removed automatically, because one- or two-corners cutout has no meaning.
7) try to move any zone corner or side.

Version info (today's git master):
Application: pcbnew
Version: (2017-12-04 revision cd3122d)-master, release build
Libraries:
    wxWidgets 3.0.2
Platform: Linux 4.4.0-98-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
    Compiler: GCC 5.4.0 with C++ ABI 1009

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=OFF
    KICAD_SCRIPTING_MODULES=OFF
    KICAD_SCRIPTING_WXPYTHON=OFF
    KICAD_SCRIPTING_ACTION_MENU=OFF
    BUILD_GITHUB_PLUGIN=OFF
    KICAD_USE_OCE=OFF
    KICAD_SPICE=OFF

Tags: gal pcbnew
description: updated
description: updated
Changed in kicad:
status: New → In Progress
assignee: nobody → Maciej Suminski (orsonmmz)
importance: Undecided → Critical
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

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

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Sergey A. Borshch (sb-sf) wrote :

Now undo of deleted cutout is broken.

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

More details please. I have just created a cutout, deleted all of its points one by one and restored the original state and intermediate steps with Ctrl+Z.

Revision history for this message
Sergey A. Borshch (sb-sf) wrote :

Sorry, my fault. Was confused by disappearing all except current layer after placing cutout. Curiously, it happens only on single board I used to test your bugfix. Other boards seems not affected, so I'll fill another bug report.

Jeff Young (jeyjey)
Changed in kicad:
status: Fix Committed → Fix Released
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.