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 06-08-2022, 07:36   #136
Registered User

Join Date: Feb 2015
Posts: 124
Re: AvNav - navigation in the browser

Yes redirecting gdb is possible.
As you would not see anything maybe just invoking
gdb -ex where -ex quit /usr/lib/... /home/pi/avnav/... > some.log
would do the job.

For the SD card:
As you have the dongle you can use another one...
wellenvogel02 is offline   Reply With Quote
Old 06-08-2022, 07:37   #137
Registered User
 
ekoleponen's Avatar

Join Date: Jul 2022
Posts: 56
Re: AvNav - navigation in the browser

Ok, my smart phone chopped the gdb command, now on my laptop it appears as you said.
OpenCPN is not running, I used it only to load the Ocharts, but it crashed a few times when poking around the maps and after that I checked AvNav and was charmed with it )
ekoleponen is offline   Reply With Quote
Old 06-08-2022, 07:40   #138
Registered User

Join Date: Feb 2015
Posts: 124
Re: AvNav - navigation in the browser

If we see the same problem as on my side I can build some patch - this at least would avoid the crashes (but make some lines not being drawn...).
Still try to find the root cause - it does not occur on my desktop/test system - only on the Pi (on my side 32 bit).
wellenvogel02 is offline   Reply With Quote
Old 06-08-2022, 11:16   #139
Registered User
 
ekoleponen's Avatar

Join Date: Jul 2022
Posts: 56
Re: AvNav - navigation in the browser

Ok, here are the results
Attached Files
File Type: doc providerlog.2022-08-06-15-44-31.doc (196.9 KB, 36 views)
File Type: doc providerlog2022-08-06-15-46-05.doc (193.0 KB, 13 views)
File Type: doc providerlog2022-08-06-15-47-58.doc (193.1 KB, 14 views)
File Type: doc providerlog2022-08-06-15-48-11.doc (187.1 KB, 31 views)
File Type: doc providerlog2022-08-06-15-49-43.doc (191.7 KB, 8 views)
File Type: doc pi4debuglog.doc (3.5 KB, 14 views)
ekoleponen is offline   Reply With Quote
Old 06-08-2022, 11:18   #140
Registered User

Join Date: Feb 2015
Posts: 124
Re: AvNav - navigation in the browser

Ok, thanks.
Good news: Same crash that I have here...
Bad news: No solution so far - but I'm working on it.

At the end I'm quite optimistic to find the problem.
wellenvogel02 is offline   Reply With Quote
Old 06-08-2022, 11:44   #141
Registered User
 
ekoleponen's Avatar

Join Date: Jul 2022
Posts: 56
Re: AvNav - navigation in the browser

I knew I was dealing with beta-version, so no problems ))
ekoleponen is offline   Reply With Quote
Old 06-08-2022, 11:47   #142
Registered User

Join Date: Feb 2015
Posts: 124
Re: AvNav - navigation in the browser

Unfortunately I guess it's not a beta issue...
wellenvogel02 is offline   Reply With Quote
Old 07-08-2022, 11:54   #143
Registered User

Join Date: Feb 2015
Posts: 124
Re: AvNav - navigation in the browser

Ok, I now created a patch for the OpenCPN plugin to address this issue.
https://www.dropbox.com/sh/60a3ipsy9...G9S2eCPma?dl=0
As you have the 64 Bit version download the libo-charts_pi.so from arm64.
Assuming you downloaded to /home/pi you need to execute:
Code:
sudo mv /usr/lib/avnav/plugins/ocharts/lib/opencpn/libo-charts_pi.so /usr/lib/avnav/plugins/ocharts/lib/opencpn/libo-charts_pi.so.ori
sudo cp /home/pi/libo-charts_pi.so /usr/lib/avnav/plugins/ocharts/lib/opencpn/libo-charts_pi.so
sudo systemctl restart avnav
This lib additionally is a debug version - so if we still get cores, we would have a chance to dig deeper into the problem.
wellenvogel02 is offline   Reply With Quote
Old 08-08-2022, 09:36   #144
Registered User
 
