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 13-05-2014, 02:14   #46
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: Sean's Optimum Branch Merge

Quote:
Originally Posted by nohal View Post
Could you run it once again, do nothing except, just quit it, and post the output of
Code:
tail -n 100 ~/opencpn.log
?

And I suppose you did "make install" and did not change the prefix from /usr/local...

Pavel

output below from a couple of runs, between which i deleted all the plugins and copied just the dashboard.

i think the best way forward is to start afresh with a clean flash of lubuntu, there could be all sorts of corrupted files scattered about after a crash the other day, thanks and i'll report back soon

Code:
linaro@cubietruck:~$ tail -n 100 ~/opencpn.log
08:50:25 UTC: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
08:50:25 UTC: Error: /usr/lib/opencpn/libdashboard_pi.so: invalid ELF header
08:50:25 UTC:    PlugInManager: Cannot load library: /usr/lib/opencpn/libdashboard_pi.so /usr/lib/opencpn/libdashboard_pi.so: invalid ELF header
08:50:25 UTC: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libgrib_pi.so
08:50:25 UTC: Error: /usr/lib/opencpn/libgrib_pi.so: invalid ELF header
08:50:25 UTC:    PlugInManager: Cannot load library: /usr/lib/opencpn/libgrib_pi.so /usr/lib/opencpn/libgrib_pi.so: invalid ELF header
08:50:25 UTC: PlugInManager: Loading PlugIn: /usr/lib/opencpn/liblogbookkonni_i386_pi16_v11_pi.so
08:50:25 UTC: Error: /usr/lib/opencpn/liblogbookkonni_i386_pi16_v11_pi.so: cannot open shared object file: No such file or directory
08:50:25 UTC:    PlugInManager: Cannot load library: /usr/lib/opencpn/liblogbookkonni_i386_pi16_v11_pi.so /usr/lib/opencpn/liblogbookkonni_i386_pi16_v11_pi.so: cannot open shared object file: No such file or directory
08:50:25 UTC: OpenGL-> Renderer String: Software Rasterizer
08:50:25 UTC: OpenGL-> Using Framebuffer Objects
08:50:25 UTC: OpenGL-> Using FBO Stencil buffer
08:50:25 UTC: OpenGL-> Using Stencil buffer clipping
08:50:25 UTC: OpenGL-> Estimated Max Resident Textures: 98
08:50:26 UTC: ChartDB Cache policy:  Max open chart limit is 20.
08:50:26 UTC: Loading chart db version: V018
08:50:26 UTC: Chartdb: Chart directory list follows
08:50:26 UTC:   Chart directory #0: /home/linaro
08:50:26 UTC: GPS Watchdog Timeout is: 6 sec.
08:50:27 UTC: Loading World Chart Q=2 in 721 ms.
08:50:27 UTC: Background world map loaded from GSHHS datafiles found in: /usr/share/opencpn/gshhs/
08:50:29 UTC: Initializing Chart /home/linaro/Cm93 jan 2011/00300000/A/00300000.A
08:50:29 UTC: CM93Composite Chart Root is /home/linaro/Cm93 jan 2011/
08:50:29 UTC: Loaded CM93 Dictionary from /home/linaro/Cm93 jan 2011/
08:50:29 UTC: Loading CM93 cell /home/linaro/Cm93 jan 2011/03900000/D/04230000.D
08:50:29 UTC: Loading CM93 cell /home/linaro/Cm93 jan 2011/03900000/D/04230003.D
08:50:30 UTC: Loading CM93 cell /home/linaro/Cm93 jan 2011/03900000/C/04140000.C
08:50:38 UTC: opencpn::MyFrame exiting cleanly.
08:50:38 UTC: Closing NMEA Datastream Serial:/dev/ttyUSB1
08:50:38 UTC: Stopping Secondary Thread
08:50:39 UTC: Stopped in 1 sec.
08:50:39 UTC: Closing NMEA Datastream Serial:/dev/ttyUSB0
08:50:39 UTC: Stopping Secondary Thread
08:50:41 UTC: Stopped in 2 sec.
08:50:41 UTC: Chart cache purge
08:50:41 UTC: Chart cache purge
08:50:41 UTC: LOGBOOK:  2014-05-13 08:50:41 UTC OFF: Lat   51.32170 Lon    0.90170
08:50:41 UTC: opencpn::MyApp exiting cleanly...

09:04:13 UTC: 

________

