OpenMarine
OpenCPN 4.8.0 won't start on OpenPlotter 14.4 - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://forum.openmarine.net/forumdisplay.php?fid=4)
+--- Thread: OpenCPN 4.8.0 won't start on OpenPlotter 14.4 (/showthread.php?tid=685)



OpenCPN 4.8.0 won't start on OpenPlotter 14.4 - dorsetjon - 2017-08-15

Hi,

Just upgraded from 13.1 to 14.4 and also ran updates for OpenCPN and Raspbian. Everything seems to be working except OpenCPN. It won't start, or rather the process runs but the window doesn't appear. I tried to start it from the command line but there's no error. Looking at Task Manager I see the OpenCPN process running but there's also a "/sbin/init splash" process launched when I start OpenCPN and this process is consuming 25% CPU.

I don't know what to look at next to fix this so does anyone have any ideas?

Thanks,

Jon


RE: OpenCPN won't start after 14.4 upgrade - dorsetjon - 2017-08-15

I reverted to my backup and upgraded just OpenPlotter and not OpenCPN, but this hasn't changed the version of OpenCPN installed and the same problem happens. 

I also found that I have two different versions of the opencpn executable on the RPi (see below). The one being used is in "/usr/bin" (version 4.8) but if I run the version in "/media/pi/root/usr/bin" (version 4.6.1) then this does start-up properly.

-rwxr-xr-x 1 root root 4808688 Aug 12 03:40 /usr/bin/opencpn
-rwxr-xr-x 1 root root 4784096 Apr  1 04:02 /media/pi/root/usr/bin/opencpn

I've also found that if I try to run OpenCPN (/usr/bin/opencpn) in portable mode (-p) from the terminal then messages are shown as follows:

pi@openplotter:~ $ opencpn -p
22:34:19 BST: 

________
22:34:19 BST: 2017-08-15
22:34:19 BST:  ------- Starting OpenCPN -------
22:34:19 BST: Version 4.8.0 Build 2017-08-11
22:34:19 BST: wxWidgets version: wxWidgets 3.0.0 Linux 32 bit wxGTK
22:34:19 BST: MemoryStatus:  mem_total: 923 mb,  mem_initial: 23 mb
22:34:19 BST: SData_Locn is /usr/bin/
22:34:19 BST: PrivateDataDir is /usr/bin/
22:34:19 BST: Creating new Config_File: /usr/bin/opencpn.conf
22:34:19 BST: Switch InlandEcdis mode Off
22:34:19 BST: Setting Viewpoint Lat/Lon 33.358, -79.282
22:34:19 BST: Setting Ownship Lat/Lon 33.358, -79.282
22:34:19 BST: No styles found at: /usr/bin/uidata/
22:34:19 BST: No styles found at: /usr/bin/
22:34:19 BST: No styles found at: /usr/bin/.opencpn/
22:34:19 BST: The requested style was not found: 
22:34:19 BST: Using SVG Icons
22:34:19 BST: The requested style was not found: Traditional

And if I run "sudo opencpn -p" then the following is displayed in a pop-up window:

Failed to initialize the user interface. OpenCPN cannot start. The necessary configuration files were not found. See the log file at /usr/bin/opencpn.log for details.

The contents of /usr/bin/opencpn.log are the same as what I pasted above from running opencpn -p.

Do these messages show what the problem is? Can anyone make sense of this and let me know what I should do? Should I simply copy /media/pi/root/usr/bin/opencpn to /usr/bin/opencpn or is a config change required or should more files be copied?!

Jon


RE: OpenCPN won't start after 14.4 upgrade - dorsetjon - 2017-09-02

