Eeschema crash on macOS when opening a file while properties dialog is shown
Description
Eeschema crash on macOS when opening a file while properties dialog is shown and cancel button is clicked.
Steps to reproduce
- Open a kicad_sch file
- Dual click a component to edit its properties
- Keep the properties dialog open, and open the same kicad_sch file again
- If the kicad_sch file is a subsheet, eeschema will crash immediately (See Crash-log2.txt above)
- If the kicad_sch file is a top sheet, eeschema will crash after you click the "Cancel" button of properties dialog
KiCad Version
Application: KiCad 原理图编辑器
Version: (6.0.5-0), release build
Libraries:
wxWidgets 3.1.5
libcurl/7.79.1 SecureTransport (LibreSSL/3.3.6) zlib/1.2.11 nghttp2/1.45.1
Platform: macOS Version 12.4 (Build 21F79), 64 bit, Little endian, wxMac
Build Info:
Date: May 3 2022 12:26:25
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.78.0
OCC: 7.6.2
Curl: 7.64.1
ngspice: 35
Compiler: Clang 12.0.0 with C++ ABI 1002
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON