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 01-10-2016, 19:58   #1801
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,405
Re: Beta Test / Technical

Sean/Pavel...

I partially reverted support for c++11, taking Sean's suggestion.

So, please adjust/cancel your pull requests to conform to this new method.
Feel free to use std c++11, if it suits, and add files to the list as necessary.

Sorry for the run-around.

Dave
bdbcat is offline   Reply With Quote
Old 01-10-2016, 23:42   #1802
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,160
Re: Beta Test / Technical

W10 VS2013 A Debug issue
I've problem debugging BR24Radar_pi. It seems to hang when updating a menu and I use a click button.
My first trace is it could be connected to this alert I get when I click on O-Tools button when BR24 is not included in the debug.
Any bells?
Thanks Håkan
Attached Thumbnails
Click image for larger version

Name:	Debug_Alert.PNG
Views:	154
Size:	49.4 KB
ID:	132142  
Hakan is offline   Reply With Quote
Old 02-10-2016, 15:28   #1803
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

Quote:
Originally Posted by bdbcat View Post
I'll implement for ENC. Should be quick and clean.

Comments?
Dave

Dave,

Looked at your commit that hashes the path to create unique S57 file names. I am sure this will work.

I just like to be able to efficiently and unambiguously determine if "cached" data is obsolete. The present code is unambiguous I believe. It's probably not as efficient as it could but I'll stick with the old proverb that says "premature optimization is the root of all evil".

Dan
transmitterdan is offline   Reply With Quote
Old 06-10-2016, 04:46   #1804
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,160
Re: Beta Test / Technical

In Win10 VS2013 I'm not able to debug OCPN (incl Dashboard & WMM)
It starts to open OCPN but on a white canvas and not yet a tools menu I get a break in appbase.cpp: (Call stack below)
I'm not capable of solving this, anyone else please?
Code:
>>>>> Break in appbase.cpp row 1077
// default assert handler
static void
wxDefaultAssertHandler(const wxString& file,
                       int line,
                       const wxString& func,
                       const wxString& cond,
                       const wxString& msg)
{
    // If this option is set, we should abort immediately when assert happens.
    if ( wxSystemOptions::GetOptionInt("exit-on-assert") )
        wxAbort();

    // FIXME MT-unsafe
    static int s_bInAssert = 0;

    wxRecursionGuard guard(s_bInAssert);
    if ( guard.IsInside() )
    {
        // can't use assert here to avoid infinite loops, so just trap
Break--->   wxTrap();   

        return;
    }
<<<<<<<<<<


  Important or not but while looping F11 around it is running this 
  wxendbusycursor and eventually return to the wxTrap() break.
>>>>>>> opencpnplatform.cpp row 1233
       #if wxCHECK_VERSION(2, 9, 0 )
//    if( ::wxIsBusy() )
    {
        ::wxEndBusyCursor();
    }
    #endif
#endif    
}
<<<<

>>>>
    / Restore cursor to normal
