Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 16-07-2014, 07:56   #151
Registered User

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

Jean Pierre,
I see some logical errors in GetInterpolatedParameters.
See attached pics.

Gerhard
Attached Thumbnails
Click image for larger version

Name:	Logic-Error1.png
Views:	82
Size:	270.6 KB
ID:	85061   Click image for larger version

Name:	Logic-Error2.png
Views:	82
Size:	272.5 KB
ID:	85062  

__________________

__________________
CarCode is offline   Reply With Quote
Old 16-07-2014, 14:35   #152
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: OpenCPN Beta Version 3.3.1824 Released

Quote:
Originally Posted by Ptizef View Post
Sean

You can get the file here

http://first-escape.com/sail/doc/GFS...14154505494.7z

I had curious behavior with this file
In debug mode it crashed on "delete m_pTimelineSet"
Correcting this permit to work but still crashed in release mode with the same sources !
A the end, only deactivating BMS data allowed it working in any case
There is something wrong in BMS treatment, but I didn't find it
Jean Pierre
I reproduced the problem. I needed a slight change in how it allocates the BMSbits, so I don't think it will crash anymore.

There are some issues with how it renders the numbers and arrows in orientations besides north up, a completely different problem.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 17-07-2014, 05:51   #153
Registered User

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

Quote:
Originally Posted by boat_alexandra View Post
I reproduced the problem. I needed a slight change in how it allocates the BMSbits, so I don't think it will crash anymore.
Right . After your last commit, every things seems OK
Thanks

Quote:
Originally Posted by boat_alexandra View Post
There are some issues with how it renders the numbers and arrows in orientations besides north up, a completely different problem.
[/QUOTE]

I suppose you are speaking about "Course up" mode as numbers, waves and current arrows are not re-oriented
In a to do list

Jean Pierre
__________________
Ptizef is offline   Reply With Quote
Old 17-07-2014, 10:13   #154
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: OpenCPN Beta Version 3.3.1824 Released

Quote:
Originally Posted by Ptizef View Post
I suppose you are speaking about "Course up" mode as numbers, waves and current arrows are not re-oriented
In a to do list

Jean Pierre
As far as I can tell, everything is re-oriented correctly. The problem is more subtle.

The spacing between the numbers and arrows calculation is incorrect, so few arrows and numbers are shown at 45 degrees of rotation.
__________________
boat_alexandra is offline   Reply With Quote
Old 18-07-2014, 03:52   #155
Registered User

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

Cast to "void *" from "int" does not work here in s52plib.cpp in function s52plib::RenderToGLAC()
Code:
glVertexPointer(2, GL_FLOAT, 8, (void *)(vbo_offset));
vbo_offset might be changed to type size_t at initializing.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 19-07-2014, 06:28   #156
Registered User
 
rgleason's Avatar

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

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\S57ENC.vcxproj" (default target) (6) ->
(ClCompile target) ->
  ..\src\s52plib.cpp(380): warning C4305: '=' : truncation from 'double' to 'float' [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\S57ENC.vcxproj]


"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) ->
  ..\src\Route.cpp(656): warning C4305: 'initializing' : truncation from'double' to 'float' [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]

  ..\src\Route.cpp(665): warning C4305: '-=' : truncation from 'double' to 'float' [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]
  c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(632): wa
rning C4005: 'M_PI' : macro redefinition [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]
  ..\src\gshhs.cpp(825): warning C4101: 'ok' : unreferenced local variable [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]
  ..\src\gshhs.cpp(824): warning C4101: 'file' : unreferenced local variable [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]
  ..\src\gshhs.cpp(894): warning C4101: 'a1' : unreferenced local variable [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]
  ..\src\gshhs.cpp(895): warning C4101: 'b2' : unreferenced local variable [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]
  ..\src\gshhs.cpp(895): warning C4101: 'a2' : unreferenced local variable [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]
  ..\src\gshhs.cpp(894): warning C4101: 'b1' : unreferenced local variable [C:\Data-Dart\Up-Soft\Navigation\opencpn-git\build\opencpn.vcxproj]

    10 Warning(s)
    0 Error(s)
