Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-06-2015, 05:49   #31
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: OpenCPN Beta test 4.1.602 Release

Issues with Sizer Flags

It is not new in 4.1.602 but might be a problem in the future.
There are some issues with sizers flags in Options dialog.
The wxWidgets docs says:
Quote:
Horizontal alignment flags are ignored with wxEXPAND.
Horizontal alignment flags are ignored in horizontal sizers.
Vertical alignment flags are ignored in vertical sizers.
Please check these files for inconsistency: options.cpp s63_pi.cpp chartdldrgui.cpp

Programmers of plugins often use the wxFormBuilder for creating dialogs. However the generated code might be buggy. E.g. it is not needed to specify both rows and cols for sizers. Only specify cols to avoid asserts. The number of rows will be deduced automatically depending on the number of the elements added to the sizer.

Finally switching OCPN now to wxWidgets 3.0 it might be useful to read the docs of wxWidgets.

Gerhard
__________________

__________________
CarCode is online now   Reply With Quote
Old 05-06-2015, 05:55   #32
Registered User

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

Gerhard...
Exact impact, please?

Thanks

Pavel


Sent from my iPhone using Cruisers Sailing Forum
__________________

__________________
nohal is offline   Reply With Quote
Old 05-06-2015, 06:15   #33
Registered User

Join Date: Jan 2010
Location: Bayside, NY USA
Boat: Pearson 10M
Posts: 11
Re: OpenCPN Beta test 4.1.602 Release

Hi all-

Just ran a test in the car. Everything worked well and the accuracy was good. Only problem came afterwards when I went to erase track. That worked but there remained a thin line (much thinner than the original track) that can't be erased.

Thoughts?

Overall, a great implementation of a great program.

Thanks to everyone involved.

MikeR
__________________
Gosling is offline   Reply With Quote
Old 05-06-2015, 15:13   #34
Registered User

Join Date: Feb 2011
Location: uk
Posts: 75
Re: OpenCPN Beta test 4.1.602 Release Ais problem

Hi

Win 7 acer aspire one

updated and started ok. got a position

Ais targets flash on and off, with none showing a position for any length of time. also sometimes routes and tracks.

Deleted config file and emptied plug in folder, tried without visit my harbor stick, but no different. removed mmsi csv file incase that was the problem.

Ais (digital yacht) so not an input problem, along with worked fine before upgrade. still works on the other sony machine ok.
__________________
yachtman is offline   Reply With Quote
Old 06-06-2015, 01:09   #35
Registered User

Join Date: Feb 2011
Location: uk
Posts: 75
Re: OpenCPN Beta test 4.1.602 Release

Strangely "Hurricane'' has a solution on the android beta thread that works.

so problem has been introduced on both the windows and android version.

hurricans post 48 on the android thread follows:-

OK, I've found a "solution" to the second problem.
If I "uncheck" - Ships - AIS Targets - Lost Targets - Remove lost targets affer (min)
and "uncheck" - Ships - AIS Targets - Lost Targets - Mark Targets Lost affer (min)
AIS Targets are then displayed on the Android screen
This issue was identified on the Cruisers Forum for a "non Android" installation - OpenCPN V4 - the posted thinks it is something to do with time synchronisation.
__________________
yachtman is offline   Reply With Quote
Old 06-06-2015, 05:54   #36
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: OpenCPN Beta test 4.1.602 Release

Quote:
Originally Posted by CarCode View Post
Issues with Sizer Flags

It is not new in 4.1.602 but might be a problem in the future.
There are some issues with sizers flags in Options dialog.
The wxWidgets docs says:
Code:
Horizontal alignment flags are ignored with wxEXPAND.
Horizontal alignment flags are ignored in horizontal sizers.
Vertical alignment flags are ignored in vertical sizers.
Please check these files for inconsistency: options.cpp s63_pi.cpp chartdldrgui.cpp

Gerhard
There is another file with same issue: routemanagerdialog.cpp

Gerhard
__________________
CarCode is online now   Reply With Quote
Old 06-06-2015, 07:10   #37
Registered User

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

Gerhard...
My question persists - the issue is exactly what?
If you can't post a patch with a fix as every normal person with your skills would, could you at least point the exact place in the code you are referring to? Or a screenshot of the behavior which is broken?

Thanks

Pavel


Sent from my iPhone using Cruisers Sailing Forum
__________________
nohal is offline   Reply With Quote
Old 06-06-2015, 09:09   #38
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: OpenCPN Beta test 4.1.602 Release

Pavel,
please read again. In the files pointed to by me are used sizers flags in a wrong way. Actually not but in the future this will popup asserts with wxWidgets. There are more than 20 places like that in OCPN code.

Gerhard
Attached Thumbnails
Click image for larger version

