Frequent 7.0.x macOS Apple Silicon menu bar crashes (Sonoma)
Description
With various versions of 7.0.x, I occasionally get a crash when the mouse moves into the menu bar and click. I'm running Sonoma 14.1 beta unfortunately; just upgraded from the released Sonoma, but I haven't used KiCad on the released version of Sonoma. The crash happens in both eeschema and pcbnew.
The SEGV call stack looks like:
VM Region Info: 0x55545a000254 is not in any region. Bytes after previous region: 93339739226709 Bytes before following region: 11732340702636...
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 _pcbnew.kiface 0x136639a34 TOOL_MANAGER::GetMousePosition() const + 16
1 _pcbnew.kiface 0x1365fe708 ACTION_MENU::OnMenuEvent(wxMenuEvent&) + 2368
2 _pcbnew.kiface 0x136634fc0 TOOL_DISPATCHER::DispatchWxEvent(wxEvent&) + 2084
3 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1056ac83c wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 444
4 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1056ade10 wxEvtHandler::ProcessEvent(wxEvent&) + 260
...
The address is always bogus, not a null pointer.
Steps to reproduce
I can't reproduce it at will, so I'm not sure if there's a previous action that triggers the crash. I'll update if I find steps to reproduce.
KiCad Version
Application: KiCad PCB Editor arm64 on arm64
Version: 7.0.8, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.13.0
HarfBuzz 7.3.0
FontConfig 2.14.2
libcurl/8.1.2 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.55.1
Platform: macOS Version 14.1 (Build 23B5046f), 64 bit, Little endian, wxMac
Build Info:
Date: Sep 29 2023 12:23:42
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.82.0
OCC: 7.7.0
Curl: 7.77.0
ngspice: 38
Compiler: Clang 13.0.0 with C++ ABI 1002
Build settings:
KICAD_SPICE=ON