ekoleponen's Avatar

Join Date: Jul 2022
Posts: 56
Re: AvNav - navigation in the browser

Did as instructed, and I think the preFill of Estonian cards went well.

However I cannot view different areas in Estonian charts as the view is locked into my current position (which is inland in Finland).

Tried to change the option "Settings/Map/lock boat mode" from "center" to "current" and "ask" without success.

So at the moment I cannot poke around the charts.
ekoleponen is offline   Reply With Quote
Old 08-08-2022, 09:52   #145
Registered User

Join Date: Feb 2015
Posts: 124
Re: AvNav - navigation in the browser

Just unlock the chart.
Button with the boat icon.
If green border -> chart is locked to position.
If no border -> you can freely move the chart.

Did you check for any segmentation faults?
wellenvogel02 is offline   Reply With Quote
Old 08-08-2022, 10:21   #146
Registered User
 
ekoleponen's Avatar

Join Date: Jul 2022
Posts: 56
Re: AvNav - navigation in the browser

Thanks!

Segmentation faults keep on coming.
ekoleponen is offline   Reply With Quote
Old 08-08-2022, 10:39   #147
Registered User

Join Date: Feb 2015
Posts: 124
Re: AvNav - navigation in the browser

Ok, so if segmentation faults are still there it would be helpful to get and analyse the cores again.
But first we have to be sure that you really have the new library.
Could you execute an
ls -al /usr/lib/avnav/plugins/ocharts/lib/opencpn
And post the result?

Are you sure that you restarted AvNav after replacing the library?
Would be strange if we still get segfaults but everything works...
wellenvogel02 is offline   Reply With Quote
Old 08-08-2022, 11:27   #148
Registered User
 
ekoleponen's Avatar

Join Date: Jul 2022
Posts: 56
Re: AvNav - navigation in the browser

I am sure I restarted AvNav, besides there has been couple of shutdowns and powerons after I changed the libs.

The result of the ls-command is attached.
Attached Thumbnails
Click image for larger version

Name:	ls output 2022-08-08 21-23-17.png
Views:	40
Size:	14.1 KB
ID:	262480  
ekoleponen is offline   Reply With Quote
Old 08-08-2022, 11:39   #149
Registered User

Join Date: Feb 2015
Posts: 124
Re: AvNav - navigation in the browser

Ok, thanks.
So the lib is the new one.
Now it would be really helpful to analyze a core file again.
After preparing the core writing (uncomment, change /proc/sys/kernel/core_pattern, restart avnav) you could make a change at one of the settings for o-charts (e.g. the deep water value) as this will invalidate the caches and the prefill will start over.
And then repeat the steps I described to get an info where the crash is located together with the provider logs.
Maybe you could delete all the old core files beforehand as they are rather big...

Potentially there are more problems then the one I solved. On my side there are no seg faults any more after the change.
wellenvogel02 is offline   Reply With Quote
Old 08-08-2022, 11:59   #150
Registered User
 
ekoleponen's Avatar

Join Date: Jul 2022
Posts: 56
Re: AvNav - navigation in the browser

Ok, just to make sure I collect the files during a right time frame:

using the Finnish charts (zooming/moving around) starts the prefill of the Finnish charts ?
And that moment starts the time slice of interest ??

The Finnish charts are the ones that create the segmentation fault for sure.
ekoleponen is offline   Reply With Quote
Reply

Tags
navigation


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
Ipad navigation (google earth and navigation) Cpt Balu Navigation 2 11-03-2019 18:55
Browser Cookies Mirage35 Flotsam & Sailing Miscellany 19 29-01-2017 06:29
Dual Browser Windows for Android devices sinbad7 Navigation 0 19-11-2013 13:01
Going Back To Browser, Away From Apps GaryMayo Forum Tech Support & Site Help 0 11-12-2012 14:00

Advertise Here
  Vendor Spotlight
No Threads to Display.


All times are GMT -7. The time now is 11:22.


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.