Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 17-02-2023, 14:56   #211
Registered User

Join Date: Mar 2020
Posts: 35
Re: OpenCPN Version 5.7.1 Beta Test #2

Raspberry Pi 4, Bullseye 64 latest with Beta test 2. When viewing the AIS Target Query Dialog Box for a boat named "Liberty" as I hover over the boat the Rollover Dialog Box (yellow box) shows the wrong name "Comrade"
Attached Thumbnails
Click image for larger version

Name:	2023-02-14-132737_1920x1080_scrot.jpg
Views:	40
Size:	425.2 KB
ID:	271719  
ZagsAtCF is offline   Reply With Quote
Old 17-02-2023, 15:56   #212
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,310
Re: OpenCPN Version 5.7.1 Beta Test #2

ZagsAtCF..
It's not only the name that differ. It's two different targets. Not the same MMSI or speed, course. Is this anything you can repeat and see again?
Hakan is online now   Reply With Quote
Old 20-02-2023, 12:25   #213
Registered User

Join Date: Mar 2020
Posts: 35
Re: OpenCPN Version 5.7.1 Beta Test #2

I am able to replicate this. I setup another Raspberry Pi 4 at my home and using the candump files from that day replayed via canplayer I have another image showing the issue. I also chose another candump file from 8-29-22 and could see the issue here as well. It appears that the Rollover Dialog Box can appear all over the place with no regard to a ships location.
Attached Thumbnails
Click image for larger version

Name:	2023-02-18-152936_1920x1080_scrot.jpg
Views:	40
Size:	430.8 KB
ID:	271796   Click image for larger version

Name:	Screenshot from 2023-02-20 10-43-11.jpg
Views:	42
Size:	411.7 KB
ID:	271797  

Click image for larger version

Name:	Screenshot from 2023-02-20 10-46-19.jpg
Views:	36
Size:	429.5 KB
ID:	271798   Click image for larger version

Name:	Screenshot from 2023-02-20 10-45-32.jpg
Views:	36
Size:	430.7 KB
ID:	271799  

Click image for larger version

Name:	Screenshot from 2023-02-20 10-42-13.jpg
Views:	33
Size:	418.3 KB
ID:	271800  
ZagsAtCF is offline   Reply With Quote
Old 22-02-2023, 10:26   #214
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,310
Re: OpenCPN Version 5.7.1 Beta Test #2

ZagsAtCF....
I've tested on my Rpi4 armhf BullsEye.
I played (again) a N2k log-dump via Vcan0. That file was created from a live system, can0, I tested some time ago.

Lots of AIS and most other data.
No problem whatsoever with AIS-mouse-roll-over. Always the correct info for each target as for the target query.

So what can be the difference to your system?
Hakan is online now   Reply With Quote
Old 22-02-2023, 13:31   #215
Registered User

Join Date: Mar 2020
Posts: 35
Re: OpenCPN Version 5.7.1 Beta Test #2

Curious, I am using the 64-bit OS version on both of my sites. Perhaps we can exchange setup information or log files if you are interested. Or, if you have any other thoughts. I will play around a bit and see if I can alter the behavior.
ZagsAtCF is offline   Reply With Quote
Old 23-02-2023, 07:48   #216
Registered User

Join Date: Mar 2020
Posts: 35
Re: OpenCPN Version 5.7.1 Beta Test #2

I ran my canlog again yesterday and noticed that when I first began the issue did not occur, but after some AIS boating activity the Rollover issue appeared and kept getting worse with more time and boat traffic. I realized that the AIS data is persistent on the map and you could get a ships past Rollover info along its track history. I then enabled "Show target tracks (min)" and set it to 60 minutes. Here is a series of photos following WSF Kaleetan from Elliot Bay toward Port Orchard.
Attached Thumbnails
Click image for larger version

Name:	WSF Kaleetan_1.jpg
Views:	31
Size:	166.7 KB
ID:	271909   Click image for larger version

Name:	WSF Kaleetan_3.jpg
Views:	33
Size:	167.9 KB
ID:	271910  

Click image for larger version

Name:	WSF Kaleetan_5.jpg
Views:	31
Size:	168.0 KB
ID:	271911   Click image for larger version

Name:	WSF Kaleetan_7.jpg
Views:	33
Size:	166.5 KB
ID:	271912  

Click image for larger version

Name:	WSF Kaleetan_9.jpg
Views:	32
Size:	166.6 KB
ID:	271913  
ZagsAtCF is offline   Reply With Quote
Old 23-02-2023, 13:35   #217
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,310
Re: OpenCPN Version 5.7.1 Beta Test #2

ZagsAtCF....
Just so we are testing the same thing:

This is my method:
Disable any OCPN can0 connection.
Code:
The following 5 commands will bring up the interface called "vcan0".

    $ modprobe can
    $ modprobe can_raw
    $ modprobe vcan
    $ sudo ip link add dev vcan0 type vcan
    $ sudo ip link set up vcan0
After that enable a OCPN vcan0 connection.


