Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 13-09-2014, 18:19   #91
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,813
Re: OpenCPN Beta Version 3.3.2107 Released

Quote:
Originally Posted by CarCode View Post
So why not rewrite OpenCPN with Qt instead of using wxWidgets and wxQt?
It seems to be the better choice.

Gerhard
This is a smaller step which doesn't change OpenCPN much, but allows it to run on android natively. Using Qt directly would require a lot of changes.

Qt is a very large complete library which mostly supports everything wxWidgets does and much more. Compressed, wxWidgets libraries are 1.5MB. To redistribute the Qt libraries is 13MB. It is possible to reduce this to about 6MB by distributing only what libraries we need, but it's still a lot larger. The program would also have a slower start time.

If we moved to qt, we would likely have less cross-platform issues, would support more platforms etc.

Besides a few minor differences, I don't see much advantage/disadvantage of one toolkit over the other. Maybe the biggest one is the widgets have more options in Qt, and so future developments would allow more possibilities.

If anyone has a fork of OpenCPN working toward native Qt support, I can help testing and debugging. However there are plenty of other things to work on which have nothing to do with wx/qt so I would wait until maybe 2018 if it still makes sense then.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 13-09-2014, 19:38   #92
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,400
Re: OpenCPN Beta Version 3.3.2107 Released

Should Windows compiling be moving to wxWidgets 3.x yet? Or would it create more trouble? Seems like a decent time to make the switch, just thinking about 3.2.2 ---> 3.3 whatever step/time when it is released.
__________________

__________________
rgleason is online now   Reply With Quote
Old 13-09-2014, 21:53   #93
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN Beta Version 3.3.2107 Released

Rick...

I cannot see any particular reason to move from wx2.8 to wx3.x for Windows. As far as I can tell, wx3 makes some improvements to many of the built-in classes, but was really targeted toward further cross-platform compatibility. For example, it is a major big thing for 64bit Mac application development.

However, there is nothing in wx2.8 that is causing us and/or OCPN any heartburn on Windows.

And just to be clear, nothing related to OpenGL has anything to do with the wx version. They are almost completely decoupled. wx provides a blank initialized OpenGL canvas (or context) to an application, and the app accesses the OpenGL library directly.

So lets not assume that wx3 will fix Intel OpenGL display problems, for example...


But I will listen to counter-arguments....

Dave
__________________
bdbcat is offline   Reply With Quote
Old 14-09-2014, 06:40   #94
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,400
Re: OpenCPN Beta Version 3.3.2107 Released

Quote:
I cannot see any particular reason to move from wx2.8 to wx3.x for Windows
Thanks for the explanation, just thought it would bring us current with Mac and might make things easier later, but your explanation is helpful.
__________________
rgleason is online now   Reply With Quote
Old 15-09-2014, 01:33   #95
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Re: OpenCPN Beta Version 3.3.2107 Released

Continuing my tests following my post #87 above
I compiled git then running in release mode I got the same result
but in debug mode it's even worse :
1) CM93 : O do not run OpenGL ON or OFF in any case - crash with dump attached "Crash-CM93"
2) Rasters
- starting openGL OFF OK runs correctly
- switching to ON
O do not run - crash dump attached "Crash-Rasters-GL"
as the only mean to run rasters in GL mode is to manipulate as explained in #87 and CM93 do not run, it's impossible to start in GL mode in debug mode (same crash)

Jean Pierre
Attached Thumbnails
Click image for larger version

Name:	Crash-CM93.jpg
Views:	69
Size:	177.1 KB
ID:	88180   Click image for larger version

Name:	Crash-Rasters-GL.jpg
Views:	63
Size:	177.7 KB
ID:	88181  

__________________
Ptizef is offline   Reply With Quote
Old 15-09-2014, 02:16   #96
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: OpenCPN Beta Version 3.3.2107 Released

Quote:
Originally Posted by bdbcat View Post
I cannot see any particular reason to move from wx2.8 to wx3.x for Windows. As far as I can tell, wx3 makes some improvements to many of the built-in classes, but was really targeted toward further cross-platform compatibility. For example, it is a major big thing for 64bit Mac application development.

However, there is nothing in wx2.8 that is causing us and/or OCPN any heartburn on Windows.