cpack worked! wow
__________________
rgleason is online now   Reply With Quote
Old 20-07-2014, 09:57   #157
Registered User

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

In the area around Gothenburg in Sweden, ~ 57 40 N,11 45 E, O is struggling a bit when transiting from a CM93 C scale chart to a E scale chart.
First the C view:
Click image for larger version

Name:	cm93C.png
Views:	93
Size:	205.0 KB
ID:	85254

And the E view:
Click image for larger version

Name:	cm93E.jpg
Views:	107
Size:	440.6 KB
ID:	85255

In both cases I'm using Display Category "All", CM 93 detail level "0" and "Reduced detail at small scale" is ticked.
Switching from C to E charts takes quite some time the first time in each session.
The E chart view is not very helpful with a cluttered display.
Increasing the scale to ~1:30.000 makes things much better.

This is on Linux. Comparing with Win 3.3.16.06 I can't see the same problem.

Thomas
__________________
cagney is offline   Reply With Quote
Old 20-07-2014, 14:41   #158
Registered User

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

Thomas, Dave

I get something very similar with W8.1 ( see shot test1 attached )
But not only at this position, but generally in all this region ( see second shot test2)
I get the same with my second device and Vista ( see third shot test 3)

At these positions, when zooming and panning very frequently the system hangs and sometime crashes ( see shot hang)

Jean Pierre
Attached Thumbnails
Click image for larger version

Name:	Test1.jpg
Views:	79
Size:	432.2 KB
ID:	85264   Click image for larger version

Name:	test2.jpg
Views:	76
Size:	431.8 KB
ID:	85265  

Click image for larger version

Name:	test3.jpg
Views:	76
Size:	354.6 KB
ID:	85266   Click image for larger version

Name:	hang.jpg
Views:	79
Size:	71.1 KB
ID:	85267  

__________________
Ptizef is offline   Reply With Quote
Old 20-07-2014, 19:40   #159
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,882
Re: OpenCPN Beta Version 3.3.1824 Released

Cagney et JP...

This is coming from Release Note :
Code:
273.  Improve cm93 chart scale selection logic to preclude overzoom where possible.
At the location you indicate, here is what happens:
1. Showing C" scale, OK.
2. Zoom in.
3. Calculate overzoom factor on C scale. Overzoom is too high, so we want to switch to a larger scale chart. Try to find "D" chart.
4. However, there is no "D" scale cm93 chart here,
5. So switch to the "E" scale chart.
6. However, the "E" scale chart is very "under-zoomed", so takes a long time to render, and is very cluttered.

This is maybe a pathological case/location, where the cm93 chart set jumps from "C" to "E", without a "D" step.

But I suspect it may actually be a very common situation.

So I suppose that I need to modify the logic such that "small Overzoom" is preferable to "large Underzoom".

jp. I would like to see some more info/dump report on a crash or hang in this condition.

Thanks
Dave
__________________
bdbcat is offline   Reply With Quote
Old 21-07-2014, 01:30   #160
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 233
Re: OpenCPN Beta Version 3.3.1824 Released

Hi there,

I went sailing over the weekend and noticed several hangups after a couple of hours.
I only used dashboard + AIS. No routes, now waypoints, no grib, etc.
I ran O with OpenGL off, as it needs less current (0.3 Amps) w/o OpenGL.

On any hangup, O ran unattendely inside the boat, so there was no user interaction.
It looks like O freezes completely, there's no more data visible in dahboard and also the screen's not refreshed anymore (if you move the main window of O, the background turns black). As if it was in an infinite loop ...
But it doesn't draw much CPU, 2-4 % only.
On Saturday, I had to kill it via task manager (and the wole track was lost) , on Sunday I was able to stop O as normal. The track was saved then, but had stopped some distance away from the current position (probably when it had hung up).
No error messages in the log file at all.
Codebase was 15.07., compiled in release mode. I'm using Win7, 64 bit on my Fujitsu Esprimo Mobile laptop (As usual), with CM93.2 charts.

