2023-02-12, 07:22 AM
2023-02-12, 11:00 AM
what for?
2023-05-30, 01:00 PM
Not 100% what the OP was after, but I have discovered an issue that would fit fine under this heading.
Both with the 64bit and 32bit version I have the problem that OpenCPN freezes up when launched, more or less out of the box (after the installs obviously...).
OpenCPN and the SignalK "node" process share all the available CPU time when that happens. Killing OpenCPN *and* node resolves the problem.
Upon re-launch OpenCPN offers to run with plugins disabled. The problem is clearly triggered by the Dashboard.
I'd like to use the Dashboard. Is there a way to configure this to work? I guess there is.
Both with the 64bit and 32bit version I have the problem that OpenCPN freezes up when launched, more or less out of the box (after the installs obviously...).
OpenCPN and the SignalK "node" process share all the available CPU time when that happens. Killing OpenCPN *and* node resolves the problem.
Upon re-launch OpenCPN offers to run with plugins disabled. The problem is clearly triggered by the Dashboard.
I'd like to use the Dashboard. Is there a way to configure this to work? I guess there is.
2023-07-04, 06:20 PM
I think I have the same issue and try to discribe it a little bit more:
When I run OpenCPN 5.6.2 and the Dashboard Plugin is activatet it will freeze after same minutes. I can close it only with a top kill.
System Informations:
When I run OpenCPN 5.6.2 and the Dashboard Plugin is activatet it will freeze after same minutes. I can close it only with a top kill.
Code:
pi@openplotter:~ $ opencpn
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_headpho.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_headpho.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib conf.c:5200:(snd_config_expand) Unknown parameters {AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 0}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
18:01:54: Debug: Device: 0: bcm2835 Headphones: - (hw:0,0)
18:01:54: Debug: Device: 1: sysdefault
18:01:54: Debug: Device: 2: lavrate
18:01:54: Debug: Device: 3: samplerate
18:01:54: Debug: Device: 4: speexrate
18:01:54: Debug: Device: 5: pulse
18:01:54: Debug: Device: 6: upmix
18:01:54: Debug: Device: 7: vdownmix
18:01:54: Debug: Device: 8: dmix
18:01:54: Debug: Device: 9: default
18:01:54: Debug: Device: 0: bcm2835 Headphones: - (hw:0,0)
18:01:54: Debug: Device: 1: sysdefault
18:01:54: Debug: Device: 2: lavrate
18:01:54: Debug: Device: 3: samplerate
18:01:54: Debug: Device: 4: speexrate
18:01:54: Debug: Device: 5: pulse
18:01:54: Debug: Device: 6: upmix
18:01:54: Debug: Device: 7: vdownmix
18:01:54: Debug: Device: 8: dmix
18:01:54: Debug: Device: 9: default
18:01:54: Debug: Device: 0: bcm2835 Headphones: - (hw:0,0)
18:01:54: Debug: Device: 1: sysdefault
18:01:54: Debug: Device: 2: lavrate
18:01:54: Debug: Device: 3: samplerate
18:01:54: Debug: Device: 4: speexrate
18:01:54: Debug: Device: 5: pulse
18:01:54: Debug: Device: 6: upmix
18:01:54: Debug: Device: 7: vdownmix
18:01:54: Debug: Device: 8: dmix
18:01:54: Debug: Device: 9: default
18:01:54: Debug: Device: 0: bcm2835 Headphones: - (hw:0,0)
18:01:54: Debug: Device: 1: sysdefault
18:01:54: Debug: Device: 2: lavrate
18:01:54: Debug: Device: 3: samplerate
18:01:54: Debug: Device: 4: speexrate
18:01:54: Debug: Device: 5: pulse
18:01:54: Debug: Device: 6: upmix
18:01:54: Debug: Device: 7: vdownmix
18:01:54: Debug: Device: 8: dmix
18:01:54: Debug: Device: 9: default
100
System Informations:
- OpenPlotter app version: 3.6.
- Raspberry Pi model 4 Image on a SSD
- OpenCPN Version 5.6.2, only Dashboard Plugin aktivated
- 64 bit
- Connected devices: GPS, RS 422 Adapter,
2023-07-04, 06:54 PM
Is there any useful information in the OpenCPN log?
Code:
tail -50 ~/.opencpn/opencpn.log
2023-07-05, 04:06 PM
(2023-07-04, 06:54 PM)baltika_no_9 Wrote: [ -> ]Is there any useful information in the OpenCPN log?
Code:tail -50 ~/.opencpn/opencpn.log
Oh hey @baltika_no_9 you are eager . I think the log is not realy useful:
Code:
pi@openplotter:~ $ tail -50 ~/.opencpn/opencpn.log
15:59:09.539 INFO pluginmanager.cpp:2540 PlugInManager: /usr/lib/opencpn/libchartdldr_pi.so
15:59:09.540 INFO pluginmanager.cpp:2541 Plugin common name: ChartDownloader
15:59:09.540 INFO pluginmanager.cpp:2543 API Version detected: 113
15:59:09.540 INFO pluginmanager.cpp:2544 PlugIn Version detected: 1.4
15:59:09.541 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libdashboard_pi.so
15:59:09.541 MESSAGE pluginmanager.cpp:2225 Plugin is compatible by elf library scan: true
15:59:09.541 MESSAGE pluginmanager.cpp:2364 PlugInManager: Loading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
15:59:09.548 INFO pluginmanager.cpp:2540 PlugInManager: /usr/lib/opencpn/libdashboard_pi.so
15:59:09.548 INFO pluginmanager.cpp:2541 Plugin common name: Dashboard
15:59:09.548 INFO pluginmanager.cpp:2543 API Version detected: 106
15:59:09.548 INFO pluginmanager.cpp:2544 PlugIn Version detected: 1.2
15:59:09.550 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libgrib_pi.so
15:59:09.550 MESSAGE pluginmanager.cpp:2225 Plugin is compatible by elf library scan: true
15:59:09.550 MESSAGE pluginmanager.cpp:2364 PlugInManager: Loading PlugIn: /usr/lib/opencpn/libgrib_pi.so
15:59:09.558 INFO pluginmanager.cpp:2540 PlugInManager: /usr/lib/opencpn/libgrib_pi.so
15:59:09.558 INFO pluginmanager.cpp:2541 Plugin common name: GRIB
15:59:09.558 INFO pluginmanager.cpp:2543 API Version detected: 116
15:59:09.558 INFO pluginmanager.cpp:2544 PlugIn Version detected: 4.1
15:59:09.559 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libwmm_pi.so
15:59:09.560 MESSAGE pluginmanager.cpp:2225 Plugin is compatible by elf library scan: true
15:59:09.560 MESSAGE pluginmanager.cpp:2364 PlugInManager: Loading PlugIn: /usr/lib/opencpn/libwmm_pi.so
15:59:09.566 INFO pluginmanager.cpp:2540 PlugInManager: /usr/lib/opencpn/libwmm_pi.so
15:59:09.566 INFO pluginmanager.cpp:2541 Plugin common name: WMM
15:59:09.566 INFO pluginmanager.cpp:2543 API Version detected: 108
15:59:09.566 INFO pluginmanager.cpp:2544 PlugIn Version detected: 1.1
15:59:09.568 MESSAGE OCPNPlatform.cpp:1033 ChangeLocale: Language load for:
15:59:09.590 MESSAGE OCPNPlatform.cpp:1086 ChangeLocale: Locale Init OK for:
15:59:09.590 MESSAGE OCPNPlatform.cpp:1111 Loading catalog for opencpn core.
15:59:09.611 MESSAGE OCPNPlatform.cpp:952 Getting DefaultSystemLocale...
15:59:09.611 MESSAGE pluginmanager.cpp:1091 Loading plugins from dir: /usr/lib/opencpn
15:59:09.611 MESSAGE pluginmanager.cpp:1121 PlugInManager searching for PlugIns in location /usr/lib/opencpn
15:59:09.612 MESSAGE pluginmanager.cpp:1159 Found 4 candidates
15:59:09.612 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libchartdldr_pi.so
15:59:09.612 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libdashboard_pi.so
15:59:09.612 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libgrib_pi.so
15:59:09.612 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libwmm_pi.so
15:59:09.613 MESSAGE OCPNPlatform.cpp:1033 ChangeLocale: Language load for:
15:59:09.630 MESSAGE OCPNPlatform.cpp:1086 ChangeLocale: Locale Init OK for:
15:59:09.630 MESSAGE OCPNPlatform.cpp:1111 Loading catalog for opencpn core.
15:59:09.644 MESSAGE OCPNPlatform.cpp:952 Getting DefaultSystemLocale...
15:59:17.090 MESSAGE pluginmanager.cpp:2364 PlugInManager: Loading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
15:59:17.096 INFO pluginmanager.cpp:2540 PlugInManager: /usr/lib/opencpn/libdashboard_pi.so
15:59:17.096 INFO pluginmanager.cpp:2541 Plugin common name: Dashboard
15:59:17.096 INFO pluginmanager.cpp:2543 API Version detected: 106
15:59:17.096 INFO pluginmanager.cpp:2544 PlugIn Version detected: 1.2
15:59:17.096 MESSAGE pluginmanager.cpp:1539 PlugInManager: Initializing PlugIn: /usr/lib/opencpn/libdashboard_pi.so
15:59:29.059 MESSAGE chcanv.cpp:2376 Metrics: m_display_size_mm: 271 g_Platform->getDisplaySize(): 1024:768
15:59:29.059 MESSAGE chcanv.cpp:2381 wxDisplaySize(): 1024 768
15:59:29.059 MESSAGE chcanv.cpp:2376 Metrics: m_display_size_mm: 271 g_Platform->getDisplaySize(): 1024:768
15:59:29.059 MESSAGE chcanv.cpp:2381 wxDisplaySize(): 1024 768
pi@openplotter:~ $
2023-07-05, 05:15 PM
Yes nothing obvious there, is that the log after it has crashed because I can't see in the log where it closes.
As an aside, if you go to Options>User Interface, what Language do you have selected in the top box?
As an aside, if you go to Options>User Interface, what Language do you have selected in the top box?
2023-07-05, 06:58 PM
(2023-07-05, 05:15 PM)baltika_no_9 Wrote: [ -> ]Yes nothing obvious there, is that the log after it has crashed because I can't see in the log where it closes.
As an aside, if you go to Options>User Interface, what Language do you have selected in the top box?
Yes that´s after the freeze.
The Language field is emty (see screenshot).
[attachment=2374]
Now I changed the language to english. But it crash again.
Code:
pi@openplotter:~ $ tail -50 ~/.opencpn/opencpn.log
19:01:43.067 MESSAGE pluginmanager.cpp:1091 Loading plugins from dir: /home/pi/.local/lib/opencpn
19:01:43.067 MESSAGE pluginmanager.cpp:1121 PlugInManager searching for PlugIns in location /home/pi/.local/lib/opencpn
19:01:43.067 MESSAGE pluginmanager.cpp:1159 Found 0 candidates
19:01:43.068 MESSAGE OCPNPlatform.cpp:1033 ChangeLocale: Language load for: en_GB
19:01:43.068 MESSAGE OCPNPlatform.cpp:1086 ChangeLocale: Locale Init OK for: en_GB
19:01:43.068 MESSAGE OCPNPlatform.cpp:1111 Loading catalog for opencpn core.
19:01:43.069 MESSAGE OCPNPlatform.cpp:952 Getting DefaultSystemLocale...
19:01:43.069 MESSAGE pluginmanager.cpp:1091 Loading plugins from dir: /usr/local/lib/opencpn
19:01:43.069 MESSAGE pluginmanager.cpp:1121 PlugInManager searching for PlugIns in location /usr/local/lib/opencpn
19:01:43.069 MESSAGE pluginmanager.cpp:1135 Directory /usr/local/lib/opencpn does not exist.
19:01:43.069 MESSAGE pluginmanager.cpp:1091 Loading plugins from dir: /usr/lib/opencpn
19:01:43.069 MESSAGE pluginmanager.cpp:1121 PlugInManager searching for PlugIns in location /usr/lib/opencpn
19:01:43.069 MESSAGE pluginmanager.cpp:1159 Found 4 candidates
19:01:43.069 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libchartdldr_pi.so
19:01:43.070 MESSAGE pluginmanager.cpp:1219 Skipping not enabled candidate.
19:01:43.070 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libdashboard_pi.so
19:01:43.070 ERROR pluginmanager.cpp:1984 Could not open file "opencpn" for reading with errno = 2.
19:01:43.070 MESSAGE pluginmanager.cpp:2225 Plugin is compatible by elf library scan: true
19:01:43.070 MESSAGE pluginmanager.cpp:2364 PlugInManager: Loading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
19:01:43.075 INFO pluginmanager.cpp:2540 PlugInManager: /usr/lib/opencpn/libdashboard_pi.so
19:01:43.075 INFO pluginmanager.cpp:2541 Plugin common name: Dashboard
19:01:43.075 INFO pluginmanager.cpp:2543 API Version detected: 106
19:01:43.075 INFO pluginmanager.cpp:2544 PlugIn Version detected: 1.2
19:01:43.109 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libgrib_pi.so
19:01:43.109 MESSAGE pluginmanager.cpp:1219 Skipping not enabled candidate.
19:01:43.109 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libwmm_pi.so
19:01:43.109 MESSAGE pluginmanager.cpp:1219 Skipping not enabled candidate.
19:01:43.110 MESSAGE OCPNPlatform.cpp:1033 ChangeLocale: Language load for: en_GB
19:01:43.110 MESSAGE OCPNPlatform.cpp:1086 ChangeLocale: Locale Init OK for: en_GB
19:01:43.111 MESSAGE OCPNPlatform.cpp:1106 Loaded translation catalog for: opencpn-dashboard_pi
19:01:43.111 MESSAGE OCPNPlatform.cpp:1111 Loading catalog for opencpn core.
19:01:43.111 MESSAGE OCPNPlatform.cpp:952 Getting DefaultSystemLocale...
19:01:43.111 MESSAGE pluginmanager.cpp:1091 Loading plugins from dir: /usr/lib/opencpn
19:01:43.111 MESSAGE pluginmanager.cpp:1121 PlugInManager searching for PlugIns in location /usr/lib/opencpn
19:01:43.112 MESSAGE pluginmanager.cpp:1159 Found 4 candidates
19:01:43.112 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libchartdldr_pi.so
19:01:43.112 MESSAGE pluginmanager.cpp:1219 Skipping not enabled candidate.
19:01:43.112 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libdashboard_pi.so
19:01:43.112 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libgrib_pi.so
19:01:43.112 MESSAGE pluginmanager.cpp:1219 Skipping not enabled candidate.
19:01:43.112 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: /usr/lib/opencpn/libwmm_pi.so
19:01:43.112 MESSAGE pluginmanager.cpp:1219 Skipping not enabled candidate.
19:01:43.113 MESSAGE OCPNPlatform.cpp:1033 ChangeLocale: Language load for: en_GB
19:01:43.113 MESSAGE OCPNPlatform.cpp:1086 ChangeLocale: Locale Init OK for: en_GB
19:01:43.114 MESSAGE OCPNPlatform.cpp:1106 Loaded translation catalog for: opencpn-dashboard_pi
19:01:43.114 MESSAGE OCPNPlatform.cpp:1111 Loading catalog for opencpn core.
19:01:43.114 MESSAGE OCPNPlatform.cpp:952 Getting DefaultSystemLocale...
19:01:43.333 MESSAGE chart1.cpp:6733 OnInitTimer...3
19:01:43.434 MESSAGE chart1.cpp:6733 OnInitTimer...4
19:01:44.545 MESSAGE options.cpp:6730 options: got device count: 10
pi@openplotter:~ $
2023-07-05, 08:09 PM
I regret I am at a bit of a loss to help you as I can't replicate your problem.
What if you disable the dashboard plugin, close down OpenCPN then start it. Without the dashboard enabled is it stable with no freezing?
If it's stable then enable dashboard (but don't start it from the task bar), again close down and restart, is it stable then?
Now select the dashboard to display it, is this when it fails?
Have you tried with and without OpenGL? (Options>Advanced, Graphics radio button)
If you open a terminal and run htop while the freeze is happening what does the CPU/memory consumption look like?
What if you disable the dashboard plugin, close down OpenCPN then start it. Without the dashboard enabled is it stable with no freezing?
If it's stable then enable dashboard (but don't start it from the task bar), again close down and restart, is it stable then?
Now select the dashboard to display it, is this when it fails?
Have you tried with and without OpenGL? (Options>Advanced, Graphics radio button)
If you open a terminal and run htop while the freeze is happening what does the CPU/memory consumption look like?
2023-07-08, 08:24 AM
(2023-07-05, 08:09 PM)baltika_no_9 Wrote: [ -> ]I regret I am at a bit of a loss to help you as I can't replicate your problem.
What if you disable the dashboard plugin, close down OpenCPN then start it. Without the dashboard enabled is it stable with no freezing?
If it's stable then enable dashboard (but don't start it from the task bar), again close down and restart, is it stable then?
Now select the dashboard to display it, is this when it fails?
Have you tried with and without OpenGL? (Options>Advanced, Graphics radio button)
If you open a terminal and run htop while the freeze is happening what does the CPU/memory consumption look like?
The short answer is: the "Flatpack Version: 5.8.4" Version it works.
Only the "Debian/Ubuntu Version: 5.6.2" version freezes.
(2023-07-05, 08:09 PM)baltika_no_9 Wrote: [ -> ]What if you disable the dashboard plugin, close down OpenCPN then start it. Without the dashboard enabled is it stable with no freezing?Without any plugin it isn´t stable. So it´s a generally OpenCPN problem, no dashboard problem.
Quote:Have you tried with and without OpenGL? (Options>Advanced, Graphics radio button)Yes, with boath options the same problem.
Quote:If you open a terminal and run htop while the freeze is happening what does the CPU/memory consumption look like?memory is still low. Look at the screenshot:
[attachment=2380]