Crash on M1 MacBook Pro w/ Sonoma

Opening PcbNew directly, NOT via KiCad. Move to File menu, select Append Board, navigate to KiCad directory, then 7, then project directory, select pcb, then OK. Immediate crash. Starts report saying there was a segment fault. I am happy to forward the complete crash report.

Sonoma has some known issues. You can try updating to the 14.1 RC to see if that helps, or wait for 14.1 final.

Anybody knows if it is safe to install Sonoma 14.1 without compromising Kicad? I’m mainly using the nightlies now on a M1 minimac but still on Ventura 13.6.1

At least one 14.0 crash-causing bug has been fixed in 14.1 according to user reports, but none of the developers use Sonoma so I can’t say much beyond that.

Kicad may be the least of your worries?
(Probably unrelated but has to do with refresh rates)

I’ll give Sonoma a try when I’m back home in 2 weeks.

Still crashing Sonoma 14.1/ KiCAD 7.9 RC2


Translated Report (Full Report Below)

Process: kicad [51831]
Path: /Applications/KiCad/KiCad.app/Contents/MacOS/kicad
Identifier: org.kicad.kicad
Version: 7.0.9-rc2 (7.0.9-rc2)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2023-11-02 19:33:15.1345 -0400
OS Version: macOS 14.1 (23B74)
Report Version: 12
Anonymous UUID:

Sleep/Wake UUID:

Time Awake Since Boot: 420000 seconds
Time Since Wake: 126149 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000000c0
Exception Codes: 0x0000000000000001, 0x00000000000000c0

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [51831]

VM Region Info: 0xc0 is not in any region. Bytes before following region: 105558484975424
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
—>
MALLOC_NANO 600140000000-600160000000 [512.0M] rw-/rwx SM=PRV

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 _pcbnew.kiface 0x2d7120040 TOOL_MANAGER::GetMousePosition() const + 16
1 _pcbnew.kiface 0x2d70e4b04 ACTION_MENU::OnMenuEvent(wxMenuEvent&) + 2416
2 _pcbnew.kiface 0x2d711b5cc TOOL_DISPATCHER::DispatchWxEvent(wxEvent&) + 2084
3 libwx_osx_cocoau-3.2.0.2.1.dylib 0x10818de2c wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 444
4 libwx_osx_cocoau-3.2.0.2.1.dylib 0x10818f400 wxEvtHandler::ProcessEvent(wxEvent&) + 260
5 _pcbnew.kiface 0x2d700dca0 EDA_BASE_FRAME::ProcessEvent(wxEvent&) + 96
6 libwx_osx_cocoau-3.2.0.2.1.dylib 0x10818f574 wxEvtHandler::ProcessEventLocally(wxEvent&) + 192
7 libwx_osx_cocoau-3.2.0.2.1.dylib 0x10818f334 wxEvtHandler::ProcessEvent(wxEvent&) + 56
8 libwx_osx_cocoau-3.2.0.2.1.dylib 0x10818fb28 wxEvtHandler::SafelyProcessEvent(wxEvent&) + 24
9 libwx_osx_cocoau-3.2.0.2.1.dylib 0x108357ca4 wxMenuBase::ProcessMenuEvent(wxMenu*, wxMenuEvent&, wxWindow*) + 24
10 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1081f1a4c wxMenu::HandleMenuItemHighlighted(wxMenuItem*) + 108
11 AppKit 0x18a172664 -[NSMenu _informDelegateOfHighlightedItem:] + 140
12 AppKit 0x18a6c90a8 -[NSCocoaMenuImpl _addHighlightForView:] + 356
13 AppKit 0x18a6c8cf8 __60-[NSCocoaMenuImpl _highlightMenuItemView:shouldOpenSubmenu:]_block_invoke + 224
14 AppKit 0x18a6c899c -[NSCocoaMenuImpl _highlightMenuItemView:shouldOpenSubmenu:] + 368
15 AppKit 0x18a6c7edc -[NSCocoaMenuImpl _routeEventIfNeeded:toSubview:] + 564
16 AppKit 0x18a6c7a5c -[NSCocoaMenuImpl handleMouseEvent:] + 232
17 AppKit 0x18abb91d0 -[NSMenuBarImpl mouseDown:] + 128
18 AppKit 0x18a4f0848 -[NSMenuTrackingSession _mouseDownEventHandler:] + 184
19 AppKit 0x18a593cc4 -[NSMenuBarTrackingSession _mouseDownEventHandler:] + 160
20 AppKit 0x18a593c0c -[NSMenuBarTrackingSession handleEvent:] + 248
21 AppKit 0x18a593aec __61-[NSMenuBarTrackingSession _addMouseDownEventMonitorIfNeeded]_block_invoke + 192
22 AppKit 0x18a0c6370 _NSSendEventToDequeuingObservers + 252
23 AppKit 0x18a6a14c4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2260
24 AppKit 0x189ebe100 -[NSApplication run] + 476
25 libwx_osx_cocoau-3.2.0.2.1.dylib 0x10826da3c wxGUIEventLoop::OSXDoRun() + 196
26 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1081636bc wxCFEventLoop::DoRun() + 40
27 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1080ba134 wxEventLoopBase::Run() + 192
28 libwx_osx_cocoau-3.2.0.2.1.dylib 0x10808a638 wxAppConsoleBase::MainLoop() + 208
29 libwx_osx_cocoau-3.2.0.2.1.dylib 0x10820b084 wxApp::OnRun() + 36
30 kicad 0x104915e48 APP_KICAD::OnRun() + 20
31 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1080ece30 wxEntry(int&, wchar_t**) + 88
32 kicad 0x104914360 main + 52
33 dyld 0x1862990e0 start + 2360

