Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 02-05-2011, 13:05   #61
Registered User
 
sinbad7's Avatar

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,731
Images: 57
Send a message via Skype™ to sinbad7
Re: OpenCPN Version 2.4 Beta Build 423

Printing also works here on Vista....starting with a blanc page.
I was testing it printing to .pdf and as the first page was blanc,I
assumed the file was empty.

The page did not line up correcly though,and inch missing to the left and
a similar blanc space to the right and bottom of the map.

Tore
Attached Files
File Type: pdf Printing Chart Print.pdf (281.0 KB, 77 views)
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 03-05-2011, 10:47   #62
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,487
Re: OpenCPN Version 2.4 Beta Build 423

Hello testers!

Status report:

As you may see from Flyspray tasklist, there are enough "Solution Pending" items that I would normally be ready for a new Beta about now. And I am, except....

I would very much like to get to the bottom of these occasional Windows crashes on cm93 quilted chart dragging. Experience indicates that if we declare this issue to be an "unknowable glitch" in 423, and issue a new Beta, the problem will be temporarily masked. The probability of reappearance in the 2.5 Release or later would then be high, IME.

I have posted a debug procedure in this thread for those who can reproduce the fault. http://www.cruisersforum.com/forums/...tml#post677590

I ask that those who can do so, please try hard to reproduce and document this fault. To those who cannot, I beg your patience, please.

Thanks, and good luck
Dave
bdbcat is offline   Reply With Quote
Old 04-05-2011, 09:39   #63
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN Version 2.4 Beta Build 423

Dave,
don't have anything for the crashes, but have a little rendering issue while moving a waypoint around. FS#423 or something similar? Icon at http://www.cruisersforum.com/forums/...tml#post680199
Also this icon shows pretty clearly the reason for which I wrote the patch in FS#390

Pavel
Attached Thumbnails
Click image for larger version

Name:	artifacts.png
Views:	192
Size:	3.6 KB
ID:	26958  
nohal is offline   Reply With Quote
Old 04-05-2011, 10:04   #64
Registered User

Join Date: Feb 2010
Posts: 619
Re: OpenCPN Version 2.4 Beta Build 423

With a somewhat heavy conscience, I did check whether the panning issue on appending to route reported in Forums - Post 679471">Feature-IRJDSUNE9932123321222xxeww-Requests-IRJDSUNE9932123321222xxeww-Thread has anything to do with RenderRouteLegInfo() I added there...

It seems it is yet another difference between the binary 423 distribution and the GIT source for 423. My tally runs as follows:

- the layers gpx files location
- Polish locale strings location
- HARMONIC.IDX contents
- append to route panning behaviour
PjotrC is offline   Reply With Quote
Old 04-05-2011, 11:01   #65
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,487
Re: OpenCPN Version 2.4 Beta Build 423

PjotrC

Sorry, I am not following you.

Could you try to explain again?

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 05-05-2011, 03:41   #66
Registered User

Join Date: Feb 2010
Posts: 619
Re: OpenCPN Version 2.4 Beta Build 423

Dave...

It must be my slip on the GIT then. I have 3 running OCPN 423: downloaded installation, locally built opencpn and locally built PACKAGE setup. I recompiled and indeed I get the same behaviour now for Append Waypoint to Route in all three 423.

Thanks for your attention and efforts!

Piotr
PjotrC is offline   Reply With Quote
Old 05-05-2011, 05:45   #67
Registered User

Join Date: May 2011
Posts: 2
Re: OpenCPN Version 2.4 Beta Build 423

Since Ubuntu 8.10 -D_FORTIFY_SOURCE=2 is enabled when compiling
with -O2 or higher[1]. OpenCPN "release" builds use -O3 and are
thus "fortified" [2]. The current (git repo) version causes a runtime
exception to be thrown around the potentially unsafe use of
strcpy in navutil.cpp:3041:

strcpy ( pOLE->OBJLName, sObj.mb_str() );

No compile time warning is given. Other occurrences of strcpy may
cause the same issue. I've had to define -U_FORTIFY_SOURCE as
CMAKE_CXX_FLAGS and CMAKE_C_FLAGS to disable the checks.

How to reproduce: Enable CM93 charts on release version built on
a recent Ubuntu (and likely other Linux variants). Restart application.

I am unfortunately not good enough a coder for replacing strcpy with
one of its safer alternatives.

[1] https://wiki.ubuntu.com/CompilerFlags
[2] Jakub Jelinek - [PATCH] Object size checking to prevent (some) buffer overflows
thenavigator 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
OpenCPN Version 2.4 Beta Build 412 bdbcat OpenCPN 63 22-04-2011 18:19
OpenCPN Version 2.4 Beta Build 324 bdbcat OpenCPN 141 12-04-2011 14:15
OpenCPN Version 2.4 Beta Build 310 bdbcat OpenCPN 53 27-03-2011 11:05

Advertise Here


All times are GMT -7. The time now is 15:18.


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.