Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 31-01-2024, 00:47   #1
Registered User

Join Date: Jan 2024
Posts: 2
OpenCPN Crash on Mac OS

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
diverdez is offline   Reply With Quote
Old 31-01-2024, 02:46   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: OpenCPN Crash on Mac OS

Rename the folder /<Your username>/Library/Preferences/opencpn to something else. OpenCPN should start normally as a completely clean installation (This is the only thing needed, all the reinstalllations, reboots etc. were not)
Do not delete it, all the routes, track, etc. are there and once you confirm the program stars fine, you will want to copy them back..

The backtrace is unfortunately almost useless, all it shows is that the crash happens when the chart canvas is being painted, we would probably need to see the chart that caused this whole trouble itself and the contents of the forementioned configuration folder.
nohal is offline   Reply With Quote
Old 02-02-2024, 17:36   #3
Registered User

Join Date: Jan 2024
Posts: 2
Re: OpenCPN Crash on Mac OS

That worked like a dream. I'm not sure why I couldn't find that in 'Finder', but using the terminal it took about 20 seconds. Should have tried that first! Thank you.
diverdez is offline   Reply With Quote
Old 02-02-2024, 17:38   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: OpenCPN Crash on Mac OS

I would still much prefer to actually fix this, so if you can share the offending data, it would be appreciated.
nohal is offline   Reply With Quote
Reply

Tags
enc, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tide data MAC crash Seaward22 OpenCPN 12 14-08-2017 17:51
crash opencpn 4.4.0 on mac charlie2 OpenCPN 9 06-08-2016 17:12
Crash when creating a route (3.2 Mac, raster+cm93) Kashin OpenCPN 3 28-06-2013 10:32
OpenCPN 3.0.2 Crash on Mac OS X Lion cgbosn OpenCPN 3 25-09-2012 09:06
Crash OPENCPN-2.6.1223 on MacOsX v10.6.8 SoBoLp OpenCPN 0 12-01-2012 00:24

Advertise Here


All times are GMT -7. The time now is 02:57.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.