09:04:13 UTC: 2014-05-13
09:04:13 UTC:  ------- Starting OpenCPN -------
09:04:13 UTC: Version 3.3.1712 Build 2014-05-12
09:04:13 UTC: wxWidgets version: wxWidgets 2.8.12
09:04:13 UTC: MemoryStatus:  mem_total: 1968 mb,  mem_initial: 33 mb
09:04:13 UTC: SData_Locn is /usr/share/opencpn/
09:04:13 UTC: Using existing Config_File: /home/linaro/.opencpn/opencpn.conf
09:04:13 UTC: Styles loading from /usr/share/opencpn/uidata/styles.xml
09:04:13 UTC: No styles found at: /home/linaro/
09:04:13 UTC: No styles found at: /home/linaro/.opencpn/
09:04:13 UTC: Setting Viewpoint Lat/Lon 51.4758, 0.8425
09:04:13 UTC: Setting Ownship Lat/Lon 51.3217, 0.9017
09:04:13 UTC: System default Language:  en_US
09:04:13 UTC: Error: Cannot set locale to 'en_US'.
09:04:13 UTC: Error: Cannot set locale to 'en_US'.
09:04:13 UTC: Opencpn language set to:  en_US
09:04:14 UTC: ChartSymbols loaded from /usr/share/opencpn/s57data/chartsymbols.xml
09:04:15 UTC: Using s57data in /usr/share/opencpn/s57data
09:04:15 UTC: Setting Viewpoint Lat/Lon 51.4758, 0.8425
09:04:15 UTC: Setting Ownship Lat/Lon 51.3217, 0.9017
09:04:15 UTC: Opening NMEA Datastream Serial:/dev/ttyUSB1
09:04:15 UTC: Opening NMEA Datastream Serial:/dev/ttyUSB0
09:04:15 UTC: Creating glChartCanvas
09:04:16 UTC: PlugInManager searching for PlugIns in location /usr/lib/opencpn
09:04:16 UTC: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libstatusbar_i386_pi110_v02_pi.so
09:04:16 UTC: Error: /usr/lib/opencpn/libstatusbar_i386_pi110_v02_pi.so: cannot open shared object file: No such file or directory
09:04:16 UTC:    PlugInManager: Cannot load library: /usr/lib/opencpn/libstatusbar_i386_pi110_v02_pi.so /usr/lib/opencpn/libstatusbar_i386_pi110_v02_pi.so: cannot open shared object file: No such file or directory
09:04:16 UTC: OpenGL-> Renderer String: Software Rasterizer
09:04:16 UTC: OpenGL-> Using Framebuffer Objects
09:04:16 UTC: OpenGL-> Using FBO Stencil buffer
09:04:16 UTC: OpenGL-> Using Stencil buffer clipping
09:04:16 UTC: OpenGL-> Estimated Max Resident Textures: 98
09:04:17 UTC: ChartDB Cache policy:  Max open chart limit is 20.
09:04:17 UTC: Loading chart db version: V018
09:04:17 UTC: Chartdb: Chart directory list follows
09:04:17 UTC:   Chart directory #0: /home/linaro
09:04:17 UTC: GPS Watchdog Timeout is: 6 sec.
09:04:18 UTC: Loading World Chart Q=2 in 792 ms.
09:04:18 UTC: Background world map loaded from GSHHS datafiles found in: /usr/share/opencpn/gshhs/
09:04:18 UTC: Initializing Chart /home/linaro/Cm93 jan 2011/00300000/A/00300000.A
09:04:18 UTC: CM93Composite Chart Root is /home/linaro/Cm93 jan 2011/
09:04:18 UTC: Loaded CM93 Dictionary from /home/linaro/Cm93 jan 2011/
09:04:18 UTC: Loading CM93 cell /home/linaro/Cm93 jan 2011/03900000/D/04230000.D
09:04:19 UTC: Loading CM93 cell /home/linaro/Cm93 jan 2011/03900000/D/04230003.D
09:04:19 UTC: Loading CM93 cell /home/linaro/Cm93 jan 2011/03900000/C/04140000.C
09:04:42 UTC: opencpn::MyFrame exiting cleanly.
09:04:42 UTC: Closing NMEA Datastream Serial:/dev/ttyUSB1
09:04:42 UTC: Stopping Secondary Thread
09:04:43 UTC: Stopped in 1 sec.
09:04:43 UTC: Closing NMEA Datastream Serial:/dev/ttyUSB0
09:04:43 UTC: Stopping Secondary Thread
09:04:44 UTC: Stopped in 1 sec.
09:04:48 UTC: Chart cache purge
09:04:49 UTC: Chart cache purge
09:04:49 UTC: LOGBOOK:  2014-05-13 09:04:49 UTC OFF: Lat   51.32170 Lon    0.90170
09:04:49 UTC: opencpn::MyApp exiting cleanly...

