Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 24-04-2017, 13:34   #1
Registered User
 
rramsey's Avatar

Join Date: Apr 2017
Location: IJmuiden, NL
Boat: Beneteau Oceanis 500 Clipper
Posts: 59
4.6.1 crashing with weather routing

I am beginning to get to grips with this plugin - many features.

I have a MacBookPro connected through wifi to a Miniplex3Wi-N2K multiplexer and Raymarine plotter/AP/transducers and Standard Horizon VHF w/AIS receiver. All works like a charm (just bragging)!

On an iPad (for outside behind the wheel in open rain) I use iNavX. I can export a route in .gpx format to iNavX -> export to file, use AirDrop and the iPad automatically does the rest (really neat).

BUT exporting a Weather Routing route crashes OpenCPN before I can enter a file name. Finder appears with .GPX folder and the crash.
rramsey is offline   Reply With Quote
Old 25-04-2017, 02:13   #2
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: 4.6.1 crashing with weather routing

Usually macOS stores a crash report if a crash happens. See here for details:
https://developer.apple.com/library/...04/tn2123.html

Post your crash log here to help the developer finding the bug. It might help him even when he knows nothing about how macOS works.

Gerhard
CarCode is offline   Reply With Quote
Old 25-04-2017, 02:52   #3
Registered User
 
rramsey's Avatar

Join Date: Apr 2017
Location: IJmuiden, NL
Boat: Beneteau Oceanis 500 Clipper
Posts: 59
Re: 4.6.1 crashing with weather routing

Thanks Gerhard. I have enclosed the file.

By the way, an easier way on MacOS (10.12) is in the Console app (in Utilities folder). In there go to User Diagnostic Reports, find yours and the share it.

Rob
Attached Files
File Type: pdf OpenCPN_2017-04-25-111549_Caitlin.crash.pdf (57.7 KB, 40 views)
rramsey is offline   Reply With Quote
Old 25-04-2017, 04:28   #4
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: 4.6.1 crashing with weather routing

Quote:
Originally Posted by rramsey View Post
Thanks Gerhard. I have enclosed the file.

By the way, an easier way on MacOS (10.12) is in the Console app (in Utilities folder). In there go to User Diagnostic Reports, find yours and the share it.

Rob
Correct, you can find the crash log in the Console app. BTW update your Mac to 10.12.4 which fixes some security holes. Nothing to do with your crash however, you have 10.12.3.

I'm not the developer of WeatherRouting plugin but it seems the crash occurs in function "void WeatherRouting::Export(RouteMapOverlay &routemapoverlay)" of the source file "WeatherRouting.cpp". I've never used this plugin for myself and so I can't fix it.

Gerhard
CarCode is offline   Reply With Quote
Old 25-04-2017, 04:32   #5
Registered User
 
rramsey's Avatar

Join Date: Apr 2017
Location: IJmuiden, NL
Boat: Beneteau Oceanis 500 Clipper
Posts: 59
Re: 4.6.1 crashing with weather routing

Thanks anyway Gerhard. Hope to hear from the developer soon.
rramsey is offline   Reply With Quote
Old 25-04-2017, 05:38   #6
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: 4.6.1 crashing with weather routing

The export feature of the weather routing plugin is broken, it's a known bug.

I haven't gotten around to fixing. There are a few other bugs in WR, as well as many more in opencpn and differnet plugins I am aware of. All of my focus is on my open source autopilot at this time. This is why I have not done much work on opencpn the past few months.
seandepagnier is offline   Reply With Quote
Old 25-04-2017, 06:34   #7
Registered User
 
rramsey's Avatar

Join Date: Apr 2017
Location: IJmuiden, NL
Boat: Beneteau Oceanis 500 Clipper
Posts: 59
Re: 4.6.1 crashing with weather routing

Thanx for your reply.

Sounds interesting, open source autopilot! Not an easy task - even the big names (B&G mostly) got it all wrong during the Vendee Globe. Many AP's caused surprise gybes at winds of over 40kts (Heerema spent many a day & night trying to solve the problems).

