pcbnew: crash on right click on empty space

Bug #1808852 reported by NhatKhai on 2018-12-17
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
KiCad
Critical
Seth Hillbrand

Bug Description

PCBNEW Crash on my project board when I right click on empty space inside the board cut-edge (where no traces, but there is a fill (regardless of turn on/off the fill). But it is not crash if I right click out-side of the board cut-edge.

Application: kicad
Version: (5.0.2)-1, 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 7 (build 7601, Service Pack 1), 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_WXPYTHON=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Wayne Stambaugh (stambaughw) wrote :

I cannot duplicate this on windows 10. Does this happen with every board or is specific to a single board? If it's a single board, would it be possible for you to post the board that causes the issue?

I also see this is windows 7 which seem to have a very high incidence of crash reports. I wonder if there is a library that we are shipping in our windows installer that is not compatible with w7.

Changed in kicad:
status: New → Incomplete
NhatKhai (nhatkhai) wrote :

What if I can get a debug version of Kicad to obtain a full report of crash?

Wayne Stambaugh (stambaughw) wrote :

That would be even better. I don't think we provide debug builds for 5.0.2.

Nick Østergaard (nickoe) wrote :

Is this the official build?

Does it happen for any board file? If not, please provide a test board.

tags: added: packaging windows
NhatKhai (nhatkhai) wrote :

I download this from http://downloads.kicad-pcb.org/windows/stable/kicad-5.0.2_1-x86_64.exe

I'm sorry that I cannot share the file, and I'm did not save the image of the board. I was continue edit it using 4.0.7 versions. Then try back again with 5.0.2 - It now not crash. So it is not happens to any board.

If I come across this again, I will let save the version of my board, and test it for you. So if you have special debug build for more informative on the crash, I will happy to try it with.

Hassan Oman (hassanou) wrote :

I can confirm that behavior.
In the attached layout, a right click on the ground zone causes Pcbnew to crash.
The ground zone has the same size as the board.
It does not crash when the B.Cu layer is hidden.

My setup is
Application: kicad
Version: 5.0.2-bee76a0~70~ubuntu18.04.1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.58.0 OpenSSL/1.1.0g 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-38-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.65.1
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.58.0
    Compiler: GCC 7.3.0 with C++ ABI 1011

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

Seth Hillbrand (sethh) wrote :

I can confirm this when using legacy toolset

Application: pcbnew
Version: (5.0.2-11-g9240a54f4), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.62.0 OpenSSL/1.1.1a zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.35.1 librtmp/2.3
Platform: Linux 4.18.0-3-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.67.0
    Curl: 7.62.0
    Compiler: GCC 8.2.0 with C++ ABI 1013

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

Changed in kicad:
importance: Undecided → Critical
status: Incomplete → Triaged
Seth Hillbrand (sethh) on 2018-12-20
Changed in kicad:
assignee: nobody → Seth Hillbrand (sethh)
status: Triaged → In Progress
KiCad Janitor (kicad-janitor) wrote :

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

Changed in kicad:
status: In Progress → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers