|
|
04-01-2016, 07:48
|
#136
|
Registered User
Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
|
Re: OpenCPN on Raspberry Pi2
Quote:
Originally Posted by boat_alexandra
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
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
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.
|
|
|
04-01-2016, 08:48
|
#137
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
|
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?
|
|
|
04-01-2016, 08:53
|
#138
|
Registered User
Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
|
Re: OpenCPN on Raspberry Pi2
Quote:
Originally Posted by boat_alexandra
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.
|
|
|
04-01-2016, 11:33
|
#139
|
Registered User
Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
|
Re: OpenCPN on Raspberry Pi2
Quote:
Originally Posted by boat_alexandra
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.
|
|
|
04-01-2016, 21:03
|
#140
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
|
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.
|
|
|
04-01-2016, 23:25
|
#141
|
Registered User
Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
|
Re: OpenCPN on Raspberry Pi2
Quote:
Originally Posted by boat_alexandra
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.
|
|
|
05-01-2016, 11:15
|
#142
|
Registered User
Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
|
Re: OpenCPN on Raspberry Pi2
Quote:
Originally Posted by boat_alexandra
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.
|
|
|
06-01-2016, 08:26
|
#143
|
Registered User
Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
|
Re: OpenCPN on Raspberry Pi2
Quote:
Originally Posted by boat_alexandra
... 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.
|
|
|
06-01-2016, 12:22
|
#144
|
Registered User
Join Date: Jun 2015
Posts: 379
|
Re: OpenCPN on Raspberry Pi2
Quote:
Originally Posted by NahanniV
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.
|
|
|
06-01-2016, 15:00
|
#145
|
Marine Service Provider
Join Date: Jan 2012
Location: Vancouver, WA
Boat: 18 ft avon
Posts: 253
|
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.
|
|
|
06-01-2016, 15:49
|
#146
|
Registered User
Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
|
Re: OpenCPN on Raspberry Pi2
Quote:
Originally Posted by did-g
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$
|
|
|
06-01-2016, 16:03
|
#147
|
cruiser
Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
|
Re: OpenCPN on Raspberry Pi2
Quote:
Originally Posted by mackconsult
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..
http://www.cruisersforum.com/forums/...ct-152754.html
|
|
|
06-01-2016, 16:06
|
#148
|
Marine Service Provider
Join Date: Jan 2012
Location: Vancouver, WA
Boat: 18 ft avon
Posts: 253
|
Re: OpenCPN on Raspberry Pi2
Cool, thanks, Now I know I what to do this winter
Quote:
Originally Posted by conachair
|
|
|
|
06-01-2016, 16:45
|
#150
|
Marine Service Provider
Join Date: Jan 2012
Location: Vancouver, WA
Boat: 18 ft avon
Posts: 253
|
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
|
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|
|