[v 7.0.5] Footprint Viewer crashes on macos

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:

  1. Start KiCAD, “Create new blank project” and save it unter a name, let’s say “test”
  2. Open the schematic test.kicad_sch
  3. “Add a symbol”, choose “R” and place it somewhere
  4. Save the project and close KiCAD
  5. Open KiCAD and test.kicad_sch
  6. Click “Run footprint assignment tool”
  7. Click on any of the footprints in “Filtered Footprints”
  8. 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
1 Like

Thanks! Good to see it will be fixed in the next version.

You can actually try a macOS 7.0 testing build if you want a fix sooner
https://downloads.kicad.org/kicad/macos/explore/7.0-testing

1 Like

I have tried the latest build (from yesterday) and can confirm that the issue is no longer reproducible.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.