Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-01-2013, 19:16   #76
Registered User

Join Date: Nov 2012
Location: Jupiter, FL, USA
Boat: Seidelmann 37
Posts: 31
Re: Chart Problems on Raspberry Pi

Dave&Alisdair - just FYI, that I won't bother w/ the to-pi ssh'ing that yesterday I said I'd do in a few days (in response to Dave's request to general group)- apparently not needed re current debugging status (unless you'd still like me to do it).
__________________

__________________
ephyraboater is offline   Reply With Quote
Old 10-01-2013, 20:40   #77
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: Chart Problems on Raspberry Pi

ephryaboater....

OK, that's fine. I think we are on the trail of it now. I'm compiling as we speak....

Thanks for the offer
Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 10-01-2013, 21:39   #78
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: Chart Problems on Raspberry Pi

Alisdair, etc...

Pushed new code to github master which tries to fix float alignment troubles on armhf.

Give it a try

Dave
__________________
bdbcat is offline   Reply With Quote
Old 11-01-2013, 09:41   #79
Registered User

Join Date: Jun 2011
Posts: 17
Re: Chart Problems on Raspberry Pi

Dave, do these changes effect cm93 use as well?

PS. Dave - you should pick up a RasPi for development if you get the chance! 35$!
__________________
nsweeting is offline   Reply With Quote
Old 11-01-2013, 10:09   #80
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: Chart Problems on Raspberry Pi

nsweeting...

The most recent changes do not affect cm93.
Please remind me where we are on cm93. Are there problems? Any gdb logs to share?

I could get a RPI, I guess. Right now I am flooded with various Windows, linux, Mac, and Android hardware platforms, and there are only so many solar panels on my boat, never mind hours in a day.

Can you recommend any packaged "Plug and play" RPI solutions, i.e. a box with RPI inside, a power connector, and a network interface? No fiddling required...

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 11-01-2013, 14:44   #81
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 79
Re: Chart Problems on Raspberry Pi

Quote:
Originally Posted by bdbcat View Post
nsweeting...

The most recent changes do not affect cm93.
Please remind me where we are on cm93. Are there problems? Any gdb logs to share?

I could get a RPI, I guess. Right now I am flooded with various Windows, linux, Mac, and Android hardware platforms, and there are only so many solar panels on my boat, never mind hours in a day.

Can you recommend any packaged "Plug and play" RPI solutions, i.e. a box with RPI inside, a power connector, and a network interface? No fiddling required...

Thanks
Dave
Looks like that's resolved the ENC charts problem, many thanks
It seems very slow, but I'll play around with the config to see if I can address that. However, since I sail in Scotland it's academic as I don't expect to use them! .. but I'll create and test a .deb package and make it available.

re. cm93:
The symptoms were the same as for s57chart. The workaround you gave for the malloc/sizeof worked for me, but I was playing around with a very old set of CM93 charts - users of 2011 versions continue to have problems; presumably whatever you did for s57chart would also work here.


re. Pi:
For a case I used an old DAT tape cover.
Nothing special about power supplies, as long as it has enough juice; I use the charger and cable from my Kindle (micro USB 750ma). If you want to use anything that requires more power, say a 1000mw wifi extender, you would need a powered USB hub.
Ethernet is built in, but I find it convenient to use an Edimax nano wifi dongle.
I used a standard wireless keyboard and mouse on the boat until the wireless mouse went for a swim in the briny .. I now have a mini wireless keyboard like this: 2.4GHz Mini Wireless Keyboard with Touchpad For Ipad PS3 IPTV PC Xbox Android TV | eBay
Other than that you'll need an SD card (>= 8GB class 10)

If you do get a Pi, give me a shout if you need help getting started.

Alisdair
__________________
Alisdair is offline   Reply With Quote
Old 11-01-2013, 18:01   #82
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 79
Re: Chart Problems on Raspberry Pi

I've built a package for the Pi and put it here: PiChart

The ENCs take a while to ingest first time, so be patient.
__________________
Alisdair is offline   Reply With Quote
Old 11-01-2013, 18:10   #83
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 79
Re: Chart Problems on Raspberry Pi

re. the CM93 problems, here is a gdb backtrace following clean install of my latest build (source pulled from github):

Program received signal SIGBUS, Bus error.
0x0030e4d0 in cm93chart::CreateS57Obj (this=0xcbed10, cell_index=2700720, iobject=1, subcell=48,
pobject=0xc92f70, pDict=0xd5b3e0, xgeom=0xcb1980, ref_lat=0, ref_lon=0, scale=20000000)
at /home/pi/OpenCPN/src/cm93.cpp:3336
3336 *pAVR = *pf;
(gdb) bt
#0 0x0030e4d0 in cm93chart::CreateS57Obj (this=0xcbed10, cell_index=2700720, iobject=1, subcell=48,
pobject=0xc92f70, pDict=0xd5b3e0, xgeom=0xcb1980, ref_lat=0, ref_lon=0, scale=20000000)
at /home/pi/OpenCPN/src/cm93.cpp:3336
#1 0x0030af2c in cm93chart::CreateObjChain (this=0xcbed10, cell_index=2700720, subcell=48)
at /home/pi/OpenCPN/src/cm93.cpp:2329
#2 0x0030a6ec in cm93chart::SetVPParms (this=0xcbed10, vpt=...) at /home/pi/OpenCPN/src/cm93.cpp:2160
#3 0x00313674 in cm93compchart::PrepareChartScale (this=0xd5a170, vpt=..., cmscale=0)
at /home/pi/OpenCPN/src/cm93.cpp:4838
#4 0x00317d64 in cm93compchart::AdjustVP (this=0xd5a170, vp_last=..., vp_proposed=...)
at /home/pi/OpenCPN/src/cm93.cpp:6054
#5 0x0014aed0 in ChartCanvas::SetViewPoint (this=0xd7be70, lat=33.357999999999997,
lon=-79.281999999999996, scale_ppm=0.00029999999999999997, skew=0, rotation=0, b_adjust=true)
at /home/pi/OpenCPN/src/chcanv.cpp:4921
#6 0x0014a9a4 in ChartCanvas::LoadVP (this=0xd7be70, vp=..., b_adjust=true)
at /home/pi/OpenCPN/src/chcanv.cpp:4844
#7 0x0014a818 in ChartCanvas::ReloadVP (this=0xd7be70, b_adjust=true)
at /home/pi/OpenCPN/src/chcanv.cpp:4826
#8 0x000e85d4 in MyApp::OnInit (this=0x4a6cf0) at /home/pi/OpenCPN/src/chart1.cpp:1919
#9 0x00104f94 in wxAppConsole::CallOnInit (this=0x4a6cf0) at /usr/include/wx-2.8/wx/app.h:76
#10 0x400be690 in wxEntry(int&, wchar_t**) () from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#11 0x000e49a0 in main (argc=1, argv=0xbefffd04) at /home/pi/OpenCPN/src/chart1.cpp:717
(gdb)



