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 02-02-2021, 02:50   #1
Registered User

Join Date: Feb 2021
Location: Denmark
Boat: Luffe 40 12M
Posts: 8
opencpn crash on rpi4 after 2 min (usb error?)

Thread 1 "opencpn" received signal SIGSEGV, Segmentation fault.
0xabcce774 in ?? () from /usr/lib/opencpn/libdashboard_pi.so
(gdb) bt
#0 0xabcce774 in ?? () from /usr/lib/opencpn/libdashboard_pi.so
#1 0xabc9edd4 in ?? () from /usr/lib/opencpn/libdashboard_pi.so
#2 0x006e52f0 in PlugInManager::SendNMEASentenceToAllPlugIns(wxStri ng const&)
()
#3 0x00662426 in Multiplexer::OnEvtStream(OCPN_DataStreamEvent&) ()
#4 0xb6391784 in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0
#5 0xb65007a8 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTable EntryBase const&, wxEvtHandler*, wxEvent&) ()
from /lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0
#6 0xb6500c8c in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
from /lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0
#7 0xb6500d60 in wxEvtHandler::TryHereOnly(wxEvent&) ()
from /lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0
#8 0xb6500e30 in wxEvtHandler::ProcessEventLocally(wxEvent&) ()
from /lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0
#9 0xb6500efc in wxEvtHandler::ProcessEvent(wxEvent&) ()
from /lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0
#10 0xb6501b1c in wxEvtHandler::ProcessPendingEvents() ()
from /lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0
#11 0xb6396094 in wxAppConsoleBase::ProcessPendingEvents() ()
from /lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0
#12 0xb66e0580 in wxApp:oIdle() ()
evitad48 is offline   Reply With Quote
Old 02-02-2021, 06:53   #2
Registered User

Join Date: Feb 2021
Location: Denmark
Boat: Luffe 40 12M
Posts: 8
Re: opencpn crash on rpi4 after 2 min (usb error?)

because i wrote usb error.
If i dont plug my usb converter treid 3 differnet for my nema0183 network it dont crash.
can any help me i am stock
best regards from Denmark
Søren
evitad48 is offline   Reply With Quote
Old 02-02-2021, 07:14   #3
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 469
Re: opencpn crash on rpi4 after 2 min (usb error?)

Are there any hints in /var/log/syslog or the OpenCpn log file?
AedanC is offline   Reply With Quote
Old 02-02-2021, 07:24   #4
Registered User

Join Date: Feb 2021
Location: Denmark
Boat: Luffe 40 12M
Posts: 8
Re: opencpn crash on rpi4 after 2 min (usb error?)

hope its helps:

16:21:24.238 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /home/pi/.local/lib/opencpn/libnmeaconverter_pi.so
16:21:24.241 MESSAGE pluginmanager.cpp:2169 Plugin is compatible: true
16:21:24.241 MESSAGE pluginmanager.cpp:2232 PlugInManager: Loading PlugIn: /home/pi/.local/lib/opencpn/libnmeaconverter_pi.so
16:21:24.246 INFO pluginmanager.cpp:2403 PlugInManager: /home/pi/.local/lib/opencpn/libnmeaconverter_pi.so
16:21:24.246 INFO pluginmanager.cpp:2404 Plugin common name: NmeaConverter_pi
16:21:24.246 INFO pluginmanager.cpp:2406 API Version detected: 108
16:21:24.246 INFO pluginmanager.cpp:2407 PlugIn Version detected: 1.2
16:21:24.247 MESSAGE OCPNPlatform.cpp:1016 ChangeLocale: Language load for: da_DK
16:21:24.257 MESSAGE OCPNPlatform.cpp:1068 ChangeLocale: Locale Init OK for: da_DK
16:21:24.257 MESSAGE OCPNPlatform.cpp:1087 Loading catalog for opencpn core.
16:21:24.267 MESSAGE OCPNPlatform.cpp:931 Getting DefaultSystemLocale...
16:21:24.267 MESSAGE pluginmanager.cpp:1104 Loading plugins from dir: /usr/local/lib/opencpn
16:21:24.268 MESSAGE pluginmanager.cpp:1130 PlugInManager searching for PlugIns in location /usr/local/lib/opencpn
16:21:24.268 MESSAGE pluginmanager.cpp:1145 Directory /usr/local/lib/opencpn does not exist.
16:21:24.268 MESSAGE pluginmanager.cpp:1104 Loading plugins from dir: /usr/lib/arm-linux-gnueabihf/opencpn
16:21:24.268 MESSAGE pluginmanager.cpp:1130 PlugInManager searching for PlugIns in location /usr/lib/arm-linux-gnueabihf/opencpn
16:21:24.268 MESSAGE pluginmanager.cpp:1145 Directory /usr/lib/arm-linux-gnueabihf/opencpn does not exist.
16:21:24.268 MESSAGE pluginmanager.cpp:1104 Loading plugins from dir: /usr/lib/opencpn
16:21:24.268 MESSAGE pluginmanager.cpp:1130 PlugInManager searching for PlugIns in location /usr/lib/opencpn
16:21:24.268 MESSAGE pluginmanager.cpp:1167 Found 4 candidates
16:21:24.268 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /usr/lib/opencpn/libchartdldr_pi.so
16:21:24.272 MESSAGE pluginmanager.cpp:2169 Plugin is compatible: true
16:21:24.272 MESSAGE pluginmanager.cpp:2232 PlugInManager: Loading PlugIn: /usr/lib/opencpn/libchartdldr_pi.so
16:21:24.276 INFO pluginmanager.cpp:2403 PlugInManager: /usr/lib/opencpn/libchartdldr_pi.so
16:21:24.276 INFO pluginmanager.cpp:2404 Plugin common name: ChartDownloader
16:21:24.276 INFO pluginmanager.cpp:2406 API Version detected: 113
16:21:24.276 INFO pluginmanager.cpp:2407 PlugIn Version detected: 1.4
16:21:24.278 MESSAGE chartdldr_pi.cpp:331 chartdldr_pi: /home/pi/Charts
16:21:24.278 MESSAGE chartdldr_pi.cpp:332 chartdldr_pi: /home/pi/Charts
16:21:24.278 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /usr/lib/opencpn/libdashboard_pi.so
16:21:24.281 MESSAGE pluginmanager.cpp:2169 Plugin is compatible: true
16:21:24.281 MESSAGE pluginmanager.cpp:2232 PlugInManager: Loading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
16:21:24.286 INFO pluginmanager.cpp:2403 PlugInManager: /usr/lib/opencpn/libdashboard_pi.so
16:21:24.286 INFO pluginmanager.cpp:2404 Plugin common name: Dashboard
16:21:24.286 INFO pluginmanager.cpp:2406 API Version detected: 106
16:21:24.286 INFO pluginmanager.cpp:2407 PlugIn Version detected: 1.2
16:21:24.311 MESSAGE glChartCanvas.cpp:693 BuildFBO 3
16:21:24.311 MESSAGE glChartCanvas.cpp:1177 OpenGL Framebuffer OK, size = 1916
16:21:24.313 MESSAGE pluginmanager.cpp:1269 PlugInManager: Dashboard has loaded very slowly: 26 ms
16:21:24.313 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /usr/lib/opencpn/libgrib_pi.so
16:21:24.313 MESSAGE pluginmanager.cpp:1223 Skipping not enabled candidate.
16:21:24.313 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /usr/lib/opencpn/libwmm_pi.so
16:21:24.316 MESSAGE pluginmanager.cpp:2169 Plugin is compatible: true
16:21:24.316 MESSAGE pluginmanager.cpp:2232 PlugInManager: Loading PlugIn: /usr/lib/opencpn/libwmm_pi.so
16:21:24.319 INFO pluginmanager.cpp:2403 PlugInManager: /usr/lib/opencpn/libwmm_pi.so
16:21:24.320 INFO pluginmanager.cpp:2404 Plugin common name: WMM
16:21:24.320 INFO pluginmanager.cpp:2406 API Version detected: 108
16:21:24.320 INFO pluginmanager.cpp:2407 PlugIn Version detected: 1.1
16:21:24.321 MESSAGE wmm_pi.cpp:47 WMM: WMM model data loaded from file /usr/share/opencpn/plugins/wmm_pi/data/WMM.COF.
16:21:24.325 MESSAGE OCPNPlatform.cpp:1016 ChangeLocale: Language load for: da_DK
16:21:24.335 MESSAGE OCPNPlatform.cpp:1068 ChangeLocale: Locale Init OK for: da_DK
16:21:24.335 MESSAGE OCPNPlatform.cpp:1081 Loading catalog for: opencpn-chartdldr_pi
16:21:24.336 MESSAGE OCPNPlatform.cpp:1081 Loading catalog for: opencpn-dashboard_pi
16:21:24.337 MESSAGE OCPNPlatform.cpp:1081 Loading catalog for: opencpn-wmm_pi
16:21:24.338 MESSAGE OCPNPlatform.cpp:1087 Loading catalog for opencpn core.
16:21:24.349 MESSAGE OCPNPlatform.cpp:931 Getting DefaultSystemLocale...
16:21:24.349 MESSAGE pluginmanager.cpp:1104 Loading plugins from dir: /usr/lib/opencpn
16:21:24.349 MESSAGE pluginmanager.cpp:1130 PlugInManager searching for PlugIns in location /usr/lib/opencpn
16:21:24.349 MESSAGE pluginmanager.cpp:1167 Found 4 candidates
16:21:24.349 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /usr/lib/opencpn/libchartdldr_pi.so
16:21:24.349 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /usr/lib/opencpn/libdashboard_pi.so
16:21:24.349 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /usr/lib/opencpn/libgrib_pi.so
16:21:24.349 MESSAGE pluginmanager.cpp:1223 Skipping not enabled candidate.
16:21:24.349 MESSAGE pluginmanager.cpp:1174 Checking plugin candidate: /usr/lib/opencpn/libwmm_pi.so
16:21:24.350 MESSAGE OCPNPlatform.cpp:1016 ChangeLocale: Language load for: da_DK
16:21:24.360 MESSAGE OCPNPlatform.cpp:1068 ChangeLocale: Locale Init OK for: da_DK
16:21:24.360 MESSAGE OCPNPlatform.cpp:1081 Loading catalog for: opencpn-chartdldr_pi
16:21:24.361 MESSAGE OCPNPlatform.cpp:1081 Loading catalog for: opencpn-dashboard_pi
16:21:24.362 MESSAGE OCPNPlatform.cpp:1081 Loading catalog for: opencpn-wmm_pi
16:21:24.363 MESSAGE OCPNPlatform.cpp:1087 Loading catalog for opencpn core.
16:21:24.374 MESSAGE OCPNPlatform.cpp:931 Getting DefaultSystemLocale...
16:21:24.455 MESSAGE glChartCanvas.cpp:693 BuildFBO 3
16:21:24.455 MESSAGE glChartCanvas.cpp:1177 OpenGL Framebuffer OK, size = 1916
16:21:24.464 MESSAGE glChartCanvas.cpp:693 BuildFBO 3
16:21:24.464 MESSAGE glChartCanvas.cpp:1177 OpenGL Framebuffer OK, size = 1916
16:21:24.473 MESSAGE chart1.cpp:8814 Changing NMEA Datasource for GPGSV to Serial:/dev/ttyUSB0 (Priority: 1)
16:21:24.566 MESSAGE chart1.cpp:6875 OnInitTimer...3
16:21:24.577 MESSAGE chart1.cpp:8814 Changing NMEA Datasource for IIHDM to Serial:/dev/ttyUSB0 (Priority: 1)
16:21:24.666 MESSAGE chart1.cpp:6875 OnInitTimer...4
16:21:25.525 MESSAGE options.cpp:5822 options: got device count: 1
16:21:25.660 MESSAGE chart1.cpp:7420 ***GPS Watchdog timeout at Lat:55.2 Lon: 9.5538
16:21:25.697 MESSAGE chart1.cpp:8814 Changing NMEA Datasource for GLGSV to Serial:/dev/ttyUSB0 (Priority: 1)
16:21:25.697 MESSAGE chart1.cpp:8814 Changing NMEA Datasource for GNVTG to Serial:/dev/ttyUSB0 (Priority: 1)
16:21:25.697 MESSAGE chart1.cpp:8814 Changing NMEA Datasource for GNGGA to Serial:/dev/ttyUSB0 (Priority: 1)
16:21:25.710 MESSAGE chart1.cpp:8814 Changing NMEA Datasource for GNGSA to Serial:/dev/ttyUSB0 (Priority: 1)
16:21:25.760 MESSAGE chart1.cpp:6875 OnInitTimer...5
16:21:25.861 MESSAGE chart1.cpp:6875 OnInitTimer...6
16:21:25.861 MESSAGE chart1.cpp:7167 OnInitTimer...Last Call
16:21:25.861 MESSAGE chart1.cpp:7185 OnInitTimer...Finalize Canvases
16:21:27.745 chart1.cpp:8814 Changing NMEA Datasource for GNRMC to Serial:/dev/ttyUSB0 (Priority: 1)
evitad48 is offline   Reply With Quote
Old 03-02-2021, 00:40   #5
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: opencpn crash on rpi4 after 2 min (usb error?)

