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 07-04-2017, 08:39   #1
Registered User

Join Date: Apr 2017
Posts: 13
Error in OpenCPN 4.6.1

Please see anex
Windows Version VISTA
Attached Files
File Type: pdf Errors in OpenCPN 4.6.1.pdf (370.7 KB, 162 views)
Fernando Lopes is offline   Reply With Quote
Old 07-04-2017, 14:57   #2
Moo
Registered User

Join Date: Mar 2017
Posts: 804
Re: Error in OpenCPN 4.6.1

Quote:
Originally Posted by Fernando Lopes View Post
Please see anex
Windows Version VISTA
I see similar stuff with imported tracks. But I find that when I run "Reduce data" on a track the length gets corrected.

Often this generates false track points on the screen resulting in a fan of false legs radiating from the origin of the track. Splitting the track a point one often fixes this (I delete the 0 distance remnant); or closing O and reopening cleans it up.
Moo is offline   Reply With Quote
Old 07-04-2017, 16:13   #3
Registered User

Join Date: Apr 2017
Posts: 13
Re: Error in OpenCPN 4.6.1

I do not know how run "Reduce data" on one track.
Fernando Lopes is offline   Reply With Quote
Old 07-04-2017, 23:24   #4
Moo
Registered User

Join Date: Mar 2017
Posts: 804
Re: Error in OpenCPN 4.6.1

Quote:
Originally Posted by Fernando Lopes View Post
I do not know how run "Reduce data" on one track.
Right click on the track, click "Reduce Data"

I presume these are imported tracks?
Moo is offline   Reply With Quote
Old 08-04-2017, 09:29   #5
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Error in OpenCPN 4.6.1

Quote:
Originally Posted by Fernando Lopes View Post
Please see anex

Windows Version VISTA


Fernando,

If you have imported the route from a .gpx file please post that file (rename it .doc). I will try to find the bug.
transmitterdan is offline   Reply With Quote
Old 12-04-2017, 02:24   #6
Registered User

Join Date: Apr 2017
Posts: 13
Re: Error in OpenCPN 4.6.1

Quote:
Originally Posted by Moo View Post
Right click on the track, click "Reduce Data"

I presume these are imported tracks?
Thanks for your answer. But … I return to the 4.4.0 version of the OpenCPN.
I have 2 computers running the OpenCPN:
On board, I have one economical Intel Phoenix running Windows 10 Pro that not use many batteries resources.
At home I have one powerful HP Pavilion machine running Windows Vista Home Premium.
The onboard machine is connected to the Data Bus of the boat that have one poor GPS device. But, simultaneously I collect the navigation data with one Garmin GPS Nuvi 2545. This data is discharged to my home computer for posterior analyze.
All this work fine in the 4.4.0 version of the OpenCPN, but appears some errors in the home version 4.6.0 and 4.6.1 of the OpenCPN. Your turn around procedure works, but is not user-friendly. So, I wait for one new release of the OpenCPN that works well with the Garmin imported data.
I annex one example of the Garmin data imported to my home PC.
Attached Files
File Type: gpx VeloxEm20170403.gpx (160.4 KB, 36 views)
Fernando Lopes is offline   Reply With Quote
Old 12-04-2017, 02:30   #7
Registered User

Join Date: Apr 2017
Posts: 13
Re: Error in OpenCPN 4.6.1

Quote:
Originally Posted by transmitterdan View Post
Fernando,

If you have imported the route from a .gpx file please post that file (rename it .doc). I will try to find the bug.
Thanks for your answer. But … I return to the 4.4.0 version of the OpenCPN.
I have 2 computers running the OpenCPN:
On board, I have one economical Intel Phoenix running Windows 10 Pro that not use many batteries resources.
At home I have one powerful HP Pavilion machine running Windows Vista Home Premium.
The onboard machine is connected to the Data Bus of the boat that have one poor GPS device. But, simultaneously I collect the navigation data with one Garmin GPS Nuvi 2545. This data is discharged to my home computer for posterior analyze.
All this work fine in the 4.4.0 version of the OpenCPN, but appears some errors in the home version 4.6.0 and 4.6.1 of the OpenCPN. Your turn around procedure works, but is not user-friendly. So, I wait for one new release of the OpenCPN that works well with the Garmin imported data.
I annex one example of the Garmin data imported to my home PC with DOC extention (original extention whas GPX).
Attached Files
File Type: doc VeloxEm20170403.doc (160.4 KB, 30 views)
Fernando Lopes is offline   Reply With Quote
Old 13-04-2017, 06:50   #8
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Error in OpenCPN 4.6.1

Fernando,

I confirm that the error in 4.6.1 is caused by the track data having points very close together. In 4.4.0 this did not cause any problem but some changes have occurred since 4.4.0 that result in a divide by zero error which causes the Nan message. This happens only when tracks contain points that are very close together with exactly the same latitude. I have not determined exactly when or what change since 4.4.0 caused the problem.
transmitterdan is offline   Reply With Quote
Old 13-04-2017, 07:19   #9
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,679
Re: Error in OpenCPN 4.6.1

TDan...

Probably track.cpp : 966.

Dave
bdbcat is online now   Reply With Quote
Old 13-04-2017, 08:34   #10
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Error in OpenCPN 4.6.1

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

Probably track.cpp : 966.

Dave
Yes, but it seems a bit more complicated than that. I can make the Nan go away easily by changing that line in Track.cpp (offset equal latitudes by 5e-6).

In 4.4.0 a track was drawn as a line. But in 4.6.1 there seem to be two kinds of lines drawn. See attached screen shot for Fernando's track file displayed in 4.6.1 after making line 966 look like this:

Code:
double dd = DistGreatCircle( fabs( l->m_lat - t->m_lat ) < 5e-6 ? l->m_lat + 5e-6 : l->m_lat , l->m_lon, t->m_lat, t->m_lon );
So no more Nan issue but...

It seems that importing a track file does not go through the same washing-machine cycle as a track created from ownship during a voyage. Fernando is worried I believe because he sees these yellow markers covering up the track line.
Attached Thumbnails
Click image for larger version

Name:	2017-04-13 (1).jpg
Views:	143
Size:	188.6 KB
ID:	145275  
transmitterdan is offline   Reply With Quote
Old 13-04-2017, 15:41   #11
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Error in OpenCPN 4.6.1

Dave,

I will submit a PR on the Nan issue soon.

Dan
transmitterdan is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 segmentation error in Debian Squeeze larsed OpenCPN 22 09-05-2013 14:51
error compiling openCPN on ARM Chromebook / lUbuntu raring chris14679 OpenCPN 5 24-02-2013 21:25
opencpn windows cmake error ailton OpenCPN 1 09-08-2012 12:08
Compiling OpenCPN - Error when trying to start X7JAY7X OpenCPN 12 19-06-2011 01:57
OpenCPN S52 Display Principle Error epilot10 OpenCPN 3 01-10-2010 01:26

Advertise Here


All times are GMT -7. The time now is 09:40.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.