Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-01-2016, 08:48   #136
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,144
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
What do you have in the log file? Did you build with wx 2.8 or 3.0? Can you try with 2.8 and see if the result is the same?
Built with wxWidgets3.0.2
CubieTruck OpenCPN logfile shows a bunch of can't find SVG files (looking into that) and Opencpn initialized in 9045ms.
Also see my update, to the message you quoted, things get better after caching;
Should the caching be required/forced for this type of system?

Quote:
Originally Posted by boat_alexandra View Post
Slower than before or slower than without opengl. I"m guessing the FBO isn't working. My latest patch (which isn't merged) for raspberry pi gives good performance for cm93 and should in theory work on the cubie truck.
Let me try and quantify that, I may have been judging it relative to the Raster performance which I had not been able to use for a while.
I will do some more testing soon.
That it is Working is most important!

Quote:
Originally Posted by boat_alexandra View Post
I quickly run out of texture memory with compression off on only 1280x800 resolution.
Is this comment related to my problem with the OOM Killer on the TK1 or EGL_BAD_ALLOC ?
Can the problem be fixed ? Or do I need to lower the resolution ?

Cheers,
JM.
__________________

__________________
NahanniV is offline   Reply With Quote
Old 04-01-2016, 09:48   #137
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,813
Re: OpenCPN on Raspberry Pi2

I can dramatically reduce the texture memory needed, but not until after version 4.2

Can you see if there are issues with black screens with wx 2.8?
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 04-01-2016, 09:53   #138
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,144
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
I can dramatically reduce the texture memory needed, but not until after version 4.2

Can you see if there are issues with black screens with wx 2.8?
I will try it with wx 2.8, but I'm not exactly sure how to do that ?

Do I just disable newer versions using Synaptic package manager ?

Thanks,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 04-01-2016, 12:33   #139
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,144
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
I can dramatically reduce the texture memory needed, but not until after version 4.2

Can you see if there are issues with black screens with wx 2.8?
After building the texture cache, the only time I see black or garbled screens is: at startup (about10S), on exit (about3S), and when the screen size changes (like when going full screen).

CM93 is always less than 10FPS often 2-4.

Raster charts are always >10 FPS sometimes as high as 150FPS.
But after zooming and panning eventually OpenCPN hangs with 100%cpu use.
OpenCPN is using most of the CPU, rsyslogd the rest.
The system monitor shows 60%RAM usage.
dmesg shows:
Code:
[ 2269.939519] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2270.051067] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2270.122548] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2270.229028] Mali: Memory allocate failed, could not allocate size 1024 kB.
[ 2270.301083] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2270.407513] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2270.474828] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2270.581426] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2270.648047] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2270.754416] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2270.820503] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2270.926960] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2270.993052] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2271.099464] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2271.165498] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2271.271862] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2271.337799] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2271.444197] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2271.510264] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2271.616655] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2271.682682] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2271.789054] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2271.860096] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2271.966797] Mali: Memory allocate failed, could not allocate size 1024 kB.
[ 2272.039665] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2272.150735] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2272.219630] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2272.326208] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2272.392606] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2272.499069] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2272.565122] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2272.672893] Mali: Memory allocate failed, could not allocate size 256 kB.
[ 2272.739031] Mali: Out of memory. Mali memory allocated: 196608 kB  Configured maximum OS memory usage: 196608 kB
[ 2272.846406] Mali: Memory allocate failed, could not allocate size 256 kB.
aruntu@aruntu:~$
I think this is the same scenario where the OOM killer kicks in on my TK1.
__________________
NahanniV is offline   Reply With Quote
Old 04-01-2016, 22:03   #140
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,813
Re: OpenCPN on Raspberry Pi2

You should get 30fps for raster and 15-20 for cm93 when panning. Zooming on cm93 can be very slow (1-2fps) in some cases, but hopefully this is fixed soon. I intend to use the android style canvas zooming to improve this...

Can you set the maximum texture memory to 64mb or something and see what happens? To try with wx2.8 I compile wx from source.
__________________
boat_alexandra is offline   Reply With Quote
Old 05-01-2016, 00:25   #141
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,144
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
You should get 30fps for raster and 15-20 for cm93 when panning. Zooming on cm93 can be very slow (1-2fps) in some cases, but hopefully this is fixed soon. I intend to use the android style canvas zooming to improve this...

Can you set the maximum texture memory to 64mb or something and see what happens? To try with wx2.8 I compile wx from source.
Tried GPUTextureMemSize=32 on the TK1 earlier in this thread at BDBCATs request, but it did not resolve the problem.

I will try wx2.8 and smaller texture memory on CubieTruck tomorrow if I can.

Thanks for all the work you have done on this.

Are you in CapeTown now? Or going soon ?
Fair Winds.

JM.
__________________
NahanniV is offline   Reply With Quote
Old 05-01-2016, 12:15   #142
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,144
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
You should get 30fps for raster and 15-20 for cm93 when panning. Zooming on cm93 can be very slow (1-2fps) in some cases, but hopefully this is fixed soon. I intend to use the android style canvas zooming to improve this...

Can you set the maximum texture memory to 64mb or something and see what happens? To try with wx2.8 I compile wx from source.
When I set GPUTextureMemSize=32 on the CubieTruck I don't run out of memory. I also had to set OpenGLExpert=1 to make this work.

I also pulled the latest from GIT.
At first I had a black screen for about ten seconds on startup, then the chart appeared. After a bit of testing that changed so that either the black screen remained until I clicked the screen, or a garbled chart remained until I clicked the screen. It's possible that this started happening after I tried fullscreen mode which did not work correctly.

The black screen on exit seems to be gone, at first I saw the crosshatching during exit, but then later mostly the chart becomes garbled as OpenCPN is exiting. Seems like a mode it gets into, rebooting will not fix it.

With OpenGL=off startup shows a white canvas for 10Sec., no garbled charts, fullscreen works, and shutdown works correctly.

It looks like wx2.8 is installed on my system, is there a way to force OpenCPN to use it ?

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 06-01-2016, 09:26   #143
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,144
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by boat_alexandra View Post
... To try with wx2.8 I compile wx from source.
OK, I compiled wx2.8.12 from source on my CubieTruck.

What now ?
Do I need to hack cmakelists.txt ?

Sorry, I am not sure how to do this.

JM.
__________________
NahanniV is offline   Reply With Quote
Old 06-01-2016, 13:22   #144
Registered User

Join Date: Jun 2015
Posts: 202
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by NahanniV View Post
OK, I compiled wx2.8.12 from source on my CubieTruck.

What now ?
Do I need to hack cmakelists.txt ?

Sorry, I am not sure how to do this.

JM.
Did you run
make install
after compiling wx2.8.12?
If yes:
for finding wx libs cmake is using a program named wx-config
execute in a terminal:
wx-config --version-full
if you're seeing
2.8.12.1
you're set, rerun cmake as usual it will recreate makefile with the right libs.
__________________
did-g is offline   Reply With Quote
Old 06-01-2016, 16:00   #145
Marine Service Provider
 
mackconsult's Avatar

Join Date: Jan 2012
Location: Vancouver, WA
Boat: 18 ft avon
Posts: 214
Re: OpenCPN on Raspberry Pi2

Hello guys. I have a brand new to me raspberry PI 2 that I ordered off amazon right around thanks giving.

Robot Check

Was wondering what to do with it and then ran across this thread. Would love to set this up with openCPN and put in on my Columbia 34 Mark 2. What ever gps antenna works I will install it to make this work. Probably do a good LCD screen on an arm that would swing out into the companion way. I will take the time to read through the thread, and start investigating. Any pointers for a newbie like me would be much appreciated.

I am a heavy Linux user on my home server, and in a past life I used to be a software programmer with HP. I have compiled code, just not in a while.

I am so excited to find this because not having a laptop on the boat has been what I was thinking.

mackconsult is offline   Reply With Quote
Old 06-01-2016, 16:49   #146
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,144
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by did-g View Post
Did you run
make install
after compiling wx2.8.12?
If yes:
for finding wx libs cmake is using a program named wx-config
execute in a terminal:
wx-config --version-full
if you're seeing
2.8.12.1
you're set, rerun cmake as usual it will recreate makefile with the right libs.
Thanks !

That seems to work.

But building OpenCPN with wx2.8 failed:
Code:
[  8%] Building CXX object CMakeFiles/S57ENC.dir/src/s52plib.cpp.o
/usr/bin/c++   -DARMHF -DLINUX_CRASHRPT -DOCPN_HAVE_X11 -DOCPN_USE_PORTAUDIO -DTIXML_USE_STL -DUSE_GARMINHOST -DUSE_GLU_TESS -DUSE_S57 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DocpnUSE_GL -DocpnUSE_GLES -pthread -O3 -DNDEBUG -isystem /usr/local/lib/wx/include/gtk2-ansi-release-2.8 -isystem /usr/local/include/wx-2.8 -I/home/aruntu/OpenCPN/include -I/home/aruntu/OpenCPN/src -I/home/aruntu/OpenCPN/src/wxcurl -I/home/aruntu/OpenCPN/src/nmea0183 -I/home/aruntu/OpenCPN/src/mygdal -I/home/aruntu/OpenCPN/src/garmin/jeeps -I/home/aruntu/OpenCPN/src/texcmp/lz4 -I/home/aruntu/OpenCPN/src/texcmp/squish -I/home/aruntu/OpenCPN/build/CMakeFiles/include    -Wall -Wno-unused -fexceptions -rdynamic  -g -fno-strict-aliasing  -DPREFIX=\"/usr/local\" -o CMakeFiles/S57ENC.dir/src/s52plib.cpp.o -c /home/aruntu/OpenCPN/src/s52plib.cpp
In file included from /home/aruntu/OpenCPN/src/s52plib.cpp:58:0:
/home/aruntu/OpenCPN/include/glChartCanvas.h:66:30: error: invalid use of incomplete type ‘class wxGLCanvas’
 class glChartCanvas : public wxGLCanvas
                              ^