I noticed one more thing, only with OpenGL on (!). See screenshot with markup please. Those grey squares disappear as soon as you turn off OpenGL.

Uploading several waypoint via standard NMEA port to Garmin GPS 152 seems to work now.

Thomas
Attached Thumbnails
Click image for larger version

Name:	ocpn_squares.gif
Views:	82
Size:	77.0 KB
ID:	85292  
__________________
tom_BigSpeedy is offline   Reply With Quote
Old 23-07-2014, 01:39   #161
Registered User

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

Hi Dave

Back to the crash we discussed recently you couldn't reproduce
Conditions : touch screen activated

I tested with new compilation on my W8.1 :
in debug mode : no dump, the system hang definitely and I have to cancel debugger

in release mode : no surprise, the background (the map) become black, the other windows if any stay visible. If a windows is open, (for example the WP properties, I can move it. As if O would not be crashed but lost somewhere in a endless loop
And off course no proposal of a crash report

Could you try this process :
- touch screen ON
- have a route not too far from a track
- scale around 50000
- drag a route point to very near the track (in it's selection area or more probably in a track point selection area)

For me it crashes each time

Jean Pierre
__________________
Ptizef is offline   Reply With Quote
Old 23-07-2014, 04:08   #162
Registered User

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

Jean Pierre,
the event system of OpenCPN should be reworked.
Instead of using static event tables the dynamically connection with wxEvtHandler::Bind<>() is more flexible and may avoid unexpected crashes.
Gerhard
__________________
CarCode is offline   Reply With Quote
Old 23-07-2014, 07:18   #163
Registered User

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

Quote:
Originally Posted by bdbcat View Post
Cagney et JP...
jp. I would like to see some more info/dump report on a crash or hang in this condition.
Thanks
Dave
It happens and easily reproducible in a zone inside about
50N 60N - 4E- 7E (west cost of Norway)

when zooming, we can see many obstruction or rocks marks (*)
Choose an area particularly clustered by these marks and zoom abruptly on it
Generally the system hang and sometime, the background (chart ) become black. That what I called crash, but in fact it's not really crashed. If I wait, after a while, I get the zoomed chart

I tried in debug mode and it's the same, without black background but even longer as debug mode is very-very slow on this low powered machine

Jean Pierre
__________________
Ptizef is offline   Reply With Quote
Old 23-07-2014, 10:06   #164
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,882
Re: OpenCPN Beta Version 3.3.1824 Released

Ptizef....

I tried your test case on my Win 8.1 tablet.
No problems.

But maybe I do not understand the environment/situation.
I attach a low quality video of my test.
What am I doing wrong?

https://www.dropbox.com/s/k6zrelw9ocltvvo/win81test.mp4

Also, if you can reproduce the problem in VS2010 Debug mode, it might be useful to break into the running program (Debug->Break All) and look at the call stack.

Dave
__________________
bdbcat is offline   Reply With Quote
Old 24-07-2014, 07:57   #165
Registered User

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

Dave

Your test seems the same as mine

I easily reproduce as much as I want in debug mode but as I said, O freeze and VS2010 give me absolutely nothing. When I click on "stop the debugger", VS2010 closes the O Windows and that it. No call stack
And no other option menu to click on
May be My debug enthronement is not correctly set ?

I attach here a small partial video of the crash

Jean Pierre
Attached Thumbnails
Click image for larger version

Name:	debugmenu.jpg
Views:	72
Size:	194.6 KB
ID:	85487  
Attached Files
File Type: pdf test.exe.pdf (464.7 KB, 19 views)
__________________

__________________
Ptizef is offline   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 20:51.


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.