I've now upgraded to OpenPlotter 15.0 and this problem still occurs with the same error messages. But now the only OpenCPN executable is the one that won't start in /usr/bin (the one in (/media/pi/root/usr/bin has gone) so I don't have an option to run OpenCPN. Can anyone help with this?


RE: OpenCPN 4.8.0 won't start on OpenPlotter 14.4 - Sailoog - 2017-09-04

Do not launch opencpn as sudo.

What error do you get if you start from terminal doing just "opencpn"?

Have you set your system as opengl?

please copy here your opencpn log file


RE: OpenCPN 4.8.0 won't start on OpenPlotter 14.4 - dorsetjon - 2017-09-04

Sailoog,

Thanks for the reply. I don't normally start OpenCPN as sudo and did this just to see if that helped.

Unfortunately there is no error displayed when I launch OpenCPN, either from terminal or using the deskptop link. The opencpn process starts and consumes high cpu (seems to be 100% CPU on one core) but the window never appears. The only time time an error message is displayed (or anything written to a log - see the log contents in my earlier post) is when I run opencpn as sudo or using the -p parameter. Of course, I don't know if these errors are the reason why the opencpn window isn't visible or are unrelated issues caused by running opencpn as sudo or with -p.

The issue started after I upgraded OpenCPN to 4.8.0 and OpenPlotter to 14.4 - I don't know which upgrade caused the problem. I haven't intentionally set the system to use opengl - I don't know how to do this so assume opengl isn't enabled, but can you let me know how to check this please and I'll make sure opengl is turned off?

Thanks,

Jon


RE: OpenCPN 4.8.0 won't start on OpenPlotter 14.4 - Sailoog - 2017-09-08

I mean the log file in /home/pi/.opencpn/opencpn.log

In case a setting is crashing opencpn try to delete the entire folder /home/pi/.opencpn/ to simulate a fresh install


RE: OpenCPN 4.8.0 won't start on OpenPlotter 14.4 - dorsetjon - 2017-09-12

I deleted /home/pi/.opencpn/ but the problem still occurs.

I also ticked the "OpenCPN", "noOpenGL" and "fullscreen" checkboxes on the OpenPlotter "Startup" tab but OpenCPN wasn't visible after a reboot and the opencpn process was spinning.

I've upgraded OpenPlotter to 0.15.1 beta and also re-ran the OpenCPN update but those haven't helped.

Here is the output from the log file. Let me know if you want the log file's output from the last time OpenCPN started properly.

________
17:54:29 BST: 2017-09-12
17:54:29 BST: ------- Starting OpenCPN -------
17:54:29 BST: Version 4.8.0 Build 2017-08-11
17:54:30 BST: wxWidgets version: wxWidgets 3.0.0 Linux 32 bit wxGTK
17:54:30 BST: MemoryStatus: mem_total: 923 mb, mem_initial: 23 mb
17:54:30 BST: SData_Locn is /usr/share/opencpn/
17:54:30 BST: PrivateDataDir is /home/pi/.opencpn
17:54:30 BST: Using existing Config_File: /home/pi/.opencpn/opencpn.conf
17:54:30 BST: Switch InlandEcdis mode Off
17:54:30 BST: Setting Viewpoint Lat/Lon 50.598, -2.4518
17:54:30 BST: Setting Ownship Lat/Lon 50.598, -2.4518
17:54:30 BST: Styles loading from /usr/share/opencpn/uidata/styles.xml
17:54:30 BST: No styles found at: /home/pi/
17:54:30 BST: No styles found at: /home/pi/.opencpn/
17:54:30 BST: Using SVG Icons
17:54:30 BST: Detected display size (horizontal): 100 mm
17:54:30 BST: Getting DefaultSystemLocale...
17:54:30 BST: System default Language: en_US
17:54:30 BST: Config file language: en_US
17:54:30 BST: Adjusted App language: en_US
17:54:30 BST: Opencpn language load for: en_US
17:54:30 BST: Loading catalog for opencpn core.
17:54:30 BST: Getting DefaultSystemLocale...
17:54:30 BST: Opencpn language set to: en_US


RE: OpenCPN 4.8.0 won't start on OpenPlotter 14.4 - Sailoog - 2017-09-12

I am running out of resources here. No errors on terminal, no errors on log, no plugins or settings issue... This is quite strange.
Wait... are you sure you are running a raspberry 2 or 3? opencpn does not work on raspberry 1 and raspberry 0.

Could I suggest to recover the system to back to v0.10.0 and make an update to the current version? Are you using oeSENC charts?


RE: OpenCPN 4.8.0 won't start on OpenPlotter 14.4 - dorsetjon - 2017-09-12

Yes, running a raspberry 3 and it worked fine for a few months until I upgraded to OpenCPN 4.8 and then it stopped working. I'm not using oeSENC charts.

To recover back to 0.10.0 do I have to do a fresh install, that is delete everything and start again or is there a way I can keep my OpenPlotter setup (everything I've setup in USB Manager and NMEA 0183 in OpenPlotter)?


RE: OpenCPN 4.8.0 won't start on OpenPlotter 14.4 - Sailoog - 2017-09-13

Recovering means deleting everything but you can copy your current config files and restore them after update 0.10.0 to the last version (today 0.15.1).
You need copy of:

file
/home/pi/.kplex.conf
folder
/home/pi/.openplotter