KiCad crashes when opening another project and selecting "Save" at the prompt
Description
If you have unsaved changes in PCBNew or EESchema for a schematic containing hierarchical sheets and you attempt to open a new project and select "Save" at the prompt, KiCad will crash.
Steps to reproduce
- Open a project and make changes to the schematic or the board contained in that project. Conditions: both schematic and the board layout need to be open if the changes are done to the board layout and schematic needs to contain hierarchical sheets.
- Switch to the project manager, open a new project and select "Save" option at the prompt
KiCad Version
Application: KiCad
Version: (5.99.0-2251-g5226d6b4d), release build
Libraries:
wxWidgets 3.0.4
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.71.0
OCE: 6.9.1
Curl: 7.66.0
ngspice: 31
Compiler: GCC 9.2.0 with C++ ABI 1013
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_SPICE=ON
Edited by Art