Hello,
I'm looking for some help in
tracking down a problem a friend has running
OpenCPN on his Mac book. He's had many happy years of use out of
OpenCPN and has recently been experimenting creating his own tile-based
charts. He says that all was going well, until it wasn't. His 'last action' was to create a higher-resolution chart which he tried to
import into OpenCPN and thus caused OpenCPN to promptly crash. It won't now start up again.
He's deleted the offending chart. He's deleted all
charts. He's uninstalled OpenCPN. He's downloaded the latest dmg image. He's reinstalled. He's rebooted. But to no effect. OpenCPN still crashes immediately on startup.
He showed me this behaviour this morning, and I went through the same tidy-up, remove, re-install, re-run sequence. But, again, to no effect. The newly installed OpenCPN starts up, recognises that it crashed last time it was running and offers to start up in 'safe' mode. And then crashes again.
Now, the fact that I've uninstalled and removed everything I could find before re-installing and yet OpenCPN somehow still 'knows' that it had a problem last time it ran suggests to me that I've not done a good enough job of tidying up. I'd have assumed that a proper 'clean'
installation would have no recollection of what had happened before, but I'm not a Mac expert.
The first part of the crash dump is shown below, highlighting that there was a segmentation fault in the main thread. But I don't know where to go from here. Does anyone have any ideas on how I can do a properly clean install, and then tell me where to go next to get OpenCPN running again?
Cheers
Translated Report (Full Report Below)
-------------------------------------
Process: OpenCPN [6931]
Path: /Applications/OpenCPN.app/Contents/MacOS/OpenCPN
Identifier: org.opencpn
Version: 5.8.4-0+1637c28 ()
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2024-01-31 11:16:29.0091 +1300
OS Version: macOS 14.2.1 (23C71)
Report Version: 12
Anonymous UUID: 31D8D189-D37B-E2D0-1D98-776A0713C81B
Sleep/Wake UUID: 0878FE69-4440-459B-B8DD-CA064DCABD41
Time Awake Since Boot: 82000 seconds
Time Since Wake: 1590 seconds
System Integrity Protection: enabled
Notes:
PC register does not match crashing frame (0x0 vs 0x7FFA2EFEB941)
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000318
Exception Codes: 0x0000000000000001, 0x0000000000000318
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [6931]
VM Region Info: 0x318 is not in any region. Bytes before following region: 140723203554536
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->mapped file 7ffcac8f4000-7ffcd530c000 [650.1M] r-x/r-x SM=COW ...t_id=46523dcf
Error Formulating Crash Report:
PC register does not match crashing frame (0x0 vs 0x7FFA2EFEB941)
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libGL.dylib 0x7ffa2efeb941 glGenTextures + 18
1 OpenCPN 0x10037613d ocpnCompass::Paint(ocpnDC&) + 125
2 OpenCPN 0x10032f0cf ChartCanvas::OnPaint(wxPaintEvent&) + 6335
3 libwx_baseu-3.2.0.2.1.dylib 0x10b12f8ff wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 415
4 libwx_baseu-3.2.0.2.1.dylib 0x10b13061a wxEvtHandler::ProcessEventLocally(wxEvent&) + 90
5 libwx_baseu-3.2.0.2.1.dylib 0x10b130510 wxEvtHandler::ProcessEvent(wxEvent&) + 96
6 libwx_baseu-3.2.0.2.1.dylib 0x10b130a1c wxEvtHandler::SafelyProcessEvent(wxEvent&) + 12
7 libwx_osx_cocoau_core-3.2.0.2.1.dylib 0x10b59f0e4 wxWindow::MacDoRedraw(long) + 676
8 libwx_osx_cocoau_core-3.2.0.2.1.dylib 0x10b65aa77 wxWidgetCocoaImpl::drawRect(void*, NSView*, void*) + 743
9 libwx_osx_cocoau_core-3.2.0.2.1.dylib 0x10b6588d6 wxOSX_drawRect(NSView*, objc_selector*, CGRect) + 86
10 AppKit 0x7ff81a720f00 _NSViewDrawRect + 121
11 AppKit 0x7ff81b1c0ab4 -[NSView _recursive:displayRectIgnoringOpacity:inContext:st opAtLayerBackedViews:] + 1848
12 AppKit 0x7ff81b1c0e02 -[NSView _recursive:displayRectIgnoringOpacity:inContext:st opAtLayerBackedViews:] + 2694
13 AppKit 0x7ff81a72062a -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 747
14 AppKit 0x7ff81acdfa2b -[NSViewBackingLayer drawInContext:] + 64
15 AppKit 0x7ff81af0f49b -[NSViewBackingStore update:] + 509
16 AppKit 0x7ff81acde98f -[NSViewBackingLayerContents update:] + 43
17 AppKit 0x7ff81acdf66b -[NSViewBackingLayer display] + 1716
18 QuartzCore 0x7ff81fa1cdf5 CA::Layer::display_if_needed(CA::Transaction*) + 867
19 QuartzCore 0x7ff81fbb5a48 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 758
20 QuartzCore 0x7ff81f9fdfa1 CA::Transaction::commit() + 725
21 AppKit 0x7ff81a73183d __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285
22 AppKit 0x7ff81b20775d ___NSRunLoopObserverCreateWithHandler_block_invoke + 41
23 CoreFoundation 0x7ff817066ccc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK _FUNCTION__ + 23
24 CoreFoundation 0x7ff817066bf1 __CFRunLoopDoObservers + 493
25 CoreFoundation 0x7ff817066173 __CFRunLoopRun + 850
26 CoreFoundation 0x7ff817065859 CFRunLoopRunSpecific + 557
27 HIToolbox 0x7ff821e039d9 RunCurrentEventLoopInMode + 292
28 HIToolbox 0x7ff821e03616 ReceiveNextEventCommon + 201
29 HIToolbox 0x7ff821e03531 _BlockUntilNextEventMatchingListInModeWithFilter + 66
30 AppKit 0x7ff81a5d57b9 _DPSNextEvent + 880
31 AppKit 0x7ff81aecdf64 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:deque ue:] +
1304
32 AppKit 0x7ff81a5c6d32 -[NSApplication run] + 603
33 libwx_osx_cocoau_core-3.2.0.2.1.dylib 0x10b639f5a wxGUIEventLoop::OSXDoRun() + 186
34 libwx_baseu-3.2.0.2.1.dylib 0x10b10f34d wxCFEventLoop:
oRun() + 29
35 libwx_baseu-3.2.0.2.1.dylib 0x10b06bc05 wxEventLoopBase::Run() + 85
36 libwx_baseu-3.2.0.2.1.dylib 0x10b043614 wxAppConsoleBase::MainLoop() + 116
37 libwx_osx_cocoau_core-3.2.0.2.1.dylib 0x10b5d280a wxApp::OnRun() + 26
38 libwx_baseu-3.2.0.2.1.dylib 0x10b09e329 wxEntry(int&, wchar_t**) + 73
39 OpenCPN 0x10045ce34 main + 20
40 dyld 0x2012c4386 start + 1942