Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-07-2010, 13:35   #91
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Quote:
Originally Posted by bdbcat View Post
Thomas....

If I interpret the ddd dump correctly, the problem appears to be in the path of the chart file, not the file name itself.

Could we see the last few lines of the logfile just before a crash?

Thanks
Dave
Dave
Excerpts from a few crashes
Code:
06:09:46 PM:    No change detected on directory /opt/navigation/Charts/Raster2Bsb/Cape_Verde
06:09:46 PM: Searching directory: /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format for *.geo
06:09:46 PM: Searching directory: /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format for *.kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/82 Christians Ö (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/134 Skarsåsrännan (2001).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/613-02 Norrpada (2002).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/9321 Marstrand 12500 (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/523 Härnön-Kramfors (1998).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/839 Stenshuvud-Trelleborg (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/6141 Stockholms Hamn (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/1331 Spiken (2001).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/621 Hävringe-Slätbaken (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/6211 Oxelösund (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/6211 Marsviken (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/11 Mälaren-Hjälmaren (2000).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/524 Härnön-Brämön (1998).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/933 Smögen-Kungshamn (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/6241 Figeholm (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/935 Strömstad (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/42 Bottenviken södra delen (1998).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/532 Hudiksvall hamn (1998).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/524 Söråker (1998).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/731 Fårö Hamn (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/121 Motala (2001).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/613-11 Stora Nassa (2002).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/81 Ölands norra udde-Utklippan (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/Stenungsund (1982).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/122_3 Roxen (2000).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/923 Båstad (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/934 Sydkoster-Hunnebostrand (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/536 Östhammars hamn (1998).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/822 Pukavik (1999).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/Erikssund (1991).kap
06:09:46 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/522 Högbonden-Örnsköldsvik-Skag (1998).kap
06:10:04 PM:
another
Code:
06:10:15 PM:    Skipping inplace chart file: /opt/navigation/Charts/CM93/CM93_2-09/00900840/A/00900840.A
06:10:15 PM:    No change detected on directory /opt/navigation/Charts/Raster2Bsb/Cape_Verde
06:10:15 PM: Searching directory: /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format for *.geo
06:10:15 PM: Searching directory: /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format for *.kap
06:10:15 PM: Loading chart data for /opt/navigation/Charts/378 Svenska sjökort i BSB-KAP-format/82 Christians Ö (1999).kap
06:56:07 PM:
Then I renamed the directory containing the files, still a crash..
Code:
09:17:07 PM:    Skipping inplace chart file: /opt/navigation/Charts/CM93/CM93_2-09/00900840/A/00900840.A
09:17:07 PM:    No change detected on directory /opt/navigation/Charts/Raster2Bsb/Cape_Verde
09:17:07 PM: Searching directory: /opt/navigation/Charts/Svenska for *.geo
09:17:07 PM: Searching directory: /opt/navigation/Charts/Svenska for *.kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/82 Christians Ö (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/134 Skarsåsrännan (2001).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/613-02 Norrpada (2002).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/9321 Marstrand 12500 (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/523 Härnön-Kramfors (1998).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/839 Stenshuvud-Trelleborg (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/6141 Stockholms Hamn (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/1331 Spiken (2001).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/621 Hävringe-Slätbaken (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/6211 Oxelösund (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/6211 Marsviken (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/11 Mälaren-Hjälmaren (2000).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/524 Härnön-Brämön (1998).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/933 Smögen-Kungshamn (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/6241 Figeholm (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/935 Strömstad (1999).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/42 Bottenviken södra delen (1998).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/532 Hudiksvall hamn (1998).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/524 Söråker (1998).kap
09:17:07 PM: Loading chart data for /opt/navigation/Charts/Svenska/731 Fårö Hamn (1999).kap
I can't see much of a clue here........

Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 09-07-2010, 14:08   #92
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,877
Thomas....
Thanks for the logs.

Could it be that it doesn't like the blank spaces in the filenames? Or path?

I'll test this some....

Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 09-07-2010, 14:30   #93
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Quote:
Originally Posted by bdbcat View Post
Thomas....
Thanks for the logs.

Could it be that it doesn't like the blank spaces in the filenames? Or path?

I'll test this some....

Dave
Dave
I renamed it in the last log excerpt (no spaces) and later I moved the renamed directory to the "normal" place where the other Swedish charts are. No change, still a crash.
In most runs (except one) OpenCPN seems to load quite a few charts before the crash comes. I would hazard a guess that it is the spaces in the file names, and exactly how Linux handles them. Maybe some obscure buffer overflow ??? Personally I try to avoid spaces when naming files and directories, out of habit, as this used to(!) create problems......

Thomas
__________________
cagney is offline   Reply With Quote
Old 09-07-2010, 16:12   #94
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Dave

It looks like I have opened a real can of worms, ....Fixing Unix/Linux/POSIX Filenames: Control Characters (such as Newline), Leading Dashes, and Other Problems
I've only skimmed this page, but I would not be surprised if the answer is there somewhere.

Maybe this has to be handled with a rewrite of filenames on the fly in Linux..?

Thomas
__________________
cagney is offline   Reply With Quote
Old 10-07-2010, 02:50   #95
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Dave

Wheeler mentioned "detox" as a utility that already existed, to clean up filenames for linux and other *nix. Detox is written in C and Yacc and has a BSD license. I downloaded and tested. First a dry run using
Code:
detox -n File_with_swedish_charts > outfile
See attached files. This shows what detox suggested to do. Space becomes "_", "(" and ")" becomes "-", "å","ä" and "ö" becomes "a","a" and "o", etc. So I went ahead, let detox change the filenames, and as expected OpenCPN had no more problems.
Sugestion: Instead of reinventing the wheel, use detox, one way or another, for posix-like systems. Link here detox software at SourceForge

Thomas
Attached Files
File Type: doc detox-run.txt.doc (28.6 KB, 32 views)
__________________
cagney is offline   Reply With Quote
Old 10-07-2010, 11:32   #96
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Skewed Tranverse Mercator Charts

Another unusual calibration today. A privately scanned tmerc chart that was far from perfectly scanned and needed a skew correction of about 3 deg to be correctly aligned. Whatever I did, the georeferencing was way out. I read values on the chart that was outside the "PLY-square" !!! Calling the chart a "Mercator" instead, made the georeferencing reasonable. So I draw the conclusion that OpenCPN presently can't handle a skewed tmercs. I only saw the "skew" icon on the button, never the "tmerc" icon.
As a matter of fact the PLY outline was correct but the lat&long values read inside this outline were way off, and as soon as I tried to move around I was sent to the indicated position off the chart.

Thomas
__________________
cagney is offline   Reply With Quote
Old 14-07-2010, 19:10   #97
Registered User

Join Date: Jul 2009
Location: Hong Kong
Boat: Lagoon 380 Hull #582
Posts: 7
Question Chart Recognition

Downloaded the 2.1 but have one problem, cannot switch between ENC charts and CM93, no longer a choice on the page bottom and so all I have is CM93 in the window. Can anyone help?
__________________
marknewman is offline   Reply With Quote
Old 15-07-2010, 10:27   #98
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
marknewman

Have you loaded the Enc:s?
Are you trying in an area where there are ENC:s?
If the answer is yes to these two, please let us have a look your log-file.

Thomas
__________________

__________________
cagney is offline   Reply With Quote
Reply

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
Icon Discussion manimaul OpenCPN 25 25-05-2010 06:03
Keel discussion RandyAbernethy General Sailing Forum 13 10-01-2006 19:19
Why another discussion board? Gisle Forum News & Announcements 5 24-02-2003 07:55



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.