Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 12-01-2013, 13:59   #91
Registered User

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

Thank you both.

I'll try both tomorrow and let you know.

Cheers
stuartb is offline   Reply With Quote
Old 13-01-2013, 06:43   #92
Registered User

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

Alisdair.

Just tried yours. Install needs libportaudio.

New image and updated O'clock 900 ( medium) 512 ram 32 for GPU.

Colours ok now and perhaps zooms a little faster but still crashes if try zoom in on Solent. My patch of the Med is fine though!

Definitely progress.

I'll prepare another card and compile the ver from git hub now.

Thanks

Unnnecessary edit: This was CM93
stuartb is offline   Reply With Quote
Old 13-01-2013, 07:07   #93
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
Alisdair.

Just tried yours. Install needs libportaudio.

New image and updated O'clock 900 ( medium) 512 ram 32 for GPU.

Colours ok now and perhaps zooms a little faster but still crashes if try zoom in on Solent. My patch of the Med is fine though!

Definitely progress.

I'll prepare another card and compile the ver from git hub now.

Thanks

Unnnecessary edit: This was CM93

try running as root, that should avoid the crash with zooming
Alisdair is offline   Reply With Quote
Old 13-01-2013, 07:40   #94
Registered User

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

I'll try it out tonight as well - will report back.

Dave - it looks like a lot of the pi's are sold out in North America at the moment. Might have to wait until February if you want one.

Raspberry Pi Accessories | Newark

They have Pi kits with everything. But I feel like you would probably have everything you need already.
nsweeting is offline   Reply With Quote
Old 13-01-2013, 07:50   #95
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
Alisdair.


Colours ok now and perhaps zooms a little faster but still crashes if try zoom in on Solent. My patch of the Med is fine though!
Hmm .. it's the zooming out and in again that's causing the problem, not current position. I saw that for a while last night but thought it was OK.

Try logging in as root, and running from /

in a terminal:

su root
cd /
opencpn
Alisdair is offline   Reply With Quote
Old 13-01-2013, 07:58   #96
Registered User

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

I failed - miserably.

Did the git hub thing and tried compile but cmake ../ gave me:

-- *** Build Architecture is armhf
-- *** Staging to build opencpn 3.1.1309 ***
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindOpenGL.cmake:153 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:132 (FIND_PACKAGE)

There is no opengl on a pi ??
stuartb is offline   Reply With Quote
Old 13-01-2013, 08:26   #97
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
I failed - miserably.

Did the git hub thing and tried compile but cmake ../ gave me:

-- *** Build Architecture is armhf
-- *** Staging to build opencpn 3.1.1309 ***
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindOpenGL.cmake:153 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:132 (FIND_PACKAGE)

There is no opengl on a pi ??
As I understand it, OpenGL on Pi/armhf is work in progress, however there must be some libraries there as my cmake ../ returns
-- *** Build Architecture is armhf
-- *** Staging to build opencpn 3.1.1309 ***
-- Found OpenGL...
-


I just used the latest Raspbian (2012-12-16-wheezy-raspbian) then followed the instructions for Debian here: Compiling - Linux | Official OpenCPN Homepage
(though Thomas suggested earlier in the thread that the git syntax should be "git clone -b master https://github.com/OpenCPN/OpenCPN.git")
Alisdair is offline   Reply With Quote
Old 13-01-2013, 12:07   #98
Registered User

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

problem manifests itself when using an attached display; zoom in anywhere and all is OK, but zoom out then in again and you usually have a crash.

Interestingly there isn't a problem using X over ssh (XMing on a PC)

.. a data alignment gotcha in s52plib?


backtrace follows:


(gdb) run
Starting program: /usr/local/bin/opencpn
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0x464712a0 (LWP 7630)]
[Thread 0x464712a0 (LWP 7630) exited]
[New Thread 0x464712a0 (LWP 7631)]
[Thread 0x464712a0 (LWP 7631) exited]
[New Thread 0x464712a0 (LWP 7635)]
[Thread 0x464712a0 (LWP 7635) exited]

Program received signal SIGSEGV, Segmentation fault.
0x40c2f144 in cairo_save () from /usr/lib/arm-linux-gnueabihf/libcairo.so.2

(gdb) bt
#0 0x40c2f144 in cairo_save () from /usr/lib/arm-linux-gnueabihf/libcairo.so.2
#1 0x40397350 in wxCairoContext::wxCairoContext(wxGraphicsRenderer* , wxWindowDC const&) ()
from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_core-2.8.so.0
#2 0x40397398 in wxCairoRenderer::CreateContext(wxWindowDC const&) () from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_core-2.8.so.0
#3 0x40326a2c in wxGCDC::wxGCDC(wxWindowDC const&) () from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_core-2.8.so.0
#4 0x002cc834 in s52plib::RenderHPGL(_ObjRazRules*, _Rule*, wxPoint&, ViewPort*, float) ()
#5 0x002ce218 in s52plib::RenderSY(_ObjRazRules*, _Rules*, ViewPort*) ()
#6 0x002d34cc in s52plib:oRenderObject(wxDC*, _ObjRazRules*, ViewPort*) ()
#7 0x002d3260 in s52plib::RenderObjectToDC(wxDC*, _ObjRazRules*, ViewPort*) ()
#8 0x002ec0d8 in s57chart:CRenderLPB(wxMemoryDC&, ViewPort const&, wxRect*) ()
#9 0x002ebf20 in s57chart:CRenderRect(wxMemoryDC&, ViewPort const&, wxRect*) ()
#10 0x002eb88c in s57chart:oRenderViewOnDC(wxMemoryDC&, ViewPort const&, RenderTypeEnum, bool) ()
#11 0x002ea544 in s57chart:oRenderRegionViewOnDC(wxMemoryDC&, ViewPort const&, wxRegion const&, bool) ()
#12 0x002ea39c in s57chart::RenderRegionViewOnDC(wxMemoryDC&, ViewPort const&, wxRegion const&) ()
#13 0x00315f38 in cm93compchart:oRenderRegionViewOnDC(wxMemoryDC&, ViewPort const&, wxRegion const&) ()
#14 0x003155c4 in cm93compchart::RenderRegionViewOnDC(wxMemoryDC&, ViewPort const&, wxRegion const&) ()
#15 0x0013fa54 in Quilt::RenderQuiltRegionViewOnDC(wxMemoryDC&, ViewPort&, wxRegion&) ()
#16 0x0016749c in ChartCanvas::OnPaint(wxPaintEvent&) ()
#17 0x4008f314 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const ()
from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#18 0x40109954 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEn tryBase const&, wxEvtHandler*, wxEvent&) ()
from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#19 0x40109ab4 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#20 0x40109e70 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#21 0x402b4adc in wxWindow::GtkSendPaintEvents() () from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_core-2.8.so.0
#22 0x402b4f5c in ?? () from /usr/lib/arm-linux-gnueabihf/libwx_gtk2u_core-2.8.so.0
(gdb)
Alisdair is offline   Reply With Quote
Old 13-01-2013, 13:51   #99
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,384
Re: Chart Problems on Raspberry Pi

Alisdair....

This one looks familiar:
OpenCPN::Tracker All Projects: Tasklist

The Flyspray task is running armel, so unlikely related to float alignment.
I could not make much progress with this one, so far. Still smells like a memory problem to me....

However, the fact that it does not occur over ssh link makes me consider that it might be a latent fault in the gtk or display driver port for arm...

Dave
bdbcat is offline   Reply With Quote
Old 13-01-2013, 18:03   #100
Registered User

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

Got the latest code and compiled. Got some warnings. New to all this stuff, so I'm not sure if it important.

Code:
/home/pi/OpenCPN/src/chcanv.cpp: In member function ‘void ChartCanvas::OnKeyDown(wxKeyEvent&)’:
/home/pi/OpenCPN/src/chcanv.cpp:3942:24: warning: case label value is less than minimum value for type [enabled by default]
/home/pi/OpenCPN/src/chcanv.cpp:3944:24: warning: case label value is less than minimum value for type [enabled by default]
/home/pi/OpenCPN/src/chcanv.cpp:3951:24: warning: case label value is less than minimum value for type [enabled by default]
/home/pi/OpenCPN/src/chcanv.cpp:3961:19: warning: case label value is less than minimum value for type [enabled by default]
/home/pi/OpenCPN/src/chcanv.cpp:3969:19: warning: case label value is less than minimum value for type [enabled by default]
/home/pi/OpenCPN/src/chcanv.cpp:3970:19: warning: case label value is less than minimum value for type [enabled by default]
/home/pi/OpenCPN/src/chcanv.cpp:4082:15: warning: case label value is less than minimum value for type [enabled by default]
Started up, and OpenCPN took the 2011 CM93 charts no problem. Moving around - everything is MUCH better. No colour errors, which is great. I'm still getting crashes at certain points in the map though. Repeatable for the Boston area - as well as a few others. Would like to help point out the errors. Alisadir, I see you posting this backtrace info. I'd like to help out with this, but am unsure how. Any help? Still not confident with CM93. Would still only use BSB on the water at the moment.

