pcbnew crashed when zooming in/out with hatched GND

Bug #1851526 reported by Philipp Legrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Unknown

Bug Description

Zooming (in and???) out with the mousewheel on the attached offending board makes pcbnew crash quite reliably. The board has a hatchen front copper layer. (If I change it to solid, no crash occurs.)

I am running KiCAD newest on a Debian 9 within a VM.

It seems that a hatch Orientation angle of 0 makes pcbnew crash more rarely.

(Even though I compiled as debug and have debug symbols in the pcbnew binary, the stack trace is not as expressive as I would like it to be. Maybe somebody can give me a hint here and I will add a better stack trace.)

Application: Pcbnew
Version: (5.99.0-321-g6c7db34dd), 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-3-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    Build date: Nov 5 2019 17:37:24
    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=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
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF

Tags: pcbnew
Revision history for this message
Philipp Legrum (philulm) wrote :
Revision history for this message
Philipp Legrum (philulm) wrote :

Backtrace

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

I am unable to get this to crash. It looks like you have quite a few commits after the master branch. Please try with baseline master and see if that fixes the issue.

Application: Pcbnew
Version: (5.99.0-314-ga60fb9a4b), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1d 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-6-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    Build date: Nov 5 2019 11:37:40
    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=OFF
    KICAD_SCRIPTING_MODULES=OFF
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=OFF
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=OFF
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON
    KICAD_STDLIB_DEBUG=ON
    KICAD_SANITIZE=OFF

Changed in kicad:
status: New → Incomplete
tags: added: pcbnew
Revision history for this message
Philipp Legrum (philulm) wrote :

I cleaned my master branch, and recompiled. Crash is still there.

It definitely depends on the orientation angle of the hatching. 0-10 degress seem ok. 45 degreee is crash-prone.

To make it crash I need to have: Standard Graphics (F12), Preferences/Preferences/Fallbacks Graphics: Fast Antialiasing.

All other antialiasing options do not crash. Accelerated graphics seems to be ok.

Rapidly zooming in/out often crashes under a second. Once I got it to crash by just making the hatched layer invisible and visible(chrash) again.

Maybe, someone can reproduce this.

Application: Pcbnew
Version: (5.99.0-315-g79972a386), debug build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.52.1 OpenSSL/1.0.2t 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-3-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    Build date: Nov 7 2019 13:23:18
    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=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
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF

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

I cannot duplicate this on linux using any of the antialiasing settings on my system. I'm using the noveau drivers on my system at the moment so it could be a video driver issue on your system. If someone else can duplicate this, please chime in.

Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

KiCad bug tracker has moved to Gitlab. This report is now available here: https://gitlab.com/kicad/code/kicad/-/issues/2582

Changed in kicad:
status: Incomplete → Expired
Changed in kicad:
importance: Undecided → Unknown
status: Expired → 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.