Name:	Asserts.png
Views:	85
Size:	101.5 KB
ID:	103276  
__________________
CarCode is online now   Reply With Quote
Old 06-06-2015, 09:15   #39
Registered User

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

Gerhard...
I'm really amazed how much time are you able to waste instead of creating a patch which would probably take something like 2 minutes...

Pavel
__________________
nohal is offline   Reply With Quote
Old 06-06-2015, 20:37   #40
Registered User

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

Hi all...
Most of the plugins are already rebuilt and should work with the 4.1 beta on Windows and Linux, check Plugins for OpenCPN 4.1 | Official OpenCPN Homepage and let us know if you find any problems.
The few that are still missing should come shortly.

Thanks

Pavel
__________________
nohal is offline   Reply With Quote
Old 06-06-2015, 23:58   #41
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN Beta test 4.1.602 Release

Pavel...
Thanks for the plugins work.
In WIN-XP:
I tested the VDR and it won't load. The log says:
Code:
7:47:41 AM: PlugInManager searching for PlugIns in location C:\Program\OpenCPN\plugins
7:47:41 AM: PlugInManager: Loading PlugIn: C:\Program\OpenCPN\plugins\vdr_pi.dll
7:47:41 AM: Error: Failed to load shared library 'C:\Program\OpenCPN\plugins\vdr_pi.dll' (error 0: åtgärden har slutförts.)
7:47:41 AM:    PlugInManager: Cannot load library: C:\Program\OpenCPN\plugins\vdr_pi.dll 
7:47:49 AM: PlugInManager: Deactivating PlugIn: C:\Program\OpenCPN\plugins\br24radar_pi.dll
As you can see from the last row all other plugins are hoisted in the same folder? But what's the "shared library" for VDR?

This is the log for my OCPN 4.0 VDR:
Code:
11:54:49: PlugInManager: Loading PlugIn: C:\Program\OpenCPN\Portable\plugins\vdr_win32_pi16_v03_pi.dll
11:54:49:   C:\Program\OpenCPN\Portable\plugins\vdr_win32_pi16_v03_pi.dll
              API Version detected: 106
              PlugIn Version detected: 3
Håkan
__________________
Hakan is offline   Reply With Quote
Old 07-06-2015, 03:59   #42
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN Beta test 4.1.602 Release

Quote:
Originally Posted by Hakan View Post
Test help, please.
...................
W7 problem:
In Dashboard using instrument 13, historical depth, the diagram is not shown and values are collected from other instruments. See my leftmost picture. ...................
Thanks
Håkan
No comments on the post. (No interests, my text is not understandable,...??)
What I've done so far:
I was able to test on another Win7(but 64) PC and there is the depth instrument(13) working properly as well? Still all with the same OCPN installation package.

Since my issue started in connection with wxWidgets-3.0 implementation could it be graphic driver dependent in some way?
Any Win7 guru out there for a comment or discussion, please.
Thanks
Håkan
Attached Thumbnails
Click image for larger version

Name:	Dashb.jpg
Views:	81
Size:	174.3 KB
ID:	103314  
__________________
Hakan is offline   Reply With Quote
Old 07-06-2015, 06:26   #43
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN Beta test 4.1.602 Release

Pavel...
On my WinXP: Also the chartdldr_pi didn't load for the same reason as before:
Code:
14:15:23: PlugInManager: Loading PlugIn: C:\Program\OpenCPN\plugins\chartdldr_pi.dll
14:15:23: Error: Failed to load shared library 'C:\Program\OpenCPN\plugins\chartdldr_pi.dll' (error 0: åtgärden har slutförts.)
14:15:23:    PlugInManager: Cannot load library: C:\Program\OpenCPN\plugins\chartdldr_pi.dll
Note: my own builds of WMM, launcher, BR24Radar, Grib and Dashboard loads OK:
Could it be that the init code somewhere should read:
"Load library: C:\Program\OpenCPN\plugins\chartdldr_pi" instead of
"Load library: C:\Program\OpenCPN\plugins\chartdldr_pi.dll ??

Håkan
__________________
Hakan is offline   Reply With Quote
Old 07-06-2015, 06:53   #44
Registered User

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

Hakan...
Aren't you trying to load the plugins I built into your own build of OpenCPN made with VS2010? That can never work...

Pavel


Sent from my iPhone using Cruisers Sailing Forum
__________________
nohal is offline   Reply With Quote
Old 07-06-2015, 08:27   #45
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN Beta test 4.1.602 Release

Pavel...
Ahaaa...yes you're right - 2010. My first Q is then why not?? The Opencpn.exe and the folder structure for the program must still be the same or what are the dependencies, if you feel for an explanation.
Thanks
Håkan
__________________

__________________
Hakan 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 12-12-2017 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 14:44.


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.