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 27-12-2021, 15:17   #211
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,659
Images: 2
Re: Twocan - a new Plugin

Another CAN device...
https://www.cruisersforum.com/forums...ml#post3544397
rgleason is offline   Reply With Quote
Old 21-03-2022, 02:21   #212
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 152
Re: Twocan - a new Plugin

New season, new issue with TwoCan (possibly). I believe we had a discussion on that error message in this forum, but I can not find the corresponding posts.

After a while (10's of seconds or minutes) OpenCPN shows the following error message and quits:

Click image for larger version

Name:	Bildschirmfoto 2022-03-20 um 19.56.54.jpg
Views:	48
Size:	413.3 KB
ID:	254714

Raspberry Pi 4
OpenCPN 5.6.0
o-charts 1.0.6.0
TwoCan 2.0.0.0

no other plugins running.


When I deactivate TwoCan no error showing up. When activating SignalK NMEA data are read in and displayed.

I'd appreciate hints to fix the error.

Best,

Manfred
Aldebaran17 is offline   Reply With Quote
Old 21-03-2022, 05:48   #213
Registered User

Join Date: Mar 2011
Posts: 658
Re: Twocan - a new Plugin

IIRC, there was a wxAssert issue in the last version of the Engine Dashboard however that is unrelated to your current problem.

Without any further detail, it is difficult to track down the cause. Could you enable/disable each of the different PGN conversions to help in tracking down the cause of the problem ?

Additionally, from your screen shot it seems like you have the Dashboard displayed. Could you enable/disable the dashboard as that may further assist in identifying the problem.

Thanks.
stevead is offline   Reply With Quote
Old 21-03-2022, 06:30   #214
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 152
Re: Twocan - a new Plugin

Steve,

thanks for your quick replay. I'll try to narrow it done.

My previous screen shot showed that the dashboard was running, but I tested it without.

New trial:

all plugins disabled except TwoCan.

All PGNs disabled in TwoCan.

However, error persists:

Click image for larger version

Name:	Bildschirmfoto 2022-03-21 um 14.16.08.jpg
Views:	49
Size:	381.5 KB
ID:	254716

BTW: in /usr/include/ I do not see a folder called /wx-3.0/.

However, this could be due to my illiteracy in unix.

It could be a language settings issue. The Pi is set to German, but OpenCPN is set to US and ignores my attempts to set it to German as well.

There are some related error messages in the log:

14:08:05.111 MESSAGE chart1.cpp:2070 System default Language: de_DE
14:08:05.111 MESSAGE chart1.cpp:2073 Config file language: en_US
14:08:05.112 MESSAGE chart1.cpp:2078 Adjusted App language: en_US
14:08:05.112 MESSAGE OCPNPlatform.cpp:994 ChangeLocale: Language load for: en_US
14:08:05.112 WARNING intl.cpp:555 Cannot set locale to language "English (U.S.)".
14:08:05.112 ERROR intl.cpp:294 locale 'en_US' cannot be set.
14:08:05.115 MESSAGE OCPNPlatform.cpp:1019 ChangeLocale: could not initialize: en_US
14:08:05.115 WARNING intl.cpp:555 Cannot set locale to language "English (U.S.)".
14:08:05.115 ERROR intl.cpp:294 locale 'en_US' cannot be set.
14:08:05.115 MESSAGE OCPNPlatform.cpp:1035 ChangeLocale: Fall back to en_US
14:08:05.115 WARNING intl.cpp:555 Cannot set locale to language "English (U.S.)".
14:08:05.115 ERROR intl.cpp:294 locale 'en_US' cannot be set.
14:08:05.115 MESSAGE chart1.cpp:2085 Opencpn language set to: en_US

Manfred


Quote:
Originally Posted by stevead View Post
IIRC, there was a wxAssert issue in the last version of the Engine Dashboard however that is unrelated to your current problem.

Without any further detail, it is difficult to track down the cause. Could you enable/disable each of the different PGN conversions to help in tracking down the cause of the problem ?

Additionally, from your screen shot it seems like you have the Dashboard displayed. Could you enable/disable the dashboard as that may further assist in identifying the problem.

Thanks.
Aldebaran17 is offline   Reply With Quote
Old 21-03-2022, 07:25   #215
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 152
Re: Twocan - a new Plugin

Managed to set the language of OpenCPN to german, manually by changing the config file.

Unfortunately, the error message still shows up.

Manfred
Aldebaran17 is offline   Reply With Quote
Old 21-03-2022, 08:17   #216
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Twocan - a new Plugin

Quote:
Originally Posted by Aldebaran17 View Post
BTW: in /usr/include/ I do not see a folder called /wx-3.0/.
The mentioned file datetime.h in /usr/include/... is the source of the assert you see and it will not be at your Linux computer. It is a hint for the developers only and only needed at compile time of OpenCPN and its plugins.
But as you say you are not able to change the language of OpenCPN in the way it should be done and the data for data and time depends also on to the chosen language I guess your OpenCPN installation is not correct.
It might help to talk about your Linux version and how you have installed OpenCPN. So other people with Linux knowledge may help you.
CarCode is offline   Reply With Quote
Old 21-03-2022, 09:27   #217
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 152
Re: Twocan - a new Plugin

Quote:
Originally Posted by CarCode View Post
The mentioned file datetime.h in /usr/include/... is the source of the assert you see and it will not be at your Linux computer. It is a hint for the developers only and only needed at compile time of OpenCPN and its plugins.
Thanks for the insights.

Quote:
Originally Posted by CarCode View Post
It might help to talk about your Linux version and how you have installed OpenCPN. So other people with Linux knowledge may help you.
This may actually be an issue. I installed OpenPlotter two years ago and updated to OpenCPN 5.6.0.

So, the OS is still Version 10 of buster. Maybe this is not compatible with the new OpenCPN.

Amazingly it was running at home. Well, there was no NMEA data stream there. So, this suggests that it is really the data flowing into or out of TwoCan.

Manfred
Aldebaran17 is offline   Reply With Quote
Old 21-03-2022, 09:43   #218
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Twocan - a new Plugin

@Manfred
As said I have no Linux knowledge and hopefully another Linux freak may help.
CarCode is offline   Reply With Quote
Old 21-03-2022, 11:25   #219
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Twocan - a new Plugin

Quote:
Originally Posted by Aldebaran17 View Post
Steve,

thanks for your quick replay. I'll try to narrow it done.

My previous screen shot showed that the dashboard was running, but I tested it without.

New trial:

all plugins disabled except TwoCan.

All PGNs disabled in TwoCan.

However, error persists:

Attachment 254716

BTW: in /usr/include/ I do not see a folder called /wx-3.0/.

However, this could be due to my illiteracy in unix.

It could be a language settings issue. The Pi is set to German, but OpenCPN is set to US and ignores my attempts to set it to German as well.

There are some related error messages in the log:

14:08:05.111 MESSAGE chart1.cpp:2070 System default Language: de_DE
14:08:05.111 MESSAGE chart1.cpp:2073 Config file language: en_US
14:08:05.112 MESSAGE chart1.cpp:2078 Adjusted App language: en_US
14:08:05.112 MESSAGE OCPNPlatform.cpp:994 ChangeLocale: Language load for: en_US
14:08:05.112 WARNING intl.cpp:555 Cannot set locale to language "English (U.S.)".
14:08:05.112 ERROR intl.cpp:294 locale 'en_US' cannot be set.
14:08:05.115 MESSAGE OCPNPlatform.cpp:1019 ChangeLocale: could not initialize: en_US
14:08:05.115 WARNING intl.cpp:555 Cannot set locale to language "English (U.S.)".
14:08:05.115 ERROR intl.cpp:294 locale 'en_US' cannot be set.
14:08:05.115 MESSAGE OCPNPlatform.cpp:1035 ChangeLocale: Fall back to en_US
14:08:05.115 WARNING intl.cpp:555 Cannot set locale to language "English (U.S.)".
14:08:05.115 ERROR intl.cpp:294 locale 'en_US' cannot be set.
14:08:05.115 MESSAGE chart1.cpp:2085 Opencpn language set to: en_US

Manfred
Click on the + sign to the left of the word Backtrace to actually see the place in the code that leads to the assertion.
nohal is offline   Reply With Quote
Old 21-03-2022, 11:43   #220
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 152
Re: Twocan - a new Plugin

Quote:
Originally Posted by nohal View Post
Click on the + sign to the left of the word Backtrace to actually see the place in the code that leads to the assertion.
Click image for larger version

Name:	Bildschirmfoto 2022-03-21 um 19.39.00.jpg
Views:	38
Size:	331.7 KB
ID:	254725
Aldebaran17 is offline   Reply With Quote
Old 21-03-2022, 11:55   #221
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Twocan - a new Plugin

Hmm... Not exactly a place where we can see much.
Can you try to reproduce it by recording and replaying a logfile and if so, share that logfile? (Of course we would like to have all the other plugins disabled).
nohal is offline   Reply With Quote
Old 21-03-2022, 12:18   #222
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 152
Re: Twocan - a new Plugin

Quote:
Originally Posted by nohal View Post
Hmm... Not exactly a place where we can see much.
Can you try to reproduce it by recording and replaying a logfile and if so, share that logfile? (Of course we would like to have all the other plugins disabled).
I do not know, if you refer to the OpenCPN.log or something else.
This is the OpenCPN.log

opencpn.log.pdf

I only added the suffix .pdf to make the forum software believe it can upload it safely. You'll have to download it, remove the suffix and view it with a text editor.

the last lines in the log read like:

20:07:26.879 MESSAGE twocansocket.cpp:139 TwoCan Socket, can0 interface is UP
20:07:26.879 MESSAGE twocandevice.cpp:299 TwoCan Device, Loaded driver CAN0
20:07:26.879 MESSAGE twocandevice.cpp:303 TwoCan Device, Unique Number: 1912388
20:07:26.879 MESSAGE twocandevice.cpp:309 TwoCan Device, Claimed network address: 5
20:07:27.071 MESSAGE twocandevice.cpp:315 TwoCan Device, Sent Product Information
20:07:27.071 MESSAGE twocanplugin.cpp:545 TwoCan Plugin, TwoCan Device Initialized
20:07:27.072 MESSAGE twocanplugin.cpp:551 TwoCan Plugin, TwoCan Device Thread Created
20:07:28.935 MESSAGE twocandevice.cpp:1141 TwoCan Device, ISO Request for Product Info
20:07:29.125 MESSAGE ConfigMgr.cpp:1306 UseGarminHostUpload
20:07:29.125 MESSAGE ConfigMgr.cpp:1308 UseNMEA_GLL
20:07:29.146 MESSAGE s52plib.cpp:518 Core s52plib: ppmm: 3.78698 rv_scale_factor: 1.40833 calc_display_size_mm: 338
20:07:29.146 MESSAGE chcanv.cpp:2374 Metrics: m_display_size_mm: 338 g_Platform->getDisplaySize(): 1280:800
20:07:29.146 MESSAGE chcanv.cpp:2379 wxDisplaySize(): 1280 800
20:07:29.294 MESSAGE glChartCanvas.cpp:732 BuildFBO 3
20:07:29.296 MESSAGE glChartCanvas.cpp:1217 OpenGL Framebuffer OK, size = 1249
20:07:29.343 MESSAGE glChartCanvas.cpp:732 BuildFBO 3
20:07:29.343 MESSAGE glChartCanvas.cpp:1217 OpenGL Framebuffer OK, size = 1249
20:07:29.352 MESSAGE glChartCanvas.cpp:732 BuildFBO 3
20:07:29.353 MESSAGE glChartCanvas.cpp:1217 OpenGL Framebuffer OK, size = 1249
20:07:29.383 MESSAGE glChartCanvas.cpp:732 BuildFBO 3
20:07:29.383 MESSAGE glChartCanvas.cpp:1217 OpenGL Framebuffer OK, size = 1249
20:07:34.893 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim
20:07:41.535 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim
20:07:46.932 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim
20:07:53.665 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim
20:07:58.665 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim
20:08:00.102 MESSAGE chart1.cpp:7389 LOGBOOK: 2022-03-21 19:08:00 UTC DR Lat 53.23410 Lon 8.46460
20:08:04.231 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim
20:08:10.854 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim
20:08:15.507 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim
20:08:21.807 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim
20:08:26.108 MESSAGE twocandevice.cpp:1116 TwoCan Device, ISO Request for Address Claim


Manfred
Aldebaran17 is offline   Reply With Quote
Old 21-03-2022, 12:40   #223
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Twocan - a new Plugin

No, I refer to the log of the actual N2K traffic that causes the assert to appear.
nohal is offline   Reply With Quote
Old 21-03-2022, 13:29   #224
Registered User

Join Date: Mar 2016
Location: Bremen
Boat: Dehler Optima 106
Posts: 152
Re: Twocan - a new Plugin

Quote:
Originally Posted by nohal View Post
No, I refer to the log of the actual N2K traffic that causes the assert to appear.
Got it. I created a log of NMEA traffic using candump. As soon as the error popped top I terminated the log, manually. So, there is a delay of a second or so, between the error and the end of the logfile. I hope this is helpful.

The NMEA stream is generated by various instruments, but time can only come from AIS, which also serves the position data to OpenCPN.

Manfred

candump-2022-03-21_211959.log.pdf
Aldebaran17 is offline   Reply With Quote
Old 21-03-2022, 15:32   #225
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Twocan - a new Plugin

Thanks...
I have fixed all the asserts I was able to reproduce on my system in https://github.com/TwoCanPlugIn/TwoCanPlugIn/pull/14 (But I was not able to exactly reproduce yours on macOS and with different locale, so there still is a chance I missed it)
nohal is offline   Reply With Quote
Reply

Tags
plug


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
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 77 23-04-2019 05:40
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
New History Plugin for OpenCPN seandepagnier OpenCPN 11 04-10-2010 14:11

Advertise Here


All times are GMT -7. The time now is 21:17.


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.