Still crashing here as well.

I got around to upgrading one machine to 14.1.2 and I haven’t seen any KiCad crashes yet.

I tried the reproduction steps posted by @EIdTech77 but saw no crash – this crash may depend on the specific board being appended – does it happen with the KiCad demo boards?

@mpmp and @AB007 what steps are you taking to get a crash?

@craftyjon I saw not crash yet since I’m running on 14.1.2. I wasn’t able to reproduce-it as was one click on menu bar, somewhere that generates the crash. I have some intensive work this days with KiCAD, so I’ll post if something happened…

However, since Sonoma was upgraded, the number of crashes decrease…

It is quite possible that Apple fixed a bug in 14.1.2 that was causing crashes on earlier 14.x releases. The same thing happened with 13.0 → 13.1

One crash… when pressing save in PCB:


Translated Report (Full Report Below)

Process: kicad [3072]
Path: /Applications/KiCad/KiCad.app/Contents/MacOS/kicad
Identifier: org.kicad.kicad
Version: 7.0.9 (7.0.9)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2023-12-01 16:56:19.3667 -0500
OS Version: macOS 14.1.2 (23B92)
Report Version: 12
Anonymous UUID:

Time Awake Since Boot: 75000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x4059d51000000028 → 0x0000551000000028 (possible pointer authentication failure)
Exception Codes: 0x0000000000000001, 0x4059d51000000028

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [3072]