Also - one other problem of note with the pi OpenCPN. I'll try my best to describe. Maybe others can chime in if they are experiencing the same problem. When the mouse pointer hovers over the menu items, an invisible dialog box appears in the X panel. It doesnt show anything - but it does reset the focus, causing the main navigation window to 'flash'. Once in a while it (the navigation window) will even completely minimize, then reopen. It doesn't really effect its use - its just more annoying then anything else. I have no idea what could cause this... but its been present since I first put OpenCPN on the pi.

Cheers
Nick
nsweeting is offline   Reply With Quote
Old 14-01-2013, 02:49   #101
Registered User

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

Alisdair, DBD

Ignore my last post re: "failed miserably " - I was operating in idiot-mode!
The latest from Git installed fine, took 1hr 5mins to build on the 512 Pi !

Can't see any difference here between that and Alisdair's .deb but that's as it should be I imagine.

Still crashes at higher zoom levels in certain areas.

Cheers
stuartb is offline   Reply With Quote
Old 14-01-2013, 06:41   #102
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,494
Images: 2
Re: Chart Problems on Raspberry Pi

You sleuths and magicians amaze me.
rgleason is online now   Reply With Quote
Old 14-01-2013, 07:00   #103
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
Alisdair, DBD

Ignore my last post re: "failed miserably " - I was operating in idiot-mode!
The latest from Git installed fine, took 1hr 5mins to build on the 512 Pi !

Can't see any difference here between that and Alisdair's .deb but that's as it should be I imagine.

Still crashes at higher zoom levels in certain areas.

Cheers
Stuart,

Go to Vector Charts under Options. Select "Mariner's Standard". Now select just a few of the symbols from the menu on the left, e.g. depth area, depth contour, land area and coastline; does that let you zoom in and out?

Alisdair
Alisdair is offline   Reply With Quote
Old 15-01-2013, 16:06   #104
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: Chart Problems on Raspberry Pi

Quote:
Originally Posted by Alisdair View Post
Stuart,

Go to Vector Charts under Options. Select "Mariner's Standard". Now select just a few of the symbols from the menu on the left, e.g. depth area, depth contour, land area and coastline; does that let you zoom in and out?

Alisdair
I compiled today, turning most symbols off in the mariners standard I can now zoom right in and back out into London without crashing. Select all it crashes with a segmentation fault.

AIS works, hilton ferry still running but clipper river buses tucked up for the night

Ran out of usb ports to try gps but will have a fiddle and report back.

Getting loads of "gtk-warning" messages ????

Huge thanks for all the hard work guys.
conachair is offline   Reply With Quote
Old 16-01-2013, 01:40   #105
Registered User

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

Quote:
Originally Posted by conachair View Post
I compiled today, turning most symbols off in the mariners standard I can now zoom right in and back out into London without crashing. Select all it crashes with a segmentation fault.

AIS works, hilton ferry still running but clipper river buses tucked up for the night

Ran out of usb ports to try gps but will have a fiddle and report back.

Getting loads of "gtk-warning" messages ????

Huge thanks for all the hard work guys.
The gtk-warnings are produced when you use the Option menu and can be ignored; when you hit the zoom problem you'll see a gtk-critical

re. USB ports, if you want more than two you'll need a powered hub - I've had problems running unpowered when I start stacking stuff like wireless, bluetooth and audio dongles. If you've a serial RS232 GPS you can use the GPIO pins with one of these: MAX3232 RS232 Serial Port To TTL Converter Module DB9 Connector w Dupont Cables | eBay
Alisdair is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Advertise Here


All times are GMT -7. The time now is 20:17.


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.