|
21-07-2014, 18:38
|
#1
|
Marine Service Provider
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
|
|
|
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
|
|
|
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
|
|
|
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
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.
|
|
|
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
|
|
|
23-07-2014, 09:48
|
#6
|
Marine Service Provider
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
|
|
|
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
|
|
|
23-07-2014, 18:39
|
#8
|
Marine Service Provider
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
|
|
|
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
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" ?
|
|
|
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
|
|
|
24-07-2014, 07:16
|
#11
|
Marine Service Provider
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
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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
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
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|