VM Region Info: 0x551000000028 is not in any region. Bytes after previous region: 93046171500585 Bytes before following region: 12025908428760
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
commpage (reserved) 1000000000-7000000000 [384.0G] —/— SM=NUL …(unallocated)
—> GAP OF 0x5f9000000000 BYTES
MALLOC_NANO 600000000000-600020000000 [512.0M] rw-/rwx SM=PRV

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 _pcbnew.kiface 0x167df0afc ACTION_MENU::OnMenuEvent(wxMenuEvent&) + 2360
1 _pcbnew.kiface 0x167e275fc TOOL_DISPATCHER::DispatchWxEvent(wxEvent&) + 2084
2 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1039b5e2c wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 444
3 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1039b7400 wxEvtHandler::ProcessEvent(wxEvent&) + 260
4 _pcbnew.kiface 0x167d19cd0 EDA_BASE_FRAME::ProcessEvent(wxEvent&) + 96
5 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1039b7574 wxEvtHandler::ProcessEventLocally(wxEvent&) + 192
6 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1039b7334 wxEvtHandler::ProcessEvent(wxEvent&) + 56
7 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1039b7b28 wxEvtHandler::SafelyProcessEvent(wxEvent&) + 24
8 libwx_osx_cocoau-3.2.0.2.1.dylib 0x103b7fca4 wxMenuBase::ProcessMenuEvent(wxMenu*, wxMenuEvent&, wxWindow*) + 24
9 libwx_osx_cocoau-3.2.0.2.1.dylib 0x103a19a4c wxMenu::HandleMenuItemHighlighted(wxMenuItem*) + 108
10 AppKit 0x1909ee664 -[NSMenu _informDelegateOfHighlightedItem:] + 140
11 AppKit 0x190f450a8 -[NSCocoaMenuImpl _addHighlightForView:] + 356
12 AppKit 0x190f44cf8 __60-[NSCocoaMenuImpl _highlightMenuItemView:shouldOpenSubmenu:]_block_invoke + 224
13 AppKit 0x190f4499c -[NSCocoaMenuImpl _highlightMenuItemView:shouldOpenSubmenu:] + 368
14 AppKit 0x190f43edc -[NSCocoaMenuImpl _routeEventIfNeeded:toSubview:] + 564
15 AppKit 0x190f43a5c -[NSCocoaMenuImpl handleMouseEvent:] + 232
16 AppKit 0x1914351d0 -[NSMenuBarImpl mouseDown:] + 128
17 AppKit 0x190d6c848 -[NSMenuTrackingSession _mouseDownEventHandler:] + 184
18 AppKit 0x190e0fcc4 -[NSMenuBarTrackingSession _mouseDownEventHandler:] + 160
19 AppKit 0x190e0fc0c -[NSMenuBarTrackingSession handleEvent:] + 248
20 AppKit 0x190e0faec __61-[NSMenuBarTrackingSession _addMouseDownEventMonitorIfNeeded]_block_invoke + 192
21 AppKit 0x190942370 _NSSendEventToDequeuingObservers + 252
22 AppKit 0x190f1d4c4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2260
23 AppKit 0x19073a100 -[NSApplication run] + 476
24 libwx_osx_cocoau-3.2.0.2.1.dylib 0x103a95a3c wxGUIEventLoop::OSXDoRun() + 196
25 libwx_osx_cocoau-3.2.0.2.1.dylib 0x10398b6bc wxCFEventLoop::DoRun() + 40
26 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1038e2134 wxEventLoopBase::Run() + 192
27 libwx_osx_cocoau-3.2.0.2.1.dylib 0x1038b2638 wxAppConsoleBase::MainLoop() + 208
28 libwx_osx_cocoau-3.2.0.2.1.dylib 0x103a33084 wxApp::OnRun() + 36
29 kicad 0x10013de68 APP_KICAD::OnRun() + 20
30 libwx_osx_cocoau-3.2.0.2.1.dylib 0x103914e30 wxEntry(int&, wchar_t**) + 88
31 kicad 0x10013c380 main + 52
32 dyld 0x18cb150e0 start + 2360

How did you press save? The icon in the toolbar, or File > Save?

the icon on the toolbar

I had a few more crashes when pressing the toolbar items… unfortunately I was not able to reproduce.

I have access to an M1 MBP now running 14.1.2, and I have not seen a single KiCad crash unfortunately. I’ve been pressing toolbar icons over and over but they just work :frowning:

Can you share more details about your setup? Do you have external monitor(s)? Are you running in fullscreen mode? What language/region is macOS set to, and what language is KiCad set to? If you press toolbar buttons over and over (example: press the Save button repeatedly) do you see a crash?

Do you have external monitor(s)?
No, I use a single monitor.

Are you running in fullscreen mode?
No.

What language/region is macOS set to, and what language is KiCad set to?
English Canada / English

If you press toolbar buttons over and over (example: press the Save button repeatedly) do you see a crash?
I experience 5-6 crashes… however the state of the design was saved. It only happened in Layout view. I really cannot reproduce… I’ve just submit the crash report to Apple.

I think that I have something…
The crash looks like happened when I press a KiCAD tool bar menu after I press an icon menu: press icon save then press view on the toolbar…

Hope that helps.

Best Regards,
Andrei

I can confirm that selecting menu items can cause 7.0.0-0 to crash on Sonoma.
I never had a crash with this version on Ventura.

V7.0.0 is too old to be of any interest for diagnosis.

I also see V7.0.9 is mentioned in this thread and I wonder why you answer with such an old version.