Sören.. You've a good log and a call stack from gdb. Just so we understand: Did you tried three different serial-USB converters for the same source, GPS?, and all times got the same crash after the GNRMC is received. Is that correct? From the log we can see OCPN received the GNRMC and in some way accepted that since the prioritization kicked in. So, some position received. From the call stack we see OCPN have sent a NMEA sentence to all plugins. Dashboard has done something with that. All is as normal except the crash. So the Q is: Is it the GNRMC that contains a failure or the next sentence that makes the crash event when received to OCPN? My first step would be to study the received NMEA0183 sentences the second before the crash. We can't use the NMEA debug window since it will crash as well. So what about to activate the plugin VDR and record all NMEA coming in? If we're lucky the last record is printed to the VDR file before the crash?
Hakan is offline   Reply With Quote
Old 05-02-2021, 07:08   #6
Registered User

Join Date: Feb 2021
Location: Denmark
Boat: Luffe 40 12M
Posts: 8
Re: opencpn crash on rpi4 after 2 min (usb error?)

Hej Hakan
i have a bit more news about the problem.
Yes i have treid with 2 different usb converter and one shipmodul miniplex lite all crash the same. I am getting gps data and green in nmea text and also data to instrumentpanel.
Then i was thinking that m PC has opencpn on it with windows 10 i used it to get all hole on the program when i startet on opencpn. i upgrade it to 5.2.4 an got my new QK-AS07-0183 gps antenna with heading installt: https://www.quark-elec.com/product/q...83-gps-sensor/

