Cruisers & Sailing Forums (https://www.cruisersforum.com/forums/)
-   OpenCPN (https://www.cruisersforum.com/forums/f134/)
-   -   Can't open OESENC chart when starting OpenCPN (https://www.cruisersforum.com/forums/f134/cant-open-oesenc-chart-when-starting-opencpn-236289.html)

baltika_no_9 29-06-2020 07:58

Can't open OESENC chart when starting OpenCPN
 
When I start OpenCPN the oesenc chart of the area covered by the display does not load. However that chart that fails to load is available, if I click on the relevant chart tab at the bottom it loads fine.the log is attached. First the chart is not available then after I select the tab it says "Creating new chart...." If I happen to move to a different area outside the "failing" chart and close down/start up then a different chart is mentioned in the error messages so it isn't one particular chart, it's any of them

Does anyone have any ideas why this might not be working?

OpenCPN 5.0.0, oesenc dongle, plugin 4.0.10

Code:

15:49:18 BST: validateUserKey
15:49:18 BST: Current userKey: RALc-23Yl-BaLQ-CKUV-ERxQ-dg
15:49:18 BST: validateUserKey E1
15:49:19 BST:
15:49:19 BST:    Cannot load SENC file /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-B24204.oesenc
15:49:19 BST: Recoverable problem initializing Chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-B24204.oesenc
15:49:19 BST:    OpenChartFromStack... Error opening chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-B24204.oesenc ... return code 1
15:49:37 BST: LOGBOOK:  2020-06-29 14:49:37 UTC  DR Lat  41.33610 Lon    2.18790
15:50:36 BST: Creating new chart
15:50:36 BST: Initializing Chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-B24204.oesenc
15:50:36 BST: OpenChartUsingCache, NOT in cache:  cache size: 1
15:50:36 BST:    OpenChartUsingCache:  type 8  /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-A24204.oesenc
15:50:36 BST: Creating new chart
15:50:36 BST: Initializing Chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-A24204.oesenc
15:50:36 BST: OpenChartUsingCache, NOT in cache:  cache size: 2


Hakan 29-06-2020 12:19

Re: Can't open OESENC chart when starting OpenCPN
 
baltica_no_9...
Two tests:
- Stop OCPN
- Insert the dongle and start OCPN.
- Go to to Options->Charts->Chart files. Check that desired chart files are listed and when OK "Force a full data base rebuild."

baltika_no_9 30-06-2020 01:19

Re: Can't open OESENC chart when starting OpenCPN
 
Thanks Hakan

I just tried that, rebuild went OK, OpenCPN loaded and I got the oesenc-pi message indicating the chart set I have so it all went normally except it did not load the chart. On the right of my display is the CM93 chart, all good, on the left where my oesenc chart should be I get only the base world map segment. However as before when I press the tab for the chart I want it pops up ok. I wonder why it doesn't load.

Another odd thing, the oesenc-pi message showing which chart sets I can use has my chart set named twice. I see:
British Isles and France Atlantic 2020 2020-26 2021-06-25
British Isles and France Atlantic 2020 2020-26 2021-06-25

Code:

09:06:05 BST: validateUserKey
09:06:05 BST: Current userKey: RALc-23Yl-BaLQ-CKUV-ERxQ-dg
09:06:05 BST: validateUserKey E1
09:06:05 BST:
09:06:05 BST:    Cannot load SENC file /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-397206.oesenc
09:06:05 BST: Recoverable problem initializing Chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-397206.oesenc
09:06:05 BST:    OpenChartFromStack... Error opening chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-397206.oesenc ... return code 1
09:06:26 BST: LOGBOOK:  2020-06-30 08:06:26 UTC  GPS Lat  50.93591 Lon  -1.01050 COG    8.66000 SOG  0.36 kts

## At this point I hit the tab for the missing chart and it loads perfectly ##

09:08:02 BST: Creating new chart
09:08:02 BST: Initializing Chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-397206.oesenc


CarCode 30-06-2020 02:25

Re: Can't open OESENC chart when starting OpenCPN
 
Never use a space when you create folder names!

baltika_no_9 30-06-2020 04:06

Re: Can't open OESENC chart when starting OpenCPN
 
Quote:

Originally Posted by CarCode (Post 3175431)
Never use a space when you create folder names!

I am aware of this alleged "wisdom" but there in no problem is using spaces. It might make navigation less easy but functionally it is perfectly acceptable. Linux knows how to handle spaces, it's people that generally don't bother to learn how to handle them.

More to the point it has nothing to do with the problem I am reporting here.

bcn 30-06-2020 05:33

Re: Can't open OESENC chart when starting OpenCPN
 
Quote:

Originally Posted by baltika_no_9 (Post 3174616)
However that chart that fails to load is available, if I click on the relevant chart tab at the bottom it loads fine.


If I get your right the issue is that the chart does not pop-up directly by itself at start-up of OpenCPN. You need to evoke it via the chart bar and then it works as it should?


I've seen this sometimes on some systems, but not generally.

baltika_no_9 30-06-2020 06:22

Re: Can't open OESENC chart when starting OpenCPN
 
Quote:

Originally Posted by bcn (Post 3175494)
If I get your right the issue is that the chart does not pop-up directly by itself at start-up of OpenCPN. You need to evoke it via the chart bar and then it works as it should?


I've seen this sometimes on some systems, but not generally.

Yes that's exactly what happens, I select it via the chart bar tab and it loads perfectly. I should add that it is not always reproducible, occasionally the chart does open without intervention.

Obviously not a big deal as the solution is so trivial. Just a minor annoyance but I'll try to see if I can get to the bottom of it.

Thanks

Hakan 30-06-2020 09:09

Re: Can't open OESENC chart when starting OpenCPN
 
So I missed the point bcn cached. Good.
The described issue I've seen as well. There are some attempts to solve it in the latest beta where the up-start is slightly changed. On one of my old "tractor" it can still happen but now not so often.
Give the beta 5.1.621 a try to check for improvements in this matter.

baltika_no_9 01-07-2020 03:32

Re: Can't open OESENC chart when starting OpenCPN
 
I tried 5.1.621 and updated the oesenc-pi to 4.2.12 from 4.0.

I've started OpenCPN 6 or 7 times and the chart loads OK. In the log I still see the "Cannot load..." error BUT the "Creating new chart" message appears automatically without my having to press the chart tab.

[QUOTE][11:04:16.254 MESSAGE oesenc_pi.cpp:2539 validateUserKey E1
11:04:16.355 MESSAGE eSENCChart.cpp:3639
11:04:16.355 MESSAGE eSENCChart.cpp:4531 Cannot load SENC file /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-A22026.oesenc
11:04:16.356 MESSAGE chartdb.cpp:1595 Recoverable problem initializing Chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-A22026.oesenc
11:04:16.356 MESSAGE chartdb.cpp:1605 OpenChartFromStack... Error opening chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-A22026.oesenc ... return code 1
11:04:16.371 MESSAGE chartdb.cpp:1346 Creating new chart
11:04:16.371 MESSAGE chartdb.cpp:1475 Initializing Chart /home/pi/Charts/UK and France/sgl001CD41A-FRatl_UK-2020-26/OC-44-A22026.oesenc
/QUOTE]


All times are GMT -7. The time now is 16:01.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.


ShowCase vBulletin Plugins by Drive Thru Online, Inc.