The export function would be nice but i can trace the route in OpenCPN and then send to iNavx if necessary. Or maybe I have overlooked the option to convert a WR route to OpenCPN directly?

Rob
rramsey is offline   Reply With Quote
Old 25-04-2017, 09:52   #8
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: 4.6.1 crashing with weather routing

Quote:
Originally Posted by rramsey View Post
Thanx for your reply.

Sounds interesting, open source autopilot! Not an easy task - even the big names (B&G mostly) got it all wrong during the Vendee Globe. Many AP's caused surprise gybes at winds of over 40kts (Heerema spent many a day & night trying to solve the problems).
Yes well I am not yet sailing in high winds with it. Right now I have a much straighter course than wind vane in light winds. In this case the autopilot work where the wind vane would gype. I have just completed open source arduino anenometer, but not yet using wind speed, only direction. The goal is eventually to use neural networks and machine learning to drive it, and add video cameras that can see the waves as well.
Quote:
The export function would be nice but i can trace the route in OpenCPN and then send to iNavx if necessary. Or maybe I have overlooked the option to convert a WR route to OpenCPN directly?

Rob
I think it's easy to fix, I will try today.
seandepagnier is offline   Reply With Quote
Old 25-04-2017, 10:02   #9
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 219
Re: 4.6.1 crashing with weather routing

Sean,

I think that the problem is in the ocpn_plugin.h where the class PlugIn_Waypoint is changed in the main OCPN branch.
There is an extra variable m_IsVisible in there now.

Regards,
Peter
ptulp is offline   Reply With Quote
Old 25-04-2017, 10:17   #10
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: 4.6.1 crashing with weather routing

I see this now.

Interesting it doesn't crash on linux...
seandepagnier is offline   Reply With Quote
Old 25-04-2017, 10:29   #11
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: 4.6.1 crashing with weather routing

If you pull the git source and recompile the plugin it should be fixed now. The change was made by someone who didn't realize the fallout.
seandepagnier is offline   Reply With Quote
Old 25-04-2017, 13:04   #12
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 219
Re: 4.6.1 crashing with weather routing

Quote:
Originally Posted by boat_alexandra View Post
If you pull the git source and recompile the plugin it should be fixed now. The change was made by someone who didn't realize the fallout.
Sean,

To succeed to compile for OSX I had to change the isinf handling in the Utilities.h file like the isnan in line 43/44 and add using std::isinf; after line 64.

Regards,
Peter
ptulp is offline   Reply With Quote
Old 25-04-2017, 13:30   #13
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 219
Re: 4.6.1 crashing with weather routing

Rob,

If you want to test the fix you can find an OSX version here:
https://github.com/ptulp/weather_rou...es/tag/v1.10.4

Peter
ptulp is offline   Reply With Quote
Old 25-04-2017, 13:30   #14
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: 4.6.1 crashing with weather routing

I don't know how it compiled before. I think I can follow what you said, but it would be better if you can send an actual diff or pull request so I don't have to guess.
seandepagnier is offline   Reply With Quote
Old 25-04-2017, 14:02   #15
Registered User

Join Date: Nov 2014
Location: Netherlands
Posts: 219
Re: 4.6.1 crashing with weather routing

Quote:
Originally Posted by boat_alexandra View Post
I don't know how it compiled before. I think I can follow what you said, but it would be better if you can send an actual diff or pull request so I don't have to guess.
I have send a pull request.
ptulp is offline   Reply With Quote
Reply

Tags
weather


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 3.0.2 Keeps on Crashing George64 OpenCPN 13 23-09-2012 20:41
Opencpn crashing. tillybobs Navigation 15 15-07-2012 09:26
MaxSea v 11 Crashing Problems Jim Cate Navigation 20 13-11-2011 10:31
Some Crashing Problems on XP jimbim OpenCPN 8 26-01-2011 03:46
Boom came crashing down while sailing!! Need help please! Amigo Deck hardware: Rigging, Sails & Hoisting 8 27-08-2008 12:04

Advertise Here


All times are GMT -7. The time now is 22:15.


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.