Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 21-07-2014, 18:38   #1
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Lost Tracks

Hi Testers...

I am focused on the problems that arise when OCPN crashes(heaven forbid...).

Some have reported that when O crashes, especially on Windows, that ALL of their previously recorded tracks are lost.

Can this be so?

I can certainly see many code paths that would result in loss of the tracks and trackpoints recorded in this session. But I cannot see a way that other, previously recorded, tracks could be lost from the navobj.xml file.

Direct observations and anecdotes are solicited. Especially, I would like to know which version you were running when this happened.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 22-07-2014, 06:50   #2
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
Re: Lost Tracks

Hi Dave
I am sorry to have been not clear
When O crashes I experienced that only' the track not recorded was lost
I mean the only one just created during the session aborted
This could be a big one after a long navigation ...
(That's why I close O time to time to save it when I don't want take the risk to loose it)
I experienced that just after 1606.

The crash we discussed recently and apparently disappeared... but there was no miracle.. It's till here. I am preparing an environment to try to get a dump in debug mode.
This particular crash kills my track each time

But I never had problem with the recorded ones
Regard
Jean Pierre
Ptizef is offline   Reply With Quote
Old 23-07-2014, 06:14   #3
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,537
Re: Lost Tracks

What is going on with Windows?
Someone can please check this issue: Lost Routes/GPS Settings etc - Cruisers & Sailing Forums
Very strange for me but I know nothing about Windows.

Gerhard
CarCode is online now   Reply With Quote
Old 23-07-2014, 09:24   #4
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,414
Re: Lost Tracks

Quote:
Originally Posted by bdbcat View Post

I can certainly see many code paths that would result in loss of the tracks and trackpoints recorded in this session. But I cannot see a way that other, previously recorded, tracks could be lost from the navobj.xml file.
As a linux user, I have certainly lost my tracks when I didn't intend to, I remember this happened with version 3.0, as well as recent beta versions. My guess is the navobj.xml files eventually get rotated out?

As for avoiding loss in this session, it is time for a real solution. I think the way is (possibly a background thread) update the navobj file. That is, without rewriting it from scratch because that makes slow computers hiccup. Perhaps this means keeping the xml objects persistent in ram, or something more clever. I really don't even think xml is a good format to use for tracks, but that is a different question.
seandepagnier is offline   Reply With Quote
Old 23-07-2014, 09:46   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,198
Re: Lost Tracks

Sean...
Yes, the navobj.xml backup could have been rotated out completely in favor of the broken new version if the user kept trying to run the program instead of fixing the problem. Should not the case anymore since 3e2b18190748799e663dec4446f3b3f1018074f6.
And yes, we should probably save the current track periodically - be it in navobj.xml.changes or separately, perhaps in a more efficient format.
I'm personally not a big fan of changing GPX for anything else as a storage format. It is XML with all it's disadvantages, but also it's advantages and it is a standard everybody more or less understands.

Pavel
nohal is online now   Reply With Quote
Old 23-07-2014, 09:48   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Re: Lost Tracks

sean/pavel...

I got this. Working on it now. I'll use the existing "navobj.xml.changes" structure. Please stand by

Dave
bdbcat is offline   Reply With Quote
Old 23-07-2014, 12:03   #7
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 242
Re: Lost Tracks

Dave,
coming back to your initial question:

If O crashes, I'm only loosing the current session track (Win7). But this one is gone completely, which is obvious, as I understood you're writing the navobj.xml only upon normal shutdown.
Anyway, beeing out and sailing with beta's for testing, this is annoying.

Best reagards,

Thomas
tom_BigSpeedy is offline   Reply With Quote
Old 23-07-2014, 18:39   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Re: Lost Tracks

Ptizef, et al...

github master now updated to include incremental track point save/restore on crash. Tested for moderate sized tracks, but not a whole day's worth of high definition tracking. I need to get underway to do that.

This one is difficult to test without hacking the code to generate a crash on demand, which may distort the test results. Heisenberg, anyone?

So, I guess we must wait for negative results, meaning lost tracks on crash.

Enjoy
Dave
bdbcat is offline   Reply With Quote
Old 23-07-2014, 23:25   #9
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,414
Re: Lost Tracks

Quote:
Originally Posted by bdbcat View Post
This one is difficult to test without hacking the code to generate a crash on demand, which may distort the test results. Heisenberg, anyone?
Dave,

What's wrong with "killall -9 opencpn" ?
seandepagnier is offline   Reply With Quote
Old 23-07-2014, 23:32   #10
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 242
Re: Lost Tracks

Dave,

a crash is easy to reproduce, just try to play a very large VDR file (400MB+).
This results in an instant crash, as soon as you open it.

Thomas
tom_BigSpeedy is offline   Reply With Quote
Old 24-07-2014, 07:16   #11
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,387
Re: Lost Tracks

Thomas...

Hmmm, first I've heard of this. Won't get fixed if we never hear about it...

Do you have an example of a huge VDR recording for test?

Dave
bdbcat is offline   Reply With Quote
Old 24-07-2014, 10:56   #12
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 242
Re: Lost Tracks

Hi Dave,

yes I have a sample VDR file with ~390MB. It's the 500x2 Race from this year. Only the start is missing due to the constant O crashes, we had at this time. Directly after the start I switched to 3.3.1606 then, which was stable for 4 days.

Do you have a place where I can upload 400 MB ?

Thomas
tom_BigSpeedy is offline   Reply With Quote
Old 24-07-2014, 13:03   #13
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,414
Re: Lost Tracks

maybe it is possible to make a very large file from a smaller one with:

$ for i in `seq 100`; do cat file.nmea >> bigfile.nmea; done
seandepagnier is offline   Reply With Quote
Old 25-07-2014, 06:57   #14
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
Re: Lost Tracks

Compiled new Git - OK
I've made two tests
In both case, with the previous Git, I would have lost tracks

1) Vista device with a dead battery
- I created a track
- I switched off abruptly ( cutting the power )

2) W8.1 device
- I created a track
- I reproduced the "touch screen" crash

Thanks . In both case, after the crash, tracks were still here

Just a detail : In both case, the first time I opened O after crash, track was not selectable. I had to close and open O once more to select it

Jean Pierre
Ptizef is offline   Reply With Quote
Old 26-07-2014, 07:11   #15
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 242
Re: Lost Tracks

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

Hmmm, first I've heard of this. Won't get fixed if we never hear about it...

Dave
Dave,
I just sent you a crash report ...
Just started O, and tried to load/play a ~390MB file in VDR ...

Thomas
tom_BigSpeedy is offline   Reply With Quote
Reply

Tags
lost

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
Updated to New Version - Lost Old Tracks?? obelisk OpenCPN 20 14-03-2014 02:32
Lost Thrust! Lost Prop? OffSeason Monohull Sailboats 20 06-06-2009 23:57
Main tracks on mast... Jack Long Construction, Maintenance & Refit 4 30-08-2008 18:24
Genoa tracks? bmiller General Sailing Forum 15 12-04-2006 16:02
Genoa tracks and rails. Alan Wheeler General Sailing Forum 6 23-02-2005 22:49

Advertise Here


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


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.