Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 27-12-2011, 18:34   #136
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

ChannelIslander....

Your crash may come from the particular chart quilt being shown.

You may delete the config file and restart OpenCPN to reset your location and quilt, and then proceed with testing.

Or, you can edit the config file and disable quilting.
Code:
ChartQuilting=0
If you can find a specific chart set/location setup that crashes, I may be able to reproduce it here and debug it under XCode.

Anything you can do to characterize and isolate the bug will be helpful.

Thanks
Dave
__________________

__________________
bdbcat is online now   Reply With Quote
Old 27-12-2011, 19:04   #137
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

ChannelIslander, et al...

Attached is a screenshot of OpenCPN 2.6.1223 on my Hac.

Does it look anything like yours? Differences?

Thanks
Dave
Attached Thumbnails
Click image for larger version

Name:	mac1.jpg
Views:	79
Size:	194.8 KB
ID:	35179  
__________________

__________________
bdbcat is online now   Reply With Quote
Old 27-12-2011, 21:54   #138
Registered User

Join Date: Dec 2011
Location: Santa Barbara CA
Boat: Catalina 36 Mk I
Posts: 73
Re: OpenCPN for Mac

Hi Dave,

The difference is that the title bar for the OCPN open window is not visible on my screen. And because you have to grab the title bar to move the window, I can't get it out from behind the main app title/menu bar. Screen grab attached.

As to the crashing; I deleted all conf files and relaunched. It crashed right away with an error on the quilting as you predicted:

Quote:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000003c
Crashed Thread: 0

Thread 0 Crashed:
0 0x0005eec6 Quilt::IsChartQuiltableRef(int) + 38
1 0x0005ef6e ChartCanvas::IsChartQuiltableRef(int) + 30
2 0x0000e807 MyFrame::SetupQuiltMode() + 263
3 0x0001ba70 MyFrame::ChartsRefresh(int) + 464
4 0x00026b68 MyFrame:oOptionsDialog() + 2152
5 0x0002bf43 MyApp::OnInit() + 19203
6 0x00034a81 wxAppConsole::CallOnInit() + 17
7 libwx_macu-2.8.0.dylib 0x00827cd0 wxEntry(int&, wchar_t**) + 112
8 0x000082b8 main + 24
9 0x00007d46 start + 54
I couldn't edit opencpn.ini to turn quilting off because the file hadn't been fully created. So I relaunched, quilting was turned off already somehow, and the app hasn't crashed again yet.

I see there's a new beta so I'll get that when it arrives, and I will be upgrading my macbook to 10.6 in a couple of days, so that may change some things.

Thanks

Nick
Attached Thumbnails
Click image for larger version

Name:	ocpn_scr.jpg
Views:	82
Size:	130.9 KB
ID:	35185  
__________________
___________________
1984 Catalina 36 Mk I
Santa Barbara, Calif.
ChannelIslander is offline   Reply With Quote
Old 28-12-2011, 08:52   #139
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

LittleChay/ChannelIslander...
Lets try this as an experiment.

Edit your config file, and change the following keys

Code:
FrameWinX=500
FrameWinY=400
FrameMax=0
FrameWinPosX=200
FrameWinPosY=200
This should allow you to get the OCPN frame totally onscreen, from which point you may move/adjust as you desire. Should see the title bar, too.

Let me know how this works.

Thanks
Dave
__________________
bdbcat is online now   Reply With Quote
Old 28-12-2011, 09:05   #140
Registered User

Join Date: Dec 2011
Location: Santa Barbara CA
Boat: Catalina 36 Mk I
Posts: 73
Re: OpenCPN for Mac

Yeah Dave,

That worked fine.

I then used the maximize window button on the newly visible title bar, and the window fills the screen on my 13" Macbook just fine. The new coordinates in the conf file after performing this operation are:

Code:
FrameWinX=1152
FrameWinY=694
FrameWinPosX=0
FrameWinPosY=22
Perhaps the last of these should be the default?

Thanks

Nick
__________________
___________________
1984 Catalina 36 Mk I
Santa Barbara, Calif.
ChannelIslander is offline   Reply With Quote
Old 28-12-2011, 09:16   #141
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

Nick....

OK, thanks for the quick feedback.

It is clear that Mac treats the available screen area for a client application slightly differently than Windows/linux. I'll do some more Googling....