void wxEndBusyCursor()
{
    wxCHECK_RET( gs_wxBusyCursorCount > 0,
                 wxT("no matching wxBeginBusyCursor() for wxEndBusyCursor()") );

    if ( --gs_wxBusyCursorCount == 0 )
    {
#ifndef __WXMICROWIN__
        ::SetCursor(gs_wxBusyCursorOld);
#endif
        gs_wxBusyCursorOld = 0;
    }
}
<<<<<<<<<<<
Call stack:
[00] OCPNPlatform::HideBusySpinner c:\builds\ocpn\opencpn\src\ocpnplatform.cpp:1233
[01] cm93chart::SetVPParms c:\builds\ocpn\opencpn\src\cm93.cpp:2249
[02] cm93compchart::PrepareChartScale c:\builds\ocpn\opencpn\src\cm93.cpp:5069
[03] cm93compchart::SetVPParms c:\builds\ocpn\opencpn\src\cm93.cpp:4979
[04] cm93compchart::RenderRegionViewOnGL c:\builds\ocpn\opencpn\src\cm93.cpp:5389
[05] glChartCanvas::RenderQuiltViewGL c:\builds\ocpn\opencpn\src\glchartcanvas.cpp:2762
[06] glChartCanvas::RenderCharts c:\builds\ocpn\opencpn\src\glchartcanvas.cpp:3074
[07] glChartCanvas::Render c:\builds\ocpn\opencpn\src\glchartcanvas.cpp:3637
[08] glChartCanvas::OnPaint c:\builds\ocpn\opencpn\src\glchartcanvas.cpp:1084
[09] wxAppConsoleBase::HandleEvent c:\wxwidgets-3.0.2\src\common\appbase.cpp:612
[10] wxAppConsoleBase::CallEventHandler c:\wxwidgets-3.0.2\src\common\appbase.cpp:624
[11] wxEvtHandler::ProcessEventIfMatchesId c:\wxwidgets-3.0.2\src\common\event.cpp:1394
[12] wxEventHashTable::HandleEvent c:\wxwidgets-3.0.2\src\common\event.cpp:998
[13] wxEvtHandler::TryHereOnly c:\wxwidgets-3.0.2\src\common\event.cpp:1589
[14] wxEvtHandler::TryBeforeAndHere c:\wxwidgets-3.0.2\include\wx\event.h:3671
[15] wxEvtHandler::ProcessEventLocally c:\wxwidgets-3.0.2\src\common\event.cpp:1522
[16] wxEvtHandler::ProcessEvent c:\wxwidgets-3.0.2\src\common\event.cpp:1495
[17] wxEvtHandler::SafelyProcessEvent c:\wxwidgets-3.0.2\src\common\event.cpp:1613
[18] wxWindowBase::HandleWindowEvent c:\wxwidgets-3.0.2\src\common\wincmn.cpp:1526
[19] wxWindow::HandlePaint c:\wxwidgets-3.0.2\src\msw\window.cpp:4857
[20] wxWindow::MSWHandleMessage c:\wxwidgets-3.0.2\src\msw\window.cpp:2856
opencpn.exe has triggered a breakpoint.
Hakan is offline   Reply With Quote
Old 06-10-2016, 07:37   #1805
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,405
Re: Beta Test / Technical

Hakan...

This is wxWidgets being picky, but we do have some logic issue on busy spinner.

To get by temporarily, make this change to OCPNplatform.cpp:

Code:
    #if wxCHECK_VERSION(2, 9, 0 )
    if( ::wxIsBusy() )
    {
        ::wxEndBusyCursor();
    }
    #endif
Remove "//" from line 1231.

I'm off line for a few days hiding from Matthew....

Good Luck
Dave
bdbcat is offline   Reply With Quote
Old 06-10-2016, 08:43   #1806
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,160
Re: Beta Test / Technical

Dave
Thanks, that solved it for now.
Happy hiding and please take the strength out of Matthew before he cross the north Atlantic and pass us.
Håkan
Hakan is offline   Reply With Quote
Old 07-10-2016, 07:47   #1807
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

In latest git (6 October 2016 8PM EDT) I see a strange opengl problem. When zooming charts from US ENC no issues. But when zooming charts from Inland ACE lots of problems with failure to erase and replace the region outside the chart boundaries.
Attached Thumbnails
Click image for larger version

Name:	2016-10-07 (1).png
Views:	136
Size:	167.0 KB
ID:	132478  
transmitterdan is offline   Reply With Quote
Old 07-10-2016, 13:49   #1808
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,654
Images: 2
Re: Beta Test / Technical

Yes Tdan, I get this too. The river rewrites itself multiple times at different scales, etc
rgleason is offline   Reply With Quote
Old 10-10-2016, 13:23   #1809
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,160
Re: Beta Test / Technical