Then i look at you mail about VDR and instal it as well on my PC and i got started with log and it crash like the RPI.
Then i start opencpn again and will play VDR log and it show the small panel and when it got to the end in bar it crashed again all the time at end. i have look in show when playing i cant get a log out but have a picture at last text and then it crash. see picture.
It must be something with data from GPS i dont have other nmea 0183 instrument loss so i have to get it i the boat at connect it to its nmea network.

I have wrote to Quark-elec for up they can help me

Many thanks from Denmark
Søren
Attached Thumbnails
Click image for larger version

Name:	Fil_000.jpg
Views:	59
Size:	446.4 KB
ID:	231953  
evitad48 is offline   Reply With Quote
Old 05-02-2021, 07:23   #7
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: opencpn crash on rpi4 after 2 min (usb error?)

If you are able to reproduce with VDR replay, please attach the recording here.
nohal is offline   Reply With Quote
Old 05-02-2021, 07:52   #8
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: opencpn crash on rpi4 after 2 min (usb error?)

Sören..
Nothing strange with the NMEA data shown. Well, the second last row is empty except a new line and row but that will make no harm.
And in general no incoming data will crash O. It's normally just rejected if not recognized as a valid NMEA sentence.

I've never seen anything like it but to be sure: Take a look in the last rows in the VDR text file, after the last GNRMC showed here. Just open with Notepad or similar and check for strange string. But I can't imagine anything there can cause a crash.

BTW I tried your last GNRMC, although I need to change the checksum but it could as well have been due to I'd to rewrite it.
$GNRMC,142106.60,A,5511.9985,N,00933.22,E,0.027,,, D*6C<0x0D><0x0A>
That passes my OCPN without trouble so it's not about that.

