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 18-10-2016, 22:58   #1
Registered User

Join Date: Mar 2012
Posts: 11
navobj Error Parsing

Waypts, tracks failed to display.

In the log is "Failed to load C:/ .....navobj.xml: Error parsing".

I suspect this occurred when computer was powered down before OpenCpn was closed.

I would like to recover the tracks.

Any suggestions?

Thanks
John
Johna1 is offline   Reply With Quote
Old 18-10-2016, 23:11   #2
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,734
Re: navobj Error Parsing

In the same folder where the navobj.xml lives, there are back-ups navobj.xml.1, navobj.xml.2 etc.

Rename the active one and get the latest back-up, removing the .1

In case you want to try to repair the old navobj file manually open it with a real text editor like Notepad++, not the standard Windows Notepad.
bcn is online now   Reply With Quote
Old 19-10-2016, 03:10   #3
Registered User

Join Date: Mar 2012
Posts: 11
Re: navobj Error Parsing

Thanks

I am aware of the .1, .2 , .3 etc and have rename so I have the previous one.
Thanks for the tip on using a "real" text editor. I am not sure what to look for in the file though.

John


Quote:
Originally Posted by bcn View Post
In the same folder where the navobj.xml lives, there are back-ups navobj.xml.1, navobj.xml.2 etc.

Rename the active one and get the latest back-up, removing the .1

In case you want to try to repair the old navobj file manually open it with a real text editor like Notepad++, not the standard Windows Notepad.
Johna1 is offline   Reply With Quote
Old 19-10-2016, 04:09   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: navobj Error Parsing

Quote:
Originally Posted by Johna1 View Post
Thanks

I am not sure what to look for in the file though.

John
We of course don't know how much it got broken during the power outage and what exactly got broken - it might be it is is missing one tag at the end, but it also might be completely empty. Look at the good one you have now and on the broken one to see the difference.

Tool like Meld will come handy.

Good luck

Pavel
nohal is offline   Reply With Quote
Old 19-10-2016, 13:30   #5
Registered User

Join Date: Mar 2012
Posts: 11
Re: navobj Error Parsing

Thanks All
The log says exiting cleanly at the time of the accidental pwr off.

I have the navobj with the date and time consistent with the time of the accidental pwr off and the file size is larger than the previous size but the contents of the file is cutoff at a date some time ago. Soo It looks like I am out of luck.

Perhaps I will have a use for Notepad++ at another time. My preliminary plan was to paste the contents of the two files in Excel and do a side by side comparison. I did paste the 1st one in but it was obvious no need to paste the 2nd.

A quick look at Meld url and it appeared to be a Linux application.
Thanks

John
Johna1 is offline   Reply With Quote
Old 19-10-2016, 13:38   #6
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: navobj Error Parsing

Quote:
Originally Posted by Johna1 View Post
Thanks All
The log says exiting cleanly at the time of the accidental pwr off.
Weird.
Quote:
I have the navobj with the date and time consistent with the time of the accidental pwr off and the file size is larger than the previous size but the contents of the file is cutoff at a date some time ago. Soo It looks like I am out of luck.
It is hard to cut off the navobj file at a date, especially as it's content is not ordered by date, but by object type. That it is corrupted does definitely not mean that all the data in it is useless/lost. We would have to see it.
Quote:
Perhaps I will have a use for Notepad++ at another time. My preliminary plan was to paste the contents of the two files in Excel and do a side by side comparison. I did paste the 1st one in but it was obvious no need to paste the 2nd.
Excel is really not a very good tool for this kind of stuff, although it sure can be used if you know what you do.
Quote:
A quick look at Meld url and it appeared to be a Linux application.
No, it is a cross platform tool, working on Linux, OS X and Windows (Direct link for Windows download: https://download.gnome.org/binaries/...16.2-win32.msi)

Pavel
nohal is offline   Reply With Quote
Old 19-10-2016, 19:51   #7
Registered User

Join Date: Mar 2012
Posts: 11
Re: navobj Error Parsing

Thanks again Pavel

By some stroke of luck I have made some progress.

I am not sure how but when I click on an xml file it is opened in an xml editor and it points me to an error.

At some point in time I probably downloaded the xml editor when trying to create charts or?

I will attach a PrtScr of this page and a side by side of the Copy & Pasted into Excel of the good file the 10th (of October) and the corrupt file 11th

I have not tried to correct the error - one step at a time.

John
Attached Thumbnails
Click image for larger version

Name:	NavObj 11th Error.jpg
Views:	132
Size:	321.6 KB
ID:	133209   Click image for larger version

Name:	NavObj Compare.jpg
Views:	160
Size:	327.5 KB
ID:	133210  

Johna1 is offline   Reply With Quote
Old 20-10-2016, 01:24   #8
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: navobj Error Parsing

Quote:
Originally Posted by Johna1 View Post
Waypts, tracks failed to display.

In the log is "Failed to load C:/ .....navobj.xml: Error parsing".

I suspect this occurred when computer was powered down before OpenCpn was closed.

I would like to recover the tracks.

Any suggestions?

Thanks
John
Might it be worth to tyr run
Code:
chkdsk -f
to see if the shutdown made some file corruption that can be repaired
petter5 is offline   Reply With Quote
Old 20-10-2016, 02:10   #9
Registered User

Join Date: Mar 2012
Posts: 11
Re: navobj Error Parsing

Good thought but no errors found

Also it seems after correcting the error with Notepad++ the xml editor will display less of the file than before with

The following tags were not closed: gpx, trk, trkseg, trkpt. Error processing resource 'file:///

j
Johna1 is offline   Reply With Quote
Reply

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
How to merge two navobj.xml? myocean OpenCPN 5 24-05-2015 09:00
Error uploading to photo gallery knottybuoyz Forum Tech Support & Site Help 2 16-08-2007 10:23
Run-Time Error Messages Entlie Forum Tech Support & Site Help 17 13-12-2006 05:21

Advertise Here


All times are GMT -7. The time now is 04:08.


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.