unhandled exception at startup
Description
Kicad shows a error-dialog "unhandled exception" if a project with open schematic+board-editor is loaded at kicad-startup. The unhandled exception is shown at loading the board.
This bug was introduced between 02.05. and 04.05.: version kicad-7.0-testing_r32175.b0235a28-x86_64-lite.exe is working, version kicad-7.0-testing_r32195.f4fa5bb0-x86_64-lite.exe (see version-info below) shows the issue.
The unhandled exception occurs with all tested projects, so should be reproducible with all developer-projects. Nevertheless I attach a sample-project: startup_error.zip
This issue also affects v7.99 nightly, but for nightly the problematic code-change seems to somewhat older:
- version kicad-nightly-r32532.e9a93bc7-x86_64-lite.exe from 18.04. is working
- version kicad-nightly-r32546.6022979b-x86_64-lite.exe from 19.04 (and newer until current nightly from 07.05) shows the issue
Steps to reproduce
- these steps require to first to install the old working kicad-version at first: install kicad-7.0-testing_r32175.b0235a28-x86_64-lite.exe (or older)
- set checkbox "Preferences-->Common-->Remember open files for next project launch"
- open any project, open schematic+board editor
- close kicad (so with next kicad-start these last opened editors should be reopened)
- install 7.0-testing_r32195.f4fa5bb0-x86_64-lite.exe (from 04.05.)
- start kicad, observe:
- kicad manager opens correctly
- schematic editor opens correctly (with thefile from step3)
- board editor tries to start and to also open the file from step3: unhandled exception occurs
KiCad Version
Application: KiCad x64 on x64
Version: 7.0.2-100-gf4fa5bb0fc, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON