The current version crashes on macos (m1) when trying to view a footprint under certain circumstances.
| % sw_vers
| ProductName: macOS
| ProductVersion: 13.4
| BuildVersion: 22F66
| % arch
| arm64
Steps to reproduce:
- Start KiCAD, “Create new blank project” and save it unter a name, let’s say “test”
- Open the schematic test.kicad_sch
- “Add a symbol”, choose “R” and place it somewhere
- Save the project and close KiCAD
- Open KiCAD and test.kicad_sch
- Click “Run footprint assignment tool”
- Click on any of the footprints in “Filtered Footprints”
- Click “View the selected footprint in the footprint viewer”
→ Crash
Without step 4 and 5 KiCAD does not crash. I think that during “Add a symbol” in step 3 something gets populated which is needed for “View the selected footprint in the footprint viewer” in step 8.
Here is the relevant part of the crash report. Looks like dereferencing a NULL pointer.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [1534]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 _cvpcb.kiface 0x17cc2082c CVPCB_CONTROL::ShowFootprintViewer(TOOL_EVENT const&) + 372
1 _cvpcb.kiface 0x17d1ab054 COROUTINE<int, TOOL_EVENT const&>::callerStub(long) + 60
2 _cvpcb.kiface 0x17d271450 make_fcontext + 28