I hope Matthew has passed you all without serious damages. I've seen some movies also over here and realize my earlier not so wise attempt to joke isn't the most clever thing I've said. I sorry if I was misunderstood and it wasn't at all my intention to be flippant.
Håkan
Hakan is offline   Reply With Quote
Old 10-10-2016, 15:45   #1810
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,419
Re: Beta Test / Technical

Quote:
Originally Posted by transmitterdan View Post
In latest git (6 October 2016 8PM EDT) I see a strange opengl problem. When zooming charts from US ENC no issues. But when zooming charts from Inland ACE lots of problems with failure to erase and replace the region outside the chart boundaries.
Maybe these charts store the regions in a different winding direction?

Where did you get these charts? Is this a new problem? How does it work both with and without opengl?
seandepagnier is offline   Reply With Quote
Old 11-10-2016, 04:05   #1811
Registered User

Join Date: Oct 2014
Posts: 274
Re: Beta Test / Technical

Quote:
Originally Posted by transmitterdan View Post
In latest git (6 October 2016 8PM EDT) I see a strange opengl problem. When zooming charts from US ENC no issues. But when zooming charts from Inland ACE lots of problems with failure to erase and replace the region outside the chart boundaries.
The problem also exists in the official build of OpenCPN 4.4.0 downloaded from the link at opencpn.org. It is not caused by any new code. It is caused by OpenCPN's handling of the 3UABUOYS.000 ENC from USACE. This chart is mostly transparent. When the chart canvas is repainted, and 3UABUOYS is included in the quilt, and 3UABUOYS covers the whole canvas, the code in OpenCPN assumes that the old image on the canvas will be hidden by the image of 3UABUOYS. So, the old image on the canvas is not cleared before repainting as required for the pan or zoom. This works for most charts, but fails if a transparent chart is being painted.

Paul
.Paul. is offline   Reply With Quote
Old 11-10-2016, 04:19   #1812
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

Paul,

Thanks for the diagnosis. I can check whether there is an easy fix. Maybe someone is already on it.
transmitterdan is offline   Reply With Quote
Old 11-10-2016, 04:29   #1813
Registered User

Join Date: Oct 2014
Posts: 274
Re: Beta Test / Technical

ENC chart 3UABUOYS covers a very large area. The chart border is shown in this screenshot:
Click image for larger version

Name:	3UABUOYS.png
Views:	169
Size:	38.3 KB
ID:	132684
In addition to covering most of the IENC charts from USACE, it covers some of the coastal waters of the southeastern US.

Paul
.Paul. is offline   Reply With Quote
Old 21-10-2016, 05:35   #1814
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Beta Test / Technical

Dave
Coming back to an old bug, that's not really fixed.
Maybe it's a good time now, or I can enter the bug in the tracker.
I have a chart group consisting of nos/geo and BSB2 charts.
When panning around I always get a crash. This particular crash is using the master git, but IIRC the problem has been there all through the 4.* releases.

Click image for larger version

Name:	nos-geo.png
Views:	143
Size:	46.5 KB
ID:	133356

Thomas
cagney is offline   Reply With Quote
Old 21-10-2016, 11:38   #1815
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Beta Test / Technical

Quote:
Originally Posted by cagney View Post
Dave
Coming back to an old bug, that's not really fixed.
Maybe it's a good time now, or I can enter the bug in the tracker.
I have a chart group consisting of nos/geo and BSB2 charts.
When panning around I always get a crash. This particular crash is using the master git, but IIRC the problem has been there all through the 4.* releases.

Attachment 133356

Thomas
Thomas,

Can you find a way to share the chart files with me and instructions how to repeat the crash? I'll be happy to fire up a debug version and see if I can trap the crash. I normally debug on Windows but if this is a generic issue (e.g.null pointer) then it will find it right away.

Dan
transmitterdan 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
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 13:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 15:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 04:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 14:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 16:25

Advertise Here


All times are GMT -7. The time now is 07:01.


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.