Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-06-2015, 19:33   #61
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: OpenCPN Beta test 4.1.602 Release

Another image zoomed in on the google image, in the problem state, cursor hovering over the skewed chart.

The area around the google image is pink as if it were part of the skewed chart, but it is not.

Also one last weird thing: If I leave the cursor hovering over the skewed chart like this, approximately every 2 seconds the pink area becomes more opaque until no chart detail is visible, only pink.
Attached Thumbnails
Click image for larger version

Name:	Problem2.jpg
Views:	98
Size:	353.1 KB
ID:	103440  
__________________

__________________
NahanniV is online now   Reply With Quote
Old 09-06-2015, 11:41   #62
Registered User

Join Date: Apr 2015
Location: San Francisco
Posts: 65
Re: OpenCPN Beta test 4.1.602 Release

Pardon me if this is dumb, I'm not familiar with the thread model or how locking/concurrency works in OCPN (yet).

WRT the null pointer SEGV reported in #11 (which is 100% reproducible using the flow in FS#1764):

The code that deletes routes (RouteManagerDialog::OnRteDeleteClick) is pretty straight-forward, but the code that detects selectable objects (ChartCanvas::OnRolloverPopupTimerEvent) sees visible objects even after they're deleted. Is it possible there's a race condition here? I don't see any object locking/unlocking. The crash happens only when there are many points in the route which take longer to delete than a direct path.

Changing m_rollover_popup_timer_msec from 20 to 1000 made the crash go away, but that's not a good solution.
__________________

__________________
fogmachine is offline   Reply With Quote
Old 12-06-2015, 20:14   #63
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: OpenCPN Beta test 4.1.602 Release

Quote:
Originally Posted by NahanniV View Post
Yes, I am running with OpenGl.

In trying to figure out exactly what causes this, I noticed that when this happens there is always a skewed chart in the area. If I hover over the skewed chart selector the the problem area around the google map is highlighted even though the skewed chart is not in that area.
When I disable the skewed chart I do not get this problem.

The skewed chart is:

208601
Datum: NAD83
Projection: Mercator
Tried the same scenario on a Linux Laptop and had the same Problem.

Cheers,
JM.
__________________
NahanniV is online now   Reply With Quote
Old 13-06-2015, 07:47   #64
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,882
Re: OpenCPN Beta test 4.1.602 Release

NahanniV...

Regarding the trouble with google-earth charts and the image smearing:

I do not have the skewed Canadian charts for Lake Ontario. Where did you get them?

Thanks
Dave
__________________
bdbcat is online now   Reply With Quote
Old 13-06-2015, 08:00   #65
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: OpenCPN Beta test 4.1.602 Release

Quote:
Originally Posted by bdbcat View Post
NahanniV...

Regarding the trouble with google-earth charts and the image smearing:

I do not have the skewed Canadian charts for Lake Ontario. Where did you get them?

Thanks
Dave
I bought them from the CHS on a CD many years ago. That particular chart is 680KB zipped, how can I get it to you?

JM.
__________________
NahanniV is online now   Reply With Quote
Old 13-06-2015, 08:16   #66
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: OpenCPN Beta test 4.1.602 Release

Here is an example not involving Copyrighted Ancient Canadian charts or homemade Google Images, just current free US RNCs.

To duplicate the problem, zoom in on the non skewed chart 2198 until the skewed chart 2199 is off the screen then pan or zoom.

Cheers,
JM.
Attached Thumbnails
Click image for larger version

Name:	RNCSMEARING.jpg
Views:	89
Size:	282.7 KB
ID:	103661  
__________________
NahanniV is online now   Reply With Quote
Old 13-06-2015, 16:39   #67
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,882
Re: OpenCPN Beta test 4.1.602 Release

NahanniV....

Thanks for the catch on "skewed chart smearing", and finding a lat/lon in NOAA charts that causes the glitch. Easily reproduced, fix is in the works.

Root cause: Highly zoomed skewed charts can cause excessively complex region calculations, due to the nature of the rectangle-based algorithm. The code tried to see and avoid this situation, but made a wrong turn at one spot. The result was that the screen region associated with the skewed chart was miscalculated. This effect propagated through to the screen rendering loop, with erratic results.

jm, are you building from source? If so, the fix will be in github by close of play tonight.

Thanks again
Dave
__________________
bdbcat is online now   Reply With Quote
Old 14-06-2015, 11:40   #68
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: OpenCPN Beta test 4.1.602 Release

Quote:
Originally Posted by bdbcat View Post
NahanniV....

Thanks for the catch on "skewed chart smearing", and finding a lat/lon in NOAA charts that causes the glitch. Easily reproduced, fix is in the works.

Root cause: Highly zoomed skewed charts can cause excessively complex region calculations, due to the nature of the rectangle-based algorithm. The code tried to see and avoid this situation, but made a wrong turn at one spot. The result was that the screen region associated with the skewed chart was miscalculated. This effect propagated through to the screen rendering loop, with erratic results.

jm, are you building from source? If so, the fix will be in github by close of play tonight.

Thanks again
Dave
I can build it on Linux and try it tomorrow.

Thanks,
JM.
__________________
NahanniV is online now   Reply With Quote
Old 14-06-2015, 17:04   #69
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: OpenCPN Beta test 4.1.602 Release