Here's a file I test if you like: candump_test
Code:
cat "filename" | canplayer vcan0=can0
Hakan is online now   Reply With Quote
Old 23-02-2023, 15:39   #218
Registered User

Join Date: Mar 2020
Posts: 35
Re: OpenCPN Version 5.7.1 Beta Test #2

This is my method:
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0
sudo ifconfig vcan0 txqueuelen 1000
Then I use canplayer like you to play out to vcan0 with can0 disabled in OpenCPN.
I will try your file and get back to you.
ZagsAtCF is offline   Reply With Quote
Old 23-02-2023, 19:34   #219
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,310
Re: OpenCPN Version 5.7.1 Beta Test #2

What's txqueuelen 1000? Could that make a difference in behavior?
Hakan is online now   Reply With Quote
Old 24-02-2023, 09:09   #220
Registered User

Join Date: Mar 2020
Posts: 35
Re: OpenCPN Version 5.7.1 Beta Test #2

I believe it is a buffer for the interface, in this case the vcan0.
ZagsAtCF is offline   Reply With Quote
Old 24-02-2023, 10:52   #221
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,310
Re: OpenCPN Version 5.7.1 Beta Test #2

I'd suggest take this out and maybe try the set-up I've learned to use and check if your trouble persists.
Hakan is online now   Reply With Quote
Old 24-02-2023, 13:50   #222
Registered User

Join Date: Mar 2020
Posts: 35
Re: OpenCPN Version 5.7.1 Beta Test #2

I'll give your method a try, but in the meantime I ran your log file and it crashed my OpenCPN several times. I did manage to duplicate the issue with your data, again I enabled Ships-AIS Targets-Show target tracks, length (min) to see the path the vessel "Buro" took. I also ran your livetest_on_board.log file through candump2analyzer and analyzer (Canboat) and noticed quite a few errors. I am attaching the photos, the error list, the OpenCPN.log file (after the crash) and a log file from my collection (candump2022-08-28.log). Also, I first witnessed this behavior on my boat, Opus, as it was occurring live, so I don't think this is a can player playback issue.
Attached Thumbnails
Click image for larger version

Name:	2023-02-24-100142_1920x1080_scrot.jpg
Views:	27
Size:	259.6 KB
ID:	271975   Click image for larger version

Name:	2023-02-24-100153_1920x1080_scrot.jpg
Views:	29
Size:	255.9 KB
ID:	271976  

Click image for larger version

Name:	2023-02-24-100202_1920x1080_scrot.jpg
Views:	29
Size:	255.2 KB
ID:	271977  
ZagsAtCF is offline   Reply With Quote
Old 24-02-2023, 14:15   #223
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,310
Re: OpenCPN Version 5.7.1 Beta Test #2

OK. Since it's working on my system I can't investigate more. Sorry.
The log file recorded from a live N2k bus worked fine both to canBus can0 on a RPi and via a YDNU-02 via USB to N2k connection Windows.


BTW: And your can0 bitrate is set to 250 000?
Hakan is online now   Reply With Quote
Old 24-02-2023, 14:26   #224
Registered User

Join Date: Mar 2020
Posts: 35
Re: OpenCPN Version 5.7.1 Beta Test #2

OK, apparently I cannot attach files other than images, so here are links to the files I mentioned above. I'm new to dropbox so hopefully this works.
https://www.dropbox.com/s/s45rhhmukw...8.log.zip?dl=0
https://www.dropbox.com/s/bzgc0wabh0...r.txt.zip?dl=0
https://www.dropbox.com/s/5txgn2y5q6...encpn.log?dl=0
Thanks for your help.
ZagsAtCF is offline   Reply With Quote
Old 24-02-2023, 17:58   #225
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,527
Re: OpenCPN Version 5.7.1 Beta Test #2

Zag...
I did manage to reproduce the error reported. Occurs only on N2K AIS target position processing. Will not occur on N0183 data streams.


If you are building from source, the fix is now available in github master. Otherwise, will be coming in next Beta.


Aside: This bug could clearly be responsible for OCPN causing memory exhaustion when run for several days with heavy N2K AIS traffic in the mix.


Thanks
Dave
bdbcat is offline   Reply With Quote
Reply

Tags
enc, opencpn


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
OpenCPN Beta Version 5.7.1 Beta Test #1 - Plugins rgleason OpenCPN 115 08-03-2023 00:01
OpenCPN Version 5.1.511 Beta Test bdbcat OpenCPN 103 23-05-2020 04:02
OpenCPN Version 5.1.428 Beta Test bdbcat OpenCPN 289 19-05-2020 04:46
OpenCPN Version 2.2 Beta Test bdbcat OpenCPN 437 15-12-2010 19:17
OpenCPN Version 2.2 Beta Test Bugs / Discussion bdbcat OpenCPN 120 26-09-2010 02:53

Advertise Here
  Vendor Spotlight
No Threads to Display.


All times are GMT -7. The time now is 14:51.


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.