linaro@cubietruck:~$ cd /usr/lib/opencpn
linaro@cubietruck:/usr/lib/opencpn$ ls
libstatusbar_i386_pi110_v02_pi.so
linaro@cubietruck:/usr/lib/opencpn$
conachair is offline   Reply With Quote
Old 13-05-2014, 07:32   #47
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 511
Re: Sean's Optimum Branch Merge

Quote:
Originally Posted by boat_alexandra View Post
This is a bug which I believe may still exist for intel even on optimum branch. The option (not yet merged) to disable the accelerated panning fixes it, but someday we hope to fix the root problem. I have been able to produce it E and W but only overzoomed.
Its only in the "Gallium" i915 driver, the "classic" works fine.

Zoom to cursor is broken at this moment.
Dirk
rooiedirk is offline   Reply With Quote
Old 13-05-2014, 14:11   #48
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: Sean's Optimum Branch Merge

Quote:
Originally Posted by conachair View Post
..... i'll report back soon

Well, fresh from th e start and plugins work but in konni logbook it's not possible to type any text into the text boxes and OpenCpn crashes if you try insert new line




Sent from my SGP312 using Tapatalk
conachair is offline   Reply With Quote
Old 13-05-2014, 20:44   #49
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: Sean's Optimum Branch Merge

Hi there...

And here comes another batch. github master will now build to version 3.3.1713.

Commit Summary

  • defer bounding box calculation, and use faster bounding box tests
  • consolidate and optimize clipping region logic
  • code formatting (whitespace change)
  • improve opengl extension function handling, and opengl setup
  • change GL_CLAMP to GL_CLAMP_TO_EDGE as the older setting is deprecated
  • grib plugin: add tooltip and improve warning message
  • use opengl texture for raster symbols if rectangle textures are supported
  • use std::string in nmea sentence parsing
  • fix issues detecting serial ports, this fixes issue which used to crash on raspberry pi
  • remove unused file
  • logic improvements and remove duplicated glenable and unused code
  • optimize light sectors: remove duplicated initial point, and use float since double is not needed here
  • split rendering of overlay objects for opengl optimizing ownship rendering
  • correct rotated coordinate calculation, and optimize grid draw for opengl allowing rotated viewports
  • fix crash at certain rotation angles for journeyman style
  • scale bar rendering for rotated viewports
  • use a textures to render emboss indicators
  • refactor anchor watchpoint render for future optimizations
  • allow hiding the compass window as a user interface option (slow systems benefit from less overlaid windows)
  • defer loading plugins which are not enabled until setup window is opened
  • misc vector rendering optimizations

Also fixed is s63_pi depth sounding errors reported previously.

Lots of good code here, especially symbol caching and rendering as OpenGL texture on vector charts. Thanks, Sean

Known broken is:
a. non-OpenGL quilt rotation, which I am investigating.
b. 3.3.1713 on Mac is unbuilt, untested. High priority.

Good luck
Dave
bdbcat is offline   Reply With Quote
Old 13-05-2014, 21:26   #50
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Sean's Optimum Branch Merge

Quote:
Originally Posted by bdbcat View Post
Hi there...

And here comes another batch. github master will now build to version 3.3.1713.

Commit Summary


Known broken is:
a. non-OpenGL quilt rotation, which I am investigating.\
Don't spend time on this, because I am fairly sure it works fine in the optimum branch. I will narrow down the exact change which fixes it and report it when commited. It is really just a matter of translating clipping regions I believe. This type of problem can be simple to fix but is very difficult to track down.
Quote:
b. 3.3.1713 on Mac is unbuilt, untested. High priority.

Good luck
Dave
mac, builds are a weak point for me because I have no mac. Also in glChartCanvas.cpp there is a block which loads the function pointers for extensions which is ifdef out because I cannot make it work. Should be fairly easy to fix, but may require a separate objective c source file. This will allow for accelerated panning, and better texture compression support.
seandepagnier is offline   Reply With Quote
Old 13-05-2014, 22:43   #51
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 83
Re: Sean's Optimum Branch Merge

