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 19-09-2012, 04:40   #1
Registered User

Join Date: Jul 2011
Posts: 19
Raspberry Pi and OpenCPN 3.1.915

I am playing with Raspberry Pi as it looks ideal to run OpenCPN on.
I was able to compile OpenCPN R3.1.95 (latest stable downloaded from the website).
When I run OpenCPN, I come to the welcome screen, then on OK I go to the next screen which informs me no charts have been installed (indeed). Then it crashes (so before I can do anything else).
I have doubled the swap space but no change.

Any good Ideas?
spillemw is offline   Reply With Quote
Old 19-09-2012, 05:51   #2
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: Raspberry Pi and OpenCPN 3.1.915

Latest stable is 3.0.2
3.1.915 is a beta version. 3.1.919 was just released to (hopefully) address issue with options dialog

You should give it a try ;-)

Regards,
Jean-Eudes
SethDart is offline   Reply With Quote
Old 19-09-2012, 10:22   #3
Registered User

Join Date: Jul 2011
Posts: 19
Re: Raspberry Pi and OpenCPN 3.1.915

I downloaded the source for 3.1.919 and now i cannot compile anymore (make gives an error). :-(
spillemw is offline   Reply With Quote
Old 19-09-2012, 12:54   #4
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: Raspberry Pi and OpenCPN 3.1.915

Well, we need more info to help you. What error? Can you copy the output?
SethDart is offline   Reply With Quote
Old 19-09-2012, 17:34   #5
Registered User

Join Date: Sep 2011
Posts: 208
Which distribution did you use? I had trouble with the early wheezy ones, but on the latest Raspian with hard float it compiled fine, ran OK ( still sluggish), but failed on processing vector charts. Now that sailing season is starting to wane here in Minnesota, I'm planning on spending some more time trying to get it to work again, and I'd be interested in hearing if anyone else have managed to get it running. .
monstads is offline   Reply With Quote
Old 19-09-2012, 22:48   #6
Registered User

Join Date: Jul 2011
Posts: 19
Re: Raspberry Pi and OpenCPN 3.1.915

I rebooted this morning and lo! it compiled with warnings (see below). However, it failed to run again, crashing still after telling me no charts had been installed.
When I ran it with option unit_test_1 (I accidentally saw that option), it returned "Segmentation error".

My logfile shows it crashes immediately after detection of the empty CHARTS array. No conf file is created. When i use a conf file from a working version, the program does detect it, but even though the charts string is populated in that conf file, the program still comes complaining no charts have been installed.



--------
OUTPUT FROM MAKE
--------
[ 6%] Built target GARMINHOST
[ 16%] Built target NMEA0183
[ 35%] Built target S57ENC
[ 35%] i18n: Done.
[ 44%] Built target i18n
[ 44%] Building CXX object CMakeFiles/opencpn.dir/src/chart1.cpp.o
[ 44%] Building CXX object CMakeFiles/opencpn.dir/src/chcanv.cpp.o
/home/wilfried/OpenCPN/src/chcanv.cpp: In member function ‘void ChartCanvas::OnKeyDown(wxKeyEvent&)’:
/home/wilfried/OpenCPN/src/chcanv.cpp:3877:24: warning: case label value is less than minimum value for type [enabled by default]
/home/wilfried/OpenCPN/src/chcanv.cpp:3879:24: warning: case label value is less than minimum value for type [enabled by default]
/home/wilfried/OpenCPN/src/chcanv.cpp:3886:24: warning: case label value is less than minimum value for type [enabled by default]
/home/wilfried/OpenCPN/src/chcanv.cpp:3896:19: warning: case label value is less than minimum value for type [enabled by default]
/home/wilfried/OpenCPN/src/chcanv.cpp:3904:19: warning: case label value is less than minimum value for type [enabled by default]
/home/wilfried/OpenCPN/src/chcanv.cpp:3905:19: warning: case label value is less than minimum value for type [enabled by default]
/home/wilfried/OpenCPN/src/chcanv.cpp:3989:15: warning: case label value is less than minimum value for type [enabled by default]


[ 46%] Building CXX object CMakeFiles/opencpn.dir/src/concanv.cpp.o
[ 47%] Building CXX object CMakeFiles/opencpn.dir/src/navutil.cpp.o

[ 47%] Building CXX object CMakeFiles/opencpn.dir/src/routeman.cpp.o
[ 47%] Building CXX object CMakeFiles/opencpn.dir/src/options.cpp.o
[ 47%] Building CXX object CMakeFiles/opencpn.dir/src/about.cpp.o
[ 48%] Building CXX object CMakeFiles/opencpn.dir/src/ais.cpp.o
[ 48%] Building CXX object CMakeFiles/opencpn.dir/src/pluginmanager.cpp.o
Linking CXX executable opencpn
[ 60%] Built target opencpn
[ 60%] dashboard-i18n: Done.
[ 69%] Built target dashboard-i18n
[ 87%] Built target dashboard_pi
[ 88%] grib-i18n: Done.
[ 96%] Built target grib-i18n
[100%] Built target grib_pi
spillemw is offline   Reply With Quote
Old 19-09-2012, 22:52   #7
Registered User

Join Date: Jul 2011
Posts: 19
Re: Raspberry Pi and OpenCPN 3.1.915

I found an obvious error : even though i compiled it now, the version is still 3.1.915
Probably because "sudo apt-get remove opencpn" could not find the package. Not sure if i could just remove the binary from /usr/local/bin ???
spillemw is offline   Reply With Quote
Old 19-09-2012, 23:44   #8
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: Raspberry Pi and OpenCPN 3.1.915

The warning above is harmless.

Dis you run make install? What is the output of this command?
SethDart is offline   Reply With Quote
Old 19-09-2012, 23:56   #9
Registered User

Join Date: Jul 2011
Posts: 19
Re: Raspberry Pi and OpenCPN 3.1.915

"make install" did not generate any errors.
BUT, I have just rebooted my pi and - behold - suddenly i do have version 3.1.919 and I am surviving the crash place.
I have now added my charts and the system is building the database (the charts are on a USB2 device attached, so that is not so smart probably, but they do not fit on my 4 GB SD card - i need to buy an 8 GB one if the Pi supports that).
Now the crash comes when the system is building the chart database.
spillemw is offline   Reply With Quote
Old 20-09-2012, 00:47   #10
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: Raspberry Pi and OpenCPN 3.1.915

logs?
SethDart is offline   Reply With Quote
Old 20-09-2012, 10:55   #11
Registered User

Join Date: Jul 2011
Posts: 19
Re: Raspberry Pi and OpenCPN 3.1.915

I finally made it work. The system didnt like it that the charts were on an external USB drive, so I copied them to the SD card.
OpenCPN works, but I find it far too slow to be of use.
I guess the specs of the PI are just not yet good enough to run OpenCPN.
But it is a great little thing to use as a backup server, DHCP server etc. etc.
spillemw is offline   Reply With Quote
Old 20-09-2012, 17:35   #12
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: Raspberry Pi and OpenCPN 3.1.915

Did you try this:

Introducing turbo mode: up to 50% more performance for free | Raspberry Pi

Claims a 50% performance boost
NahanniV is offline   Reply With Quote
Old 20-09-2012, 22:50   #13
Registered User

Join Date: Jul 2011
Posts: 19
Re: Raspberry Pi and OpenCPN 3.1.915

The overclocking is indeed impressive. I used the highest speed and OpenCPN is now a little slow, but workable.
It has impressive results on overall Pi performance of course. Where it was rather painful to even open the browser in X, it now works smoothly.
For those who want to try it, too, the command "sudo apt-get update && sudo apt-get upgrade" will actually upgrade everything EXCEPT the raspi-config you need. :-)
So you need to start raspi-config and upgrade that separately (or sudo apt-get upgrade raspi-config might do that, too).
spillemw is offline   Reply With Quote
Old 20-09-2012, 22:54   #14
Registered User

