Crash when quitting KiCad while simulator window is open
Steps to reproduce
- Open eeschema
- Open simulator
- Quit KiCad
Stacktrace
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
frame #0: 0x0000000100111444 kicad`FILE_HISTORY_MENU::~FILE_HISTORY_MENU(this=0x000000010745c850) at filehistory.cpp:97:19
94
95 FILE_HISTORY_MENU::~FILE_HISTORY_MENU()
96 {
-> 97 m_fileHistory.RemoveMenu( this );
98 }
99
100
Target 0: (kicad) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
* frame #0: 0x0000000100111444 kicad`FILE_HISTORY_MENU::~FILE_HISTORY_MENU(this=0x000000010745c850) at filehistory.cpp:97:19
frame #1: 0x00000001001114c5 kicad`FILE_HISTORY_MENU::~FILE_HISTORY_MENU(this=0x000000010745c850) at filehistory.cpp:96:1
frame #2: 0x00000001001114e9 kicad`FILE_HISTORY_MENU::~FILE_HISTORY_MENU(this=0x000000010745c850) at filehistory.cpp:96:1
frame #3: 0x0000000100eea553 libwx_osx_cocoau-3.0.0.dylib`wxMenuItemBase::~wxMenuItemBase() + 35
frame #4: 0x0000000100d95f8f libwx_osx_cocoau-3.0.0.dylib`wxMenuItem::~wxMenuItem() + 15
frame #5: 0x0000000100eea998 libwx_osx_cocoau-3.0.0.dylib`wxMenuBase::~wxMenuBase() + 72
frame #6: 0x00000001001e330b kicad`ACTION_MENU::~ACTION_MENU(this=0x0000000107455e20) at action_menu.cpp:65:1
frame #7: 0x0000000100211aef kicad`CONDITIONAL_MENU::~CONDITIONAL_MENU(this=0x0000000107455e20) at conditional_menu.h:39:7
frame #8: 0x000000010020d8a5 kicad`CONDITIONAL_MENU::~CONDITIONAL_MENU(this=0x0000000107455e20) at conditional_menu.h:39:7
frame #9: 0x000000010020d8c9 kicad`CONDITIONAL_MENU::~CONDITIONAL_MENU(this=0x0000000107455e20) at conditional_menu.h:39:7
frame #10: 0x000000010002437f kicad`KICAD_MANAGER_FRAME::~KICAD_MANAGER_FRAME(this=0x0000000103045600) at kicad_manager_frame.cpp:182:5
frame #11: 0x00000001000243b5 kicad`KICAD_MANAGER_FRAME::~KICAD_MANAGER_FRAME(this=0x0000000103045600) at kicad_manager_frame.cpp:168:1
frame #12: 0x00000001000243d9 kicad`KICAD_MANAGER_FRAME::~KICAD_MANAGER_FRAME(this=0x0000000103045600) at kicad_manager_frame.cpp:168:1
frame #13: 0x0000000100e3f936 libwx_osx_cocoau-3.0.0.dylib`wxAppBase::CleanUp() + 38
frame #14: 0x0000000100db26bb libwx_osx_cocoau-3.0.0.dylib`wxApp::CleanUp() + 43
frame #15: 0x0000000100c90a23 libwx_osx_cocoau-3.0.0.dylib`wxEntryCleanup() + 51
frame #16: 0x0000000100c90bb2 libwx_osx_cocoau-3.0.0.dylib`wxEntry(int&, wchar_t**) + 178
frame #17: 0x000000010001cfd3 kicad`main(argc=1, argv=0x00007ffeefbff958) at kicad.cpp:300:1
frame #18: 0x00007fff762153d5 libdyld.dylib`start + 1
frame #19: 0x00007fff762153d5 libdyld.dylib`start + 1
KiCad Version
Application: Eeschema
Version: (5.99.0-636-gdf72eb77a-dirty), debug build
Libraries:
wxWidgets 3.0.4
libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.5.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
Build date: Jan 6 2020 13:56:00
wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8)
Boost: 1.70.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 10.0.1 with C++ ABI 1002
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=OFF
KICAD_STDLIB_LIGHT_DEBUG=OFF
KICAD_SANITIZE=OFF