Quick test under Ubuntu 14.04 64bit with opengl / i915 shows no problems.

[ and ] for rotating work as well (with minor challenges when viewport contains routes). I wanted to send a patch to add a hotkey for resetting rotation to "North Up" but after locating the place in the code I saw that \ already does that. So just a heads-up for others trying this.
nkiesel is offline   Reply With Quote
Old 14-05-2014, 00:25   #52
Registered User

Join Date: Jun 2011
Location: 27south
Boat: Easton 47
Posts: 65
Re: Sean's Optimum Branch Merge

Dave
Just compiled 3.3.1713 on Mac OSX.7.5 using cmake against wx 2.9.5

It compiled OK with no errors, but on launching O there was an an immediate crash.

O's log was as follow -

17:05:35 EST: 2014-05-14
17:05:35 EST: ------- Starting OpenCPN -------
17:05:35 EST: Version 3.3.1713 Build 2014-05-13
17:05:35 EST: wxWidgets version: wxWidgets 2.9.4
17:05:35 EST: MemoryStatus: mem_total: 0 mb, mem_initial: 0 mb
17:05:35 EST: SData_Locn is /Users/mo/OpenCPN/build/OpenCPN.app/Contents/SharedSupport/
17:05:35 EST: Using existing Config_File: /Users/mo/Library/Preferences/opencpn.ini
17:05:35 EST: Styles loading from /Users/mo/OpenCPN/build/OpenCPN.app/Contents/SharedSupport/uidata/styles.xml
17:05:35 EST: Styles loading from /Users/mo/Library/Preferences/opencpn/styles.xml
17:05:35 EST: No styles found at: /Users/mo/Library/Preferences/opencpn/.opencpn/
17:05:36 EST: Setting Viewpoint Lat/Lon -27.4741, 153.31
17:05:36 EST: Setting Ownship Lat/Lon -27.4433, 153.116
17:05:36 EST: System default Language: en_AU
17:05:36 EST: Opencpn language set to: en_US
17:05:39 EST: ChartSymbols loaded from /Users/mo/OpenCPN/build/OpenCPN.app/Contents/SharedSupport/s57data/chartsymbols.xml
17:05:39 EST: Using s57data in /Users/mo/OpenCPN/build/OpenCPN.app/Contents/SharedSupport/s57data
17:05:39 EST: Setting Viewpoint Lat/Lon -27.4741, 153.31
17:05:39 EST: Setting Ownship Lat/Lon -27.4433, 153.116
17:05:39 EST: Opening NMEA Datastream Serial:/dev/cu.usbserial
17:05:39 EST: Creating glChartCanvas
17:05:39 EST: PlugInManager searching for PlugIns in location /Users/mo/OpenCPN/build/OpenCPN.app/Contents/PlugIns
17:05:39 EST: OpenGL-> Renderer String: NVIDIA GeForce 9400M OpenGL Engine
17:05:39 EST: OpenGL-> Texture rectangle format: de1
17:05:39 EST: OpenGL-> Framebuffer Objects unavailable
17:05:39 EST: OpenGL-> Using Stencil buffer clipping

that was that

system log reveals -

14/05/14 5:05:43.425 PM com.apple.launchd.peruser.501: ([0x0-0xc50c5].org.opencpn[10676]) Job appears to have crashed: Segmentation fault: 11
14/05/14 5:05:44.724 PM ReportCrash: Saved crash report for OpenCPN[10676] version 3.3.1713 (???) to /Users/mo/Library/Logs/DiagnosticReports/OpenCPN_2014-05-14-170544_X.crash


i can post the crash report if needed

Mo
Icnoships is offline   Reply With Quote
Old 14-05-2014, 01:02   #53
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Sean's Optimum Branch Merge

Quote:
Originally Posted by Icnoships View Post
Dave
Just compiled 3.3.1713 on Mac OSX.7.5 using cmake against wx 2.9.5

It compiled OK with no errors, but on launching O there was an an immediate crash.

i can post the crash report if needed

Mo
Maybe a backtrace?

Also, try using git bisect to determine which commit introduced the problem.

As a further feature. Should I implement zoom to cursor to work with the wheel? Should zoom to cursor zoom work with the '+' and '-' keys or only the wheel?
seandepagnier is offline   Reply With Quote
Old 14-05-2014, 02:02   #54
Registered User

Join Date: Jun 2011
Location: 27south
Boat: Easton 47
Posts: 65
Re: Sean's Optimum Branch Merge

All

If anyone could explain in simple terms how to get a backtrace on osx i would be happy to oblige, as googling has only left me more confused....

Mo
Icnoships is offline   Reply With Quote
Old 14-05-2014, 02:21   #55
cruiser

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
Re: Sean's Optimum Branch Merge

Quote:
Originally Posted by conachair View Post
.......... thanks and i'll report back soon
All good again with plugins showing after a fresh install from scratch of lubuntu onto the cubietruck.

With one glitch.....
The main OpenCpn window seems to regain the focus all the time, for instance, it's not possible to input any boat data etc into the logbook konni plugins because it seems to get greyed out immediately and the main chart window regain the focus.

This seems to be global, it isn't possible to have any other windows on top or to minimise the OpenCpn main window.

Is there a checkbox somewhere for this?

Thanx again.

Sent from my SGP312 using Tapatalk
conachair is offline   Reply With Quote
Old 14-05-2014, 02:49   #56
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,742
Re: Sean's Optimum Branch Merge

Quote:
Originally Posted by boat_alexandra View Post
As a further feature. Should I implement zoom to cursor to work with the wheel? Should zoom to cursor zoom work with the '+' and '-' keys or only the wheel?
Both please.

And remember - there are no foreign keyboards, only different ones, many different ones

Hubert
bcn is online now   Reply With Quote
Old 14-05-2014, 02:56   #57
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Sean's Optimum Branch Merge

Quote:
Originally Posted by Icnoships View Post
All

If anyone could explain in simple terms how to get a backtrace on osx i would be happy to oblige, as googling has only left me more confused....

Mo
Mo,
I suggest to use Xcode. So you have any tool and any information available with a mouse click.
BTW you wrote you have compiled with wxWidgets 2.9.5 but your log says wx 2.9.4.
Gerhard
CarCode is offline   Reply With Quote
Old 14-05-2014, 04:18   #58
Registered User

Join Date: Jun 2011
Location: 27south
Boat: Easton 47
Posts: 65
Re: Sean's Optimum Branch Merge

Thanks Gerhard
spotted the wx version as soon as i posted it, its been a while since i set up my build environment, time for an upgrade maybe. I appreciate the advantages of Xcode and have it installed, i guess i have stuck with cmake as i remember that was the way O was first compiled on the mac and the mac dev manual has never really said otherwise. Agreement on the way forward for dev on the mac would certainly better utilise our limited resources.

Mo
Icnoships is offline   Reply With Quote
Old 14-05-2014, 05:18   #59
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: Sean's Optimum Branch Merge

Sean...

ChartSymbols::GetImage fails on the very first load of an image, with rasterSymbolsLoadedColorMapNumber == (-1), the default.

Actual fail is in LoadRasterFileForColorTable(rasterSymbolsLoadedCol orMapNumber, false, true);

I guess we need another step to get the proper very first symbol set loaded.

At this point, probably quicker for you to see the solution. I'll catch up soon.

Dave
bdbcat is offline   Reply With Quote
Old 14-05-2014, 05:19   #60
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: Sean's Optimum Branch Merge

Quote:
Originally Posted by conachair View Post
All good again with plugins showing after a fresh install from scratch of lubuntu onto the cubietruck.

With one glitch.....
The main OpenCpn window seems to regain the focus all the time, for instance, it's not possible to input any boat data etc into the logbook konni plugins because it seems to get greyed out immediately and the main chart window regain the focus.

This seems to be global, it isn't possible to have any other windows on top or to minimise the OpenCpn main window.

Is there a checkbox somewhere for this?

Thanx again.

Sent from my SGP312 using Tapatalk
Are you sure you pulled the latest code? The change likely causing this on some linux versions is already reverted in the master.

Pavel
nohal is offline   Reply With Quote
Reply


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
Two-pole branch protection witzgall Electrical: Batteries, Generators & Solar 12 19-11-2013 08:53
Optimum Dagger Board Use solarbri Multihull Sailboats 15 03-03-2013 13:56
Linux link error on master branch teotwawki OpenCPN 4 19-10-2012 06:13
VHF antenna optimum height bobalpep Marine Electronics 13 04-03-2009 09:38
Marine Accident Investigation Branch (UK Govt) David_Old_Jersey Health, Safety & Related Gear 3 05-02-2007 15:30

Advertise Here


All times are GMT -7. The time now is 13:02.


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.