Join Date: Jul 2011
Posts: 19
Re: Raspberry Pi and OpenCPN 3.1.915

Quote:
Originally Posted by SethDart View Post
logs?
Now that i have turbo mode installed, I thought I'd retry to have the charts on the USB disk. However, i turns out not to be a performance issue of the Pi.
OpenCPN crashes a short time into trying to read the charts. The opencpn log does not tell me much :

07:45:06 CEST: Chart cache purge
07:45:06 CEST: Initializing Chart /mnt/backup_3_intenso/CHARTS/CM93/00300000/A/00300000.A
07:45:06 CEST: CM93Composite Chart Root is /mnt/backup_3_intenso/CHARTS/CM93/
07:45:06 CEST: Loaded CM93 Dictionary from /mnt/backup_3_intenso/CHARTS/CM93/
07:45:06 CEST: Loading CM93 cell /mnt/backup_3_intenso/CHARTS/CM93/03901020/A/03901020.A

But dmesg tells me the following :
[ 2562.309757] Alignment trap: not handling instruction edd37a00 at [<002e7ec4>]
[ 2562.309780] Unhandled fault: alignment exception (0x011) at 0x023a5aeb

I believe the dmesg message is related to this crash, so I am guessing at a bug in Pi (not sure, I am not that much of a linux expert).

I should add that the filesystem on the USB drive is EXT4. Anyone knows if Pi has an issue with that?
spillemw is offline   Reply With Quote
Old 21-09-2012, 01:36   #15
Registered User

Join Date: Jul 2011
Posts: 19
Re: Raspberry Pi and OpenCPN 3.1.915

I did some websearching and it seems that the error message i get in dmesg when running the charts from a USB drive is NOT a bug in Raspberry Pi but it is due to OpenCPN for some reason.
It could be the charts themselves as i do not have the 2011 version. A link to these would also be appreciated.
spillemw is offline   Reply With Quote
Reply

Tags
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


Advertise Here


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


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.