Quote:
Originally Posted by bdbcat View Post
NahanniV....

Thanks for the catch on "skewed chart smearing", and finding a lat/lon in NOAA charts that causes the glitch. Easily reproduced, fix is in the works.

Root cause: Highly zoomed skewed charts can cause excessively complex region calculations, due to the nature of the rectangle-based algorithm. The code tried to see and avoid this situation, but made a wrong turn at one spot. The result was that the screen region associated with the skewed chart was miscalculated. This effect propagated through to the screen rendering loop, with erratic results.

jm, are you building from source? If so, the fix will be in github by close of play tonight.

Thanks again
Dave
The fix for "Skewed chart smearing" seems to work ok on Linux.

However, I forgot to mention another problem I had with the chart selector bar on Linux: It is always under OpenCPN. It's at the correct spot on the screen, it moves when the OpenCPN window is resized, but it can't be seen if the OpenCPN window is displayed.
Attached Thumbnails
Click image for larger version

Name:	2015-06-14_190027_1400x1050.png
Views:	75
Size:	158.6 KB
ID:	103753   Click image for larger version

Name:	2015-06-14_190214_1400x1050.png
Views:	79
Size:	159.9 KB
ID:	103754  

__________________
NahanniV is online now   Reply With Quote
Old 14-06-2015, 21:40   #70
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,882
Re: OpenCPN Beta test 4.1.602 Release

NahanniV...

What flavor of linux are you running with?

Thanks for testing and reporting on the smearing problem. Glad its fixed.

Dave
__________________
bdbcat is online now   Reply With Quote
Old 14-06-2015, 21:59   #71
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: OpenCPN Beta test 4.1.602 Release

Dave...
As far as I remember, Navigatrix is a remastered LUbuntu (using LXDE)
FWIW I haven't seen it with wrong z-order on Linux, ever. But what I see on Gnome Shell is it is treated like another independent window while switching tasks, it just never got annoying enough to get it fixed...

Pavel
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2015-06-14 22:57:10.png
Views:	83
Size:	45.3 KB
ID:	103757  
__________________
nohal is offline   Reply With Quote
Old 14-06-2015, 22:00   #72
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,143
Re: OpenCPN Beta test 4.1.602 Release

Quote:
Originally Posted by bdbcat View Post
NahanniV...

What flavor of linux are you running with?

Thanks for testing and reporting on the smearing problem. Glad its fixed.

Dave
It's a nautical distribution called Navagatrix.
I think it's based on Ubuntu. That laptop is at my boat, I can get more specifics tomorrow.

I take it that others are not seeing this problem ?

JM.
__________________
NahanniV is online now   Reply With Quote
Old 15-06-2015, 00:28   #73
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,019
Re: OpenCPN Beta test 4.1.602 Release

It seems that the latest git updates have broken the build process at least for me. I build in Windows 8.1 and get the following error:

LINK : fatal error LNK1181: cannot open input file 'Release\LIB_BZIP.lib' [C:\storage\obeta\OpenCPN\build\plugins\grib_pi\gri b_pi.v
cxproj]
Done Building Project "C:\storage\obeta\OpenCPN\build\plugins\grib_pi\gr ib_pi.vcxproj" (default targets) -- FAILED.

The file LIB_BZIP.dll is created but not the file LIB_BZIP.lib.
__________________
transmitterdan is offline   Reply With Quote
Old 15-06-2015, 10:31   #74
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,882
Re: OpenCPN Beta test 4.1.602 Release

TransmitterDan...

No trouble building with VS2013 on Win7.

Is the "missing" file 'Release\LIB_BZIP.lib' actually present? It is for me. It gets built as a dependency by the grib_pi target.

Maybe try to start over with a fresh build directory?

Dave
__________________
bdbcat is online now   Reply With Quote
Old 15-06-2015, 10:57   #75
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: OpenCPN Beta test 4.1.602 Release

Quote:
Originally Posted by bdbcat View Post
TransmitterDan...

No trouble building with VS2013 on Win7.

Is the "missing" file 'Release\LIB_BZIP.lib' actually present? It is for me. It gets built as a dependency by the grib_pi target.

Maybe try to start over with a fresh build directory?

Dave
This fixed it for me.

Code:
diff --git a/plugins/grib_pi/CMakeLists.txt b/plugins/grib_pi/CMakeLists.txt
index 1257330..67623f8 100644
--- a/plugins/grib_pi/CMakeLists.txt
+++ b/plugins/grib_pi/CMakeLists.txt
@@ -120,6 +120,8 @@ IF(WIN32)
 ENDIF(WIN32)
 ADD_LIBRARY(${PACKAGE_NAME} SHARED ${SRC_GRIB})
 
+SET(BUILD_SHARED_LIBS "OFF")
+
 IF(NOT UNIX)
     SET(SRC_BZIP
             src/bzip2/bzlib.c
chuck
__________________

__________________
ChuckSK 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
Beta Test / Technical bdbcat OpenCPN 2072 Today 18:48
OpenCPN for Android Beta test 4.1.530 bdbcat OpenCPN 203 07-05-2017 22:20
OpenCPN Version 2.2 Beta Test bdbcat OpenCPN 437 15-12-2010 20:17
OpenCPN Version 2.2 Beta Test Bugs / Discussion bdbcat OpenCPN 120 26-09-2010 03:53



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 18: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.