Cruisers Forum
 


Join CruisersForum Today

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

Join Date: Mar 2008
Posts: 4,882
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, 07:50   #2
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
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, 07:14   #3
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
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 offline   Reply With Quote
Old 23-07-2014, 10:24   #4
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
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.
__________________
boat_alexandra is offline   Reply With Quote
Old 23-07-2014, 10:46   #5
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
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 offline   Reply With Quote
Old 23-07-2014, 10:48   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,882
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, 13:03   #7
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 233
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, 19:39   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,882
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 24-07-2014, 00:25   #9
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
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" ?
__________________
boat_alexandra is offline   Reply With Quote
Old 24-07-2014, 00:32   #10
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 233
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, 08:16   #11
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,882
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, 11:56   #12
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 233
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, 14:03   #13
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
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
__________________
boat_alexandra is offline   Reply With Quote
Old 25-07-2014, 07:57   #14
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
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, 08:11   #15
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 233
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
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 03:32
Lost Thrust! Lost Prop? OffSeason Monohull Sailboats 20 07-06-2009 00:57
Main tracks on mast... Jack Long Construction, Maintenance & Refit 4 30-08-2008 19:24
Genoa tracks? bmiller General Sailing Forum 15 12-04-2006 17:02
Genoa tracks and rails. Alan Wheeler General Sailing Forum 6 23-02-2005 23:49



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 20:53.


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.