Probably I'll add code to the next Beta to adjust initial "y" position on Mac builds.

Thanks
Dave
__________________
bdbcat is online now   Reply With Quote
Old 28-12-2011, 09:16   #142
Registered User

Join Date: Dec 2011
Location: Santa Barbara CA
Boat: Catalina 36 Mk I
Posts: 73
Re: OpenCPN for Mac

Also I think that

Code:
NMEALogWindowPosY=
Should be set to a high enough value to avoid the same problem.

thanks

Nick
__________________
___________________
1984 Catalina 36 Mk I
Santa Barbara, Calif.
ChannelIslander is offline   Reply With Quote
Old 28-12-2011, 09:25   #143
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

Nick....

Yup.
Dave
__________________
bdbcat is online now   Reply With Quote
Old 28-12-2011, 09:26   #144
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,778
Re: OpenCPN for Mac

Quote:
Originally Posted by bdbcat View Post
Nick....

OK, thanks for the quick feedback.

It is clear that Mac treats the available screen area for a client application slightly differently than Windows/linux. I'll do some more Googling....

Probably I'll add code to the next Beta to adjust initial "y" position on Mac builds.

Thanks
Dave
Mac developers have told you times ago that your screen/window/frames handling does not work for Mac. A Mac screen with OCPN looks similiar like the attachment.

Gerhard
Attached Thumbnails
Click image for larger version

Name:	OCPN-Cocoa.jpg
Views:	82
Size:	248.7 KB
ID:	35197  
__________________
CarCode is offline   Reply With Quote
Old 28-12-2011, 10:01   #145
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

Gerhard....

Thanks for the reminder.
Feel free to suggest code patches for the Mac build as you wish. I have a poor Mac test environment, and would like to keep the Mac build up to date with the other platforms.

Dave
__________________
bdbcat is online now   Reply With Quote
Old 28-12-2011, 10:17   #146
Registered User

Join Date: Dec 2011
Location: Santa Barbara CA
Boat: Catalina 36 Mk I
Posts: 73
Re: OpenCPN for Mac

Admirable restraint, Dave
__________________
___________________
1984 Catalina 36 Mk I
Santa Barbara, Calif.
ChannelIslander is offline   Reply With Quote
Old 28-12-2011, 10:27   #147
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN for Mac

__________________
bdbcat is online now   Reply With Quote
Old 29-12-2011, 15:38   #148
Registered User

Join Date: Dec 2011
Location: Santa Barbara CA
Boat: Catalina 36 Mk I
Posts: 73
New crash (not quilting I think)

Hi dave,

I got the following crash when I created a new waypoint in Route Manager. After entering the data I clicked OK and the app hung for a few seconds then crashed.

I then restarted it, opened Route Manager, selected New under Waypoints, and it crashed immediately with almost the same crash, only it didn't show libwx in thread 0:

Code:
Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000004
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   ???                           	0x00000004 0 + 4
1   com.apple.HIToolbox           	0x9209a4fc TBrowser::Draw(unsigned long, unsigned long, unsigned long, Rect const&, short, bool, TDeviceRenderer::Context const&) const + 620
2   com.apple.HIToolbox           	0x920b1d71 TTableCell::Draw(unsigned long, TDeviceRenderer::Context const&) const + 1381
That was the second crash, above.

First crash follows:

Mac crash log says this:
Code:
Process:         OpenCPN [289]
Path:            /Applications/OpenCPN.app/Contents/MacOS/OpenCPN
Identifier:      ???
Version:          ()
Code Type:       X86 (Native)
Parent Process:  launchd [109]