I also had a similar one before the clean install:

Program received signal SIGBUS, Bus error.
0x0030e4d0 in cm93chart::CreateS57Obj(int, int, int, Object*, cm93_dictionary*, Extended_Geometry*, double, double, double) ()
(gdb) bt
#0 0x0030e4d0 in cm93chart::CreateS57Obj(int, int, int, Object*, cm93_dictionary*, Extended_Geometry*, double, double, double) ()
#1 0x0030af2c in cm93chart::CreateObjChain(int, int) ()
#2 0x0030a6ec in cm93chart::SetVPParms(ViewPort const&) ()
#3 0x00313674 in cm93compchart::PrepareChartScale(ViewPort const&, int) ()
__________________
Alisdair is offline   Reply With Quote
Old 11-01-2013, 18:47   #84
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 79
Re: Chart Problems on Raspberry Pi

Quote:
Originally Posted by Alisdair View Post
re. the CM93 problems, here is a gdb backtrace following clean install of my latest build (source pulled from github):
.......
Belay that, I've just spotted that not all the chart files were copied to the SD card ..
__________________
Alisdair is offline   Reply With Quote
Old 11-01-2013, 18:53   #85
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: Chart Problems on Raspberry Pi

Alisdair...

OK, since we know that ENCs work now, I think the conclusion that it is a float alignment problem is correct.

Regarding cm93:
I looked at the code around your latest gdb trace. It is a valid potential float alignment problem here as well, of the same type. Theoretically, should fault 25 % of the time.

Give me a few minutes and I'll have new code in github for testing.

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 11-01-2013, 18:56   #86
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: Chart Problems on Raspberry Pi

Alisdair...

Done.
Dave
__________________
bdbcat is offline   Reply With Quote
Old 12-01-2013, 07:02   #87
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 79
Re: Chart Problems on Raspberry Pi

Excellent!

Not only are all the charts working as they should, that has also resolved some of the little oddities such as inconsistent colors and the chart toolbar needing to be popped.

Things seemed slow running over SSH, however using an attached display the performance is pretty good.

Currently running with (old) CM93, NOAA OR ENC, NOAA CA RNC and Antares (Scotland) charts. Quilting on, keep scale when changing charts .. and it all works seamlessly


--

When building with the default CMakeLists.txt I received the following error:


[ 46%] Building CXX object CMakeFiles/opencpn.dir/src/chart1.cpp.o
/home/pi/OpenCPN/src/chart1.cpp:43:31: fatal error: version.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/opencpn.dir/src/chart1.cpp.o] Error 1
make[1]: *** [CMakeFiles/opencpn.dir/all] Error 2
make: *** [all] Error 2

.. however simply turning verbose mode on allowed it to build successfully. I think I'll ignore that for the time being.

---

Your fixes should also resolve this thread as well:3.0.0 on Ubuntu 12.04 armhf - Crashes When Opening ENC
__________________
Alisdair is offline   Reply With Quote
Old 12-01-2013, 14:13   #88
Registered User

Join Date: May 2010
Location: Med
Boat: Westerly Renown
Posts: 35
Re: Chart Problems on Raspberry Pi

Dave or Alisdair,

Can you post the link to grab this latest ver please?

Thanks
__________________
stuartb is offline   Reply With Quote
Old 12-01-2013, 14:36   #89
Registered User

Join Date: Jul 2012
Location: UK
Boat: Albin Vega, 27'
Posts: 79
Re: Chart Problems on Raspberry Pi

Quote:
Originally Posted by stuartb View Post
Dave or Alisdair,

Can you post the link to grab this latest ver please?

Thanks
git clone git://github.com/OpenCPN/OpenCPN.git if you want to build it for yourself.

PiChart if you want a .deb that you can install on your Pi.

I've just finished uploading it after rebuilding on a clean system, I'd appreciate feedback if it works or otherwise




Alisdair
__________________
Alisdair is offline   Reply With Quote
Old 12-01-2013, 14:50   #90
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
Re: Chart Problems on Raspberry Pi

To get the latest, you have to get the master branch with this command
Code:
 git clone -b master https://github.com/OpenCPN/OpenCPN.git
Thomas
__________________

__________________
cagney is offline   Reply With Quote
Reply

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 15:40.


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.