KiCad Crashes on reloading deleted footprint

Bug #1826794 reported by Ted Strassburg III
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
jean-pierre charras

Bug Description

Deleting a footprint from a library in the Footprint Editor, and saving , while Pcbnew is open causes KiCad to crash when selecting to place another footprint in Pcbnew. The previously used footprint no longer exists and can not be shown in Recently Used footprints by Pcbnew. This causes all open KiCad modules to close with no warnings or errors.

This occurs when Pcbnew is open at the time of editing or closed then reopened to add another footprint.
This is repeatable, as I've just done it several times trying to see if there was a way around the issue.

Application: kicad
Version: (5.1.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 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.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_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

Tags: pcbnew
Changed in kicad:
status: New → Triaged
importance: Undecided → High
Revision history for this message
John Beard (john-j-beard) wrote :

I think that's a high because you can crash an actively edited file quite easily just by opening the dialog.

Revision history for this message
jean-pierre charras (jp-charras) wrote :

Hi John:

All crashes, especially when confirmed, can be flagged as critical.

Changed in kicad:
milestone: none → 5.1.3
assignee: nobody → jean-pierre charras (jp-charras)
status: Triaged → Fix Committed
importance: High → Critical
tags: added: pcbnew
Revision history for this message
John Beard (john-j-beard) wrote :

Whoops, didn't see that changing! Damn...

Changed in kicad:
assignee: jean-pierre charras (jp-charras) → John Beard (john-j-beard)
status: Fix Committed → In Progress
Revision history for this message
jean-pierre charras (jp-charras) wrote :

Is my fix not working?

Revision history for this message
John Beard (john-j-beard) wrote :

It is working. I was trying to claim it, but didn't refresh this page, and LP doesn't tell you you're overwriting things that have been changed since you loaded the issue.

Changed in kicad:
status: In Progress → Fix Committed
assignee: John Beard (john-j-beard) → jean-pierre charras (jp-charras)
Revision history for this message
John Beard (john-j-beard) wrote :

Hope you don't mind, I also pushed my patch that I was working on when I changed the status.

It's basically the same fix, but it keep symmetry with the same check in eeschema (and prevents any future users of historyInfos from catching a nullptr unexpectedly).

I'll keep the Critical status in mind!

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.