Date/Time:       2011-12-29 14:13:22.484 -0800
OS Version:      Mac OS X 10.6.3 (10D575)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000021
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libwx_macu-2.8.0.dylib        	0x004e53fe wxMacDataBrowserListCtrlControl::DrawItem(unsigned long, unsigned long, unsigned long, Rect const*, short, unsigned char) + 1086
1   com.apple.HIToolbox           	0x9209a4fc TBrowser::Draw(unsigned long, unsigned long, unsigned long, Rect const&, short, bool, TDeviceRenderer::Context const&) const + 620
2   com.apple.HIToolbox           	0x920b1d71 TTableCell::Draw(unsigned long, TDeviceRenderer::Context const&) const + 1381
3   com.apple.HIToolbox           	0x920ba93e TListView::DrawCell(TTableCell const&, unsigned long, TDeviceRenderer::Context const&) const + 92
4   com.apple.HIToolbox           	0x920adf79 TTableView::DrawCellSelf(Cell32 const&, Rect const&, TDeviceRenderer::Context const&, DBDrawFlags) const + 103
5   com.apple.HIToolbox           	0x920c4a1c TTableLayout::Draw(Rect const&, UPoint32 const&, TDeviceRenderer::Context const&, DBDrawFlags) const + 220
6   com.apple.HIToolbox           	0x920ad1be TTableView::DrawView(unsigned short, TDeviceRenderer::Context const&) const + 156
7   com.apple.HIToolbox           	0x920bb62a TListView::DrawView(unsigned short, TDeviceRenderer::Context const&) const + 152
8   com.apple.HIToolbox           	0x9209ef13 TBrowserView::Draw(CGContext*, unsigned short, OpaqueRgnHandle*) const + 439
9   com.apple.HIToolbox           	0x92099cb2 TBrowser::Draw(CGContext*, OpaqueRgnHandle*) const + 442
10  com.apple.HIToolbox           	0x9209bfab TBrowser::EventHandlerProc(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2997
11  com.apple.HIToolbox           	0x91f3c0a9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
12  com.apple.HIToolbox           	0x91f3b370 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
13  com.apple.HIToolbox           	0x91fa855f CallNextEventHandler + 95
14  libwx_macu-2.8.0.dylib        	0x0048c483 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 115
15  libwx_macu-2.8.0.dylib        	0x0048c5ff wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 111
16  libwx_macu-2.8.0.dylib        	0x0048ceaf wxEvtHandler::ProcessEvent(wxEvent&) + 207
17  libwx_macu-2.8.0.dylib        	0x00524c62 wxWindow::MacDoRedraw(void*, long) + 1218
18  libwx_macu-2.8.0.dylib        	0x0052333b wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1211
19  libwx_macu-2.8.0.dylib        	0x00523a53 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 339
20  com.apple.HIToolbox           	0x91f3c0a9 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*,
__________________
___________________
1984 Catalina 36 Mk I
Santa Barbara, Calif.
ChannelIslander is offline   Reply With Quote
Old 29-12-2011, 15:49   #149
Registered User

Join Date: Dec 2011
Location: Santa Barbara CA
Boat: Catalina 36 Mk I
Posts: 73
Re: OpenCPN for Mac

Update: I moved to a different chart and was able to add a waypoint through Route Manager and also through dropping a mark on the chart.

I currently have quilting on and disable full screen quilting off.

Then I went back to the first chart and couldn't reproduce the crash. D'oh.

Stand by.
__________________
___________________
1984 Catalina 36 Mk I
Santa Barbara, Calif.
ChannelIslander is offline   Reply With Quote
Old 29-12-2011, 15:55   #150
Registered User

Join Date: Dec 2011
Location: Santa Barbara CA
Boat: Catalina 36 Mk I
Posts: 73
Another small thingette

Hi Dave,

another small thing (do you want these in the bug tracker you use?)

If, when I have a certain window open such as Mark Properties within Route Manager, when I switch to another open app from OCPN, by using the key combo cmd-tab, the Mark Properties window stays on top of the app I switched to. Even more weird, it stays on top even when I am actively typing into the other app window. Very non-standard window behavior. If I select the Mark Properties window, it goes from opaque to having focus, and the OCPN toolbar appears, opaque, but that's all. To get back to OCPN I have to do cmd-tab again (which is really as it should be since those windows should not be visible in the other app).

Thanks,

Nick
__________________

__________________
___________________
1984 Catalina 36 Mk I
Santa Barbara, Calif.
ChannelIslander is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
OpenCPN and Mac OSX mskl OpenCPN 9 27-03-2014 09:41
Mac riddon OpenCPN 6 14-08-2011 09:28
Mac skippy Forum Tech Support & Site Help 15 06-01-2011 19:11
Help Me Integrate My Mac hoppy Marine Electronics 6 24-10-2010 12:01
Mac on Board fvn Marine Electronics 9 28-08-2009 05:34



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 08:48.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.