eeschema crash on file open

Bug #1843091 reported by Patrik Bachan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Seth Hillbrand

Bug Description

Somehow, I managed to create hierarchical sheet which crashes whole kicad when opened (as h. sheet or if imported to other schematic).

Application: Eeschema
Version: (5.99.0-60-gc8a6878eb), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.65.3 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh2/1.8.2 nghttp2/1.39.2
Platform: Linux 5.2.11-arch1-1-ARCH 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.69.0
    OpenCASCADE Technology: 7.3.0
    Curl: 7.65.3
    Compiler: GCC 9.1.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=OFF
    KICAD_USE_OCC=ON
    KICAD_SPICE=ON

Tags: eeschema
Revision history for this message
Patrik Bachan (xorly) wrote :
Seth Hillbrand (sethh)
Changed in kicad:
status: New → In Progress
importance: Undecided → Critical
milestone: none → 5.1.5
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

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

Changed in kicad:
status: In Progress → Fix Committed
assignee: nobody → Seth Hillbrand (sethh)
Revision history for this message
Seth Hillbrand (sethh) wrote :

Was this schematic created by eeschema? Or did an external program modify it?

The spin values for the labels are incorrect and should not be able to be created by any path I can see in eeschema. I've added some defensive code here to prevent crashes.

Revision history for this message
Patrik Bachan (xorly) wrote :

Yes, it was created by same version of eeschema. Not sure which operation broke it, but I was even playing with "Edit Text and Graphic Properties" which behaves slightly buggy. (gotta summarize it to new bugreport) I also did some rotations and mirroring to value and reference fields by shortcuts. Not sure why it broke only this paricular hierarchical schematic.

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.