BTW2. Nice new GNSS receiver you've with more satellites than GPS! I've run a similar wo trouble.
End of ideas...
Hakan is offline   Reply With Quote
Old 05-02-2021, 08:02   #9
Registered User

Join Date: Feb 2021
Location: Denmark
Boat: Luffe 40 12M
Posts: 8
Re: opencpn crash on rpi4 after 2 min (usb error?)

hello again
i have config me gps antenna with tool and it can be setup with many outputs MSG? there are, RMC, VTG, GGA, GSA, GSV, GLL. how many are you using?

I have RMC, VTG and GGA on and the opencpn is working now for 10min i think it was overflow of data stream?

i will test on RPI4 and seen up it works there, i will post.
Sry about my english.
Thanks again
Søren
evitad48 is offline   Reply With Quote
Old 05-02-2021, 08:18   #10
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: opencpn crash on rpi4 after 2 min (usb error?)

Quote:
Originally Posted by evitad48 View Post
hello again
i have config me gps antenna with tool and it can be setup with many outputs MSG? there are, RMC, VTG, GGA, GSA, GSV, GLL. how many are you using?

I have RMC, VTG and GGA on and the opencpn is working now for 10min i think it was overflow of data stream?
All the first mentioned are relevant and you may need all but VTG, that one you can take out.
It can bee overflow on baud rate 4800 but a proper receiver would have some kind of indication for that though. And it's rather unlikely O will crash for a overflowed serial buffer. But Nohal would know for sure.



The last portion of the VDR text file is still of interest though.


Håkan
Hakan is offline   Reply With Quote
Old 07-02-2021, 06:48   #11
Registered User

Join Date: Feb 2021
Location: Denmark
Boat: Luffe 40 12M
Posts: 8
Re: opencpn crash on rpi4 after 2 min (Solved)

hello
No crash on the RPI4 now after i config my GPS antenna
I have RMC, VTG and GGA on and the opencpn is working.
Many thanks for the help.
Søren
evitad48 is offline   Reply With Quote
Old 07-02-2021, 07:46   #12
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: opencpn crash on rpi4 after 2 min (usb error?)

We would still like to have a look at the recording making OpenCPN crash.
nohal is offline   Reply With Quote
Old 07-02-2021, 07:58   #13
Registered User

Join Date: Feb 2021
Location: Denmark
Boat: Luffe 40 12M
Posts: 8
Re: opencpn crash on rpi4 after 2 min (usb error?)

Hello Nohal
I only have the picture of the nmea data, i treid to copy text but crash
Søren
evitad48 is offline   Reply With Quote
Old 07-02-2021, 08:14   #14
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: opencpn crash on rpi4 after 2 min (usb error?)

Sören..
Take the VDR somename.txt file you have on the desktop? and upload it here. It's probably to big for that so please just rename the file to somename.txt.pdf and upload.


Håkan
Hakan is offline   Reply With Quote
Old 07-02-2021, 08:29   #15
Registered User

Join Date: Feb 2021
Location: Denmark
Boat: Luffe 40 12M
Posts: 8
Re: opencpn crash on rpi4 after 2 min (usb error?)

Sry i did not get the file with
Attached Files
File Type: pdf vdr - Kopi.txt.pdf (45.8 KB, 16 views)
evitad48 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
Yanmar 4JH4-HTE - Hard to restart after 30 min WickedG Engines and Propulsion Systems 29 01-06-2022 00:04
OpenCPN crash after building ocpn_draw_pi priyanka OpenCPN 11 14-02-2020 02:19
Will OpenCPN work on Rpi4 OpenGL ES 3.0 ? NahanniV OpenCPN 13 04-07-2019 05:52
Fuse blowing on GHP 12 linear drive unit after 30 min svensrud Marine Electronics 10 24-07-2016 19:08
opencpn linux mint 13 and GPS USB SKYTRAQ GM 65 Skytraq - chipset Venus 6 USB - NMEA archimede OpenCPN 2 18-02-2013 03:04

Advertise Here


All times are GMT -7. The time now is 06:10.


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.