In file included from /home/aruntu/OpenCPN/include/s57chart.h:49:0,
                 from /home/aruntu/OpenCPN/src/s52plib.cpp:41:
/home/aruntu/OpenCPN/include/ocpndc.h:54:7: error: forward declaration of ‘class wxGLCanvas’
 class wxGLCanvas;
       ^
/home/aruntu/OpenCPN/src/s52plib.cpp: In member function ‘int s52plib::S52_load_Plib(const wxString&, bool)’:
/home/aruntu/OpenCPN/src/s52plib.cpp:918:31: warning: format not a string literal and no format arguments [-Wformat-security]
             wxLogMessage( msg );
                               ^
/home/aruntu/OpenCPN/src/s52plib.cpp:930:35: warning: format not a string literal and no format arguments [-Wformat-security]
                 wxLogMessage( msg );
                                   ^
/home/aruntu/OpenCPN/src/s52plib.cpp: In member function ‘bool s52plib::RenderHPGL(ObjRazRules*, Rule*, wxPoint&, ViewPort*, float)’:
/home/aruntu/OpenCPN/src/s52plib.cpp:2237:29: warning: format not a string literal and no format arguments [-Wformat-security]
             wxLogMessage(msg);
                             ^
/home/aruntu/OpenCPN/src/s52plib.cpp: In member function ‘bool RenderFromHPGL::Render(char*, char*, wxPoint&, wxPoint&, double)’:
/home/aruntu/OpenCPN/src/s52plib.cpp:8080:27: warning: format not a string literal and no format arguments [-Wformat-security]
         wxLogWarning( msg );
                           ^
make[2]: *** [CMakeFiles/S57ENC.dir/src/s52plib.cpp.o] Error 1
make[2]: Leaving directory `/home/aruntu/OpenCPN/build'
make[1]: *** [CMakeFiles/S57ENC.dir/all] Error 2
make[1]: Leaving directory `/home/aruntu/OpenCPN/build'
make: *** [all] Error 2
aruntu@aruntu:~/OpenCPN/build$
__________________
NahanniV is offline   Reply With Quote
Old 06-01-2016, 17:03   #147
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 3,540
Re: OpenCPN on Raspberry Pi2

Quote:
Originally Posted by mackconsult View Post
Any pointers for a newbie like me would be much appreciated.
The openplotter image is all you need, easy to VPN into it even without a keyboard or monitor. See this thread..
OpenPlotter project
__________________
conachair is offline   Reply With Quote
Old 06-01-2016, 17:06   #148
Marine Service Provider
 
mackconsult's Avatar

Join Date: Jan 2012
Location: Vancouver, WA
Boat: 18 ft avon
Posts: 214
Re: OpenCPN on Raspberry Pi2

Cool, thanks, Now I know I what to do this winter

Quote:
Originally Posted by conachair View Post
The openplotter image is all you need, easy to VPN into it even without a keyboard or monitor. See this thread..
OpenPlotter project
mackconsult is offline   Reply With Quote
Old 06-01-2016, 17:29   #149
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 883
Re: OpenCPN on Raspberry Pi2

Hi,
I have built a working version of the latest beta of OpenCPN and OCPN_DRAW_PI which will install on a Raspberry PI2 running raspberian (standard OS which comes with NOOBS to install on new PI). You will find them here:
OpenCPN
https://www.dropbox.com/s/c3rcq9ca9w...armhf.deb?dl=0

OCPN_DRAW_PI
https://www.dropbox.com/s/q7qsojfy0r...armhf.deb?dl=0

Jon
__________________
jongough is offline   Reply With Quote
Old 06-01-2016, 17:45   #150
Marine Service Provider
 
mackconsult's Avatar

Join Date: Jan 2012
Location: Vancouver, WA
Boat: 18 ft avon
Posts: 214
Re: OpenCPN on Raspberry Pi2

Thanks, should I use this one then? What's the difference between the OpenCPN and OCNP_DRAW_PI .....

Quote:
Originally Posted by jongough View Post
Hi,
I have built a working version of the latest beta of OpenCPN and OCPN_DRAW_PI which will install on a Raspberry PI2 running raspberian (standard OS which comes with NOOBS to install on new PI). You will find them here:
OpenCPN
https://www.dropbox.com/s/c3rcq9ca9w...armhf.deb?dl=0

OCPN_DRAW_PI
https://www.dropbox.com/s/q7qsojfy0r...armhf.deb?dl=0

Jon
__________________

mackconsult is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
OpenCPN on Raspberry PI2 starnakel OpenCPN 284 16-03-2017 14:58
Has anyone gotten any Plugins working on Raspberry Pi2 Uncle Augie OpenCPN 5 27-06-2015 07:19
Has anyone managed to get hardware supported OpenGL on Rasperry Pi2 to work? Gunnar1 OpenCPN 53 16-06-2015 03:10
Raspberry Pi2 ratsea OpenCPN 5 26-02-2015 09:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 20:09



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 19:28.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.