And just to be clear, nothing related to OpenGL has anything to do with the wx version. They are almost completely decoupled. wx provides a blank initialized OpenGL canvas (or context) to an application, and the app accesses the OpenGL library directly.

So lets not assume that wx3 will fix Intel OpenGL display problems, for example...


But I will listen to counter-arguments....

Dave
I don't follow the Windows diffs in wxWidgets but as said for Mac OS X it is strongly recommended to use the very latest version of wx. Just today this commit below was published for Mac OS X:
Quote:
Commit: 3d09a6efc2e6a36fed49ddf4f8e03756c076572e [3d09a6e]
Parents: 6d0f27a4cc
Author: Vadim Zeitlin <vadim@wxwidgets.org>
Date: 15. September 2014 01:08:30 MESZ
Subversion Revision: 77701

Request hardware accelerated GL under OS X only if it's available.

Otherwise wxGLCanvas creation just fails completely when it isn't, e.g. when
running inside a VM.

Closes #16555.
And see this comment in wx source file glcanvas.mm:
Quote:
// Test if we support hardware acceleration, we always want to use it if it
// is available and, apparently, in spite of the Apple docs explicitly
// saying the contrary:
//
// If present, this attribute indicates that only hardware-accelerated
// renderers are considered. If not present, accelerated renderers are
// still preferred.
//
// hardware acceleration is not always used without it, so we do need to
// specify it. But we shouldn't do it if acceleration is really not
// available.
Gerhard
__________________
CarCode is online now   Reply With Quote
Old 15-09-2014, 06:26   #97
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,400
Re: OpenCPN Beta Version 3.3.2107 Released

MSVC++ Git pull and cmake
1 warning
============
Code:
Build succeeded.

"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\plugins\dashboard_pi\dashboard_pi.vcxproj" (default target) (8) ->
"C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj" (default target) (10) ->
(ClCompile target) ->
  c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(632): warning C4005: 'M_PI' : macro redefinition [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]
    1 Warning(s)
    0 Error(s)
__________________
rgleason is online now   Reply With Quote
Old 15-09-2014, 07:18   #98
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN Beta Version 3.3.2107 Released

Jean Pierre..
There is some trouble on your netbook with setting up OpenGL Frame Buffers. This particular problem has not been seen on any other Intel integrated graphics, although they have other problems....

I wonder if the order of OpenGL calls in the tests makes a difference?

Please try this change and see what happens:

In glChartCanvas.cpp, line:961:

Change this:

Code:
    if( m_b_BuiltFBO ) {
        // Check framebuffer completeness at the end of initialization.
        ( s_glBindFramebuffer )( GL_FRAMEBUFFER_EXT, m_fb0 );
        
        ( s_glFramebufferTexture2D )
        ( GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,
          g_texture_rectangle_format, m_cache_tex[0], 0 );
to this:

Code:
    if( m_b_BuiltFBO ) {
        // Check framebuffer completeness at the end of initialization.
        
        ( s_glFramebufferTexture2D )
        ( GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,
          g_texture_rectangle_format, m_cache_tex[0], 0 );

        ( s_glBindFramebuffer )( GL_FRAMEBUFFER_EXT, m_fb0 );
Note the slight rearrangement of calls.

Then rebuild and try GL mode.

I'm glad you can test and build from source. Very helpful.

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 15-09-2014, 09:49   #99
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,249
Re: OpenCPN Beta Version 3.3.2107 Released

Quote:
Originally Posted by cagney View Post
Dave

I tested to build with wx 3.0 again. Still a run-time error (FS1383).

Going back to wx 2.8 I had a spanking clean environment, and had a crash I never seen before. Clicking on "Options" I get this.

Attachment 88133

Only the Grib & Dashboard plugins enabled.

Last line in opencpn.log


Kubuntu 14.04 amd64.

Thomas
Dave & Pavel

I just pulled the latest update from git.
Still a crash when pressing options, but the message has changed

Quote:
(gdb) run
Starting program: /home/thomas/Testing/GitHub/OpenCPN_alpha/OpenCPN/build/opencpn
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea50b700 (LWP 6884)]
[New Thread 0x7fffe9d0a700 (LWP 6885)]
[New Thread 0x7fffd6d73700 (LWP 6894)]
17:37:54 CEST: Chart cache purge
[Thread 0x7fffd6d73700 (LWP 6894) exited]
[Thread 0x7fffe9d0a700 (LWP 6885) exited]
[Thread 0x7fffea50b700 (LWP 6884) exited]
[Inferior 1 (process 6878) exited with code 0377]
(gdb) b
No default breakpoint address now.
(gdb)
Is this one of those crashes that corrupt stack content ...?

My opencpn.conf contains this line
Quote:
[PlugIns/libobjsearch_pi.so]
bEnabled=0
In spite of this the log contains these lines
Quote:
17:19:12 CEST: PlugInManager: Loading PlugIn: /usr/local/lib/opencpn/libobjsearch_pi.so
17:19:12 CEST: OBJSEARCH_PI: Database file to be used: /home/thomas/.opencpn/squiddio/objsearch_pi.db
17:19:12 CEST: OBJSEARCH_PI: DB Exception: 1 : SQL logic error or missing database[1]: no such column: scale
Is there a connection here ?

Thomas
__________________
cagney is offline   Reply With Quote
Old 15-09-2014, 10:02   #100
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: OpenCPN Beta Version 3.3.2107 Released

Thomas...
Should not be connected.
Can you mail me /home/thomas/.opencpn/squiddio/objsearch_pi.db?

Thanks

Pavel
__________________
nohal is offline   Reply With Quote
Old 15-09-2014, 13:30   #101
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 743
Re: OpenCPN Beta Version 3.3.2107 Released

[QUOTE=bdbcat;1628351]
Please try this change and see what happens:

Dave[/QUOTE

Tested . No change
still same crashes and same instability

There must be something in the different tests ( caching invalid when selecting GL mode, but becoming valid after a restart ) and treated differently in release and debug mode

Jean Pierre
__________________
Ptizef is offline   Reply With Quote
Old 15-09-2014, 22:07   #102
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN Beta Version 3.3.2107 Released

jp...

Please pull the latest github, and try again.

I disabled FBOs for "Intel Mobile" graphics on Windows.
We need to do this until I can get my hands on a machine with this configuration.

Its too bad, because FBOs are an important speed factor, especially for vector charts. FBOs are like a cache of the screen contents. When you pan with FBOs, the code only needs to render the new objects coming on screen. The old objects already drawn are simply copied from the last screen, effectively. Makes a big difference in panning responsiveness.

But really, now, there is no excuse for a standard OpenGL function to crash during simple setup, even if the parameters are bad. It should at least return, even if it fails logically. The Intel drivers are very flakey...


Please tell me again what exact machine you are using. I forgot...
I'll try to find one somewhere.

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 16-09-2014, 01:14   #103
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 270
Re: OpenCPN Beta Version 3.3.2107 Released

recorded video display problems identified S-57
https://www.dropbox.com/s/5xzb9qjfb7...t_s57.mp4?dl=0
__________________
Baikal is offline   Reply With Quote
Old 16-09-2014, 02:20   #104
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,766
Re: OpenCPN Beta Version 3.3.2107 Released

Baikal,

nice video - are the charts from Lake Baikal public and available (for free)?

The grey zones and the problems with tiling (clipped objects and texts) we have described as well for the S-63 charts earlier in the thread and Dave is aware of it.
Blocked overzoom is acknowledged as well.

What else have we missed?

Hubert
__________________
bcn is online now   Reply With Quote
Old 16-09-2014, 02:34   #105
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,777
Re: OpenCPN Beta Version 3.3.2107 Released

Quote:
Originally Posted by Baikal View Post
recorded video display problems identified S-57
https://www.dropbox.com/s/5xzb9qjfb7...t_s57.mp4?dl=0
A nice example of the wonderful world of "optimizations" which has made OpenCPN unusable...

Gerhard
__________________

__________________
CarCode is online now   Reply With Quote
Reply

Tags
enc, lease, 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 Beta Version 3.1.814 Released bdbcat OpenCPN 185 14-09-2012 08:43
OpenCPN Beta Version 3.1.802 Released bdbcat OpenCPN 158 14-08-2012 11:07
OpenCPN Beta Version 3.1.714 Released bdbcat OpenCPN 91 01-08-2012 18:08



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 11:55.


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.