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 20-03-2011, 03:53   #91
Registered User

Join Date: Oct 2009
Location: West coast of Sweden
Boat: Najad391
Posts: 169
Re: Google Earth Plugin

Quote:
Originally Posted by nohal View Post
Jan,
you prove what I was feared about when implementing the possibility to have the two views disconnected
Note the checkbox Connected to chart viewport under the GE map - if it's not checked, the views are independent (and it is designed to be so)
Maybe it's time for some documentation although I never thought it will be needed.

The plugin disconnects automatically when you change the GE view more than a certain small amount - this is to allow loading KML files without making the plugin forget about them immediately etc.
There is a config option to tell the plugin whether this automatic (and not that intelligent) routine should be used. In the config dialog it's called Disconnect from Viewport on GE action. Unfortunately this config switch does nothing right now, but will in 0.4...

Pavel
Pavel....
The check box is checked as default when loaded but the GE-picture will not move. If I uncheck and then check the box again the GE picture moves, but only one time after that it will not move until I uncheck and check and then it moves again but just one time. The ver. 0.2 runs ok
I have XP home SP3 as OS and run OpenCPN 2.4.0.0310

Jan
janp391 is offline   Reply With Quote
Old 20-03-2011, 04:32   #92
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Google Earth Plugin

Jan,
thanks for the info. Attached is a new version where turning off this feature in config actually works, so you should be able to use it at least the same way as 0.2.
I also added more logging to debug your problem. Could you please have a look at your log when the disconnection happens and post the part talking about the disconnection?
It should look something like the following:
Code:
12:27:55: GE camera move requested
12:27:55: Moving GE camera
12:27:55: GE camera moved
12:27:59: SetCurrentViewPort called by OpenCPN
12:27:59: GE View parameters requested
12:27:59: Getting GE view parameters
12:27:59: GE view parameters obtained
12:27:59: Disconnected from the viewport, because the GE reported values (A: -40.601295, R: 1898.394161, T: 0.000000) differ from the plugin settings (A: 0.000000, R: -999.000000, T: -999.000000)
Especially the part before the actual disconnection is important to find the reason.
One more thing - is your computer "fast and powerful" or "that cheap Atom netbook with 12 hours of battery life"?

Pavel
Attached Files
File Type: doc gecomapi_pi.doc (101.0 KB, 121 views)
nohal is offline   Reply With Quote
Old 20-03-2011, 06:07   #93
Registered User

Join Date: Oct 2009
Location: West coast of Sweden
Boat: Najad391
Posts: 169
Re: Google Earth Plugin

Quote:
Originally Posted by nohal View Post
Jan,
thanks for the info. Attached is a new version where turning off this feature in config actually works, so you should be able to use it at least the same way as 0.2.
I also added more logging to debug your problem. Could you please have a look at your log when the disconnection happens and post the part talking about the disconnection?
It should look something like the following:
Code:
12:27:55: GE camera move requested
12:27:55: Moving GE camera
12:27:55: GE camera moved
12:27:59: SetCurrentViewPort called by OpenCPN
12:27:59: GE View parameters requested
12:27:59: Getting GE view parameters
12:27:59: GE view parameters obtained
12:27:59: Disconnected from the viewport, because the GE reported values (A: -40.601295, R: 1898.394161, T: 0.000000) differ from the plugin settings (A: 0.000000, R: -999.000000, T: -999.000000)
Especially the part before the actual disconnection is important to find the reason.
One more thing - is your computer "fast and powerful" or "that cheap Atom netbook with 12 hours of battery life"?

Pavel
Pavel

My computer is not a netbook but on the other hand not "fast and powerful"
CPU 1.5 GHz and 1 GB in RAM.
I posted the most of the file I found and this is when running ver. 0.3 of the GE plugin.

Sorry but the new version behave like 0.3, will not move or zoom

13:50:10: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
13:50:10: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
13:50:11: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
13:50:11: Constructing the GE plugin window
13:50:11: GE plugin - OnShow event
13:50:11: GE plugin - OnShow event
13:50:11: GE plugin - OnSize event
13:50:11: GE resize requested
13:50:11: GE plugin - OnSize event
13:50:11: GE resize requested
13:50:11: GE plugin - OnSize event
13:50:11: GE resize requested
13:50:11: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/grib_pi.dll
13:50:11: GE plugin - OnSize event
13:50:11: GE resize requested
13:50:11: GE plugin - OnShow event
13:50:11: GE plugin - OnShow event
13:50:11: GE plugin - OnSize event
13:50:11: GE resize requested
13:50:11: GE plugin - OnShow event
13:50:11: Loading chart db version: V016
13:50:11: Chartdb: Chart directory list follows
13:50:11: Chart directory #0: D:\CM93
13:50:11: GPS Watchdog Timeout is: 6 sec.
13:50:11: Initializing Chart D:\CM93\00300000\A\00300000.A
13:50:11: CM93Composite Chart Root is D:\CM93\
13:50:11: Loaded CM93 Dictionary from D:\CM93\
13:50:11: Loading CM93 cell D:\CM93\03900000/F/04430034.F
13:50:12: Loading CM93 cell D:\CM93\03900000/F/A4440034.F
13:50:12: Loading CM93 cell D:\CM93\03900000/F/B4440034.F
13:50:12: Loading CM93 cell D:\CM93\03900000/F/C4440034.F
13:50:12: Loading CM93 cell D:\CM93\03900000/F/D4440034.F
13:50:18: Loading CM93 cell D:\CM93\03900000/E/A4430034.E
13:50:18: Loading CM93 cell D:\CM93\03900000/E/B4430034.E
13:50:19: Loading CM93 cell D:\CM93\03900000/E/C4430034.E
13:50:19: Loading CM93 cell D:\CM93\03900000/E/D4430034.E
13:50:20: Loading CM93 cell D:\CM93\03900000/E/A4440034.E
13:50:20: Loading CM93 cell D:\CM93\03900000/E/B4440034.E
13:50:21: Loading CM93 cell D:\CM93\03900000/E/C4440034.E
13:50:21: Loading CM93 cell D:\CM93\03900000/E/D4440034.E
13:50:22: Loading CM93 cell D:\CM93\03900000/C/04380024.C
13:50:23: SetCurrentViewPort called by OpenCPN
13:50:23: GE View parameters requested
13:50:27: SetCurrentViewPort called by OpenCPN
13:50:27: GE View parameters requested
13:50:29: SetCurrentViewPort called by OpenCPN
13:50:29: GE View parameters requested
13:50:36: SetCurrentViewPort called by OpenCPN
13:50:36: GE View parameters requested
13:50:41: SetCurrentViewPort called by OpenCPN
13:50:41: GE View parameters requested
13:50:44: SetCurrentViewPort called by OpenCPN
13:50:44: GE View parameters requested
13:50:44: GE initialization requested
13:50:44: GE initialization requested
13:50:44: Initializing GE
13:51:06: GE Initialized, attaching to the window
13:51:06: Attaching to GE window requested
13:51:06: Attaching to the GE window
13:51:07: GE resize requested
13:51:07: Resizing GE
13:51:07: GE resized
13:51:07: GE window attached
13:51:07: GE plugin - OnShow event
13:51:07: GE initialization requested
13:51:07: GE initialization requested
13:51:07: GE plugin - OnSize event
13:51:07: GE resize requested
13:51:07: Resizing GE
13:51:08: GE resized
13:51:08: SetCurrentViewPort called by OpenCPN
13:51:08: GE View parameters requested
13:51:08: Getting GE view parameters
13:51:08: GE view parameters obtained
13:51:08: GE camera move requested
13:51:08: Moving GE camera
13:51:08: GE camera moved
13:51:09: SetCurrentViewPort called by OpenCPN
13:51:09: GE View parameters requested
13:51:09: Getting GE view parameters
13:51:09: GE view parameters obtained
13:51:09: GE camera move requested
13:51:09: Moving GE camera
13:51:09: GE camera moved
13:51:09: SetCurrentViewPort called by OpenCPN
13:51:09: GE View parameters requested
13:51:09: Getting GE view parameters
13:51:09: GE view parameters obtained
13:51:09: GE camera move requested
13:51:09: Moving GE camera
13:51:09: GE camera moved
13:51:11: LOGBOOK: 2011-03-20 12:51:11 UTC DR Lat 0.00000 Lon 0.00000
13:51:11: SetCurrentViewPort called by OpenCPN
13:51:11: GE View parameters requested
13:51:11: Getting GE view parameters
13:51:11: GE view parameters obtained
13:51:11: GE camera move requested
13:51:11: Moving GE camera
13:51:11: GE camera moved
13:51:11: SetCurrentViewPort called by OpenCPN
13:51:11: GE View parameters requested
13:51:11: GE camera move requested
13:51:16: GE plugin - OnSize event
13:51:16: GE resize requested
13:51:16: Resizing GE
13:51:16: GE resized
13:51:16: SetCurrentViewPort called by OpenCPN
13:51:16: GE View parameters requested
13:51:16: Getting GE view parameters
13:51:16: GE view parameters obtained
13:51:16: GE camera move requested
13:51:16: Moving GE camera
13:51:16: GE camera moved
13:51:19: SetCurrentViewPort called by OpenCPN
13:51:19: GE View parameters requested
13:51:19: Getting GE view parameters
13:51:19: GE view parameters obtained
13:51:19: GE camera move requested
13:51:23: SetCurrentViewPort called by OpenCPN
13:51:23: GE View parameters requested
13:51:23: Getting GE view parameters
13:51:23: GE view parameters obtained
13:51:23: GE camera move requested
13:51:30: SetCurrentViewPort called by OpenCPN
13:51:30: GE View parameters requested
13:51:30: Getting GE view parameters
13:51:30: GE view parameters obtained
13:51:36: SetCurrentViewPort called by OpenCPN
13:51:36: GE camera move requested
13:51:36: Moving GE camera
13:51:36: GE camera moved
13:51:39: SetCurrentViewPort called by OpenCPN
13:51:39: GE View parameters requested
13:51:39: Getting GE view parameters
13:51:39: GE view parameters obtained
13:51:39: GE camera move requested
13:51:39: Moving GE camera
13:51:39: GE camera moved
13:51:41: SetCurrentViewPort called by OpenCPN
13:51:41: GE View parameters requested
13:51:41: Getting GE view parameters
13:51:41: GE view parameters obtained
13:51:41: GE camera move requested
13:51:44: SetCurrentViewPort called by OpenCPN
13:51:44: GE View parameters requested
13:51:44: Getting GE view parameters
13:51:44: GE view parameters obtained
13:51:44: GE camera move requested
13:51:46: SetCurrentViewPort called by OpenCPN
13:51:46: GE View parameters requested
13:51:46: Getting GE view parameters
13:51:46: GE view parameters obtained
13:51:46: GE camera move requested
13:51:50: SetCurrentViewPort called by OpenCPN
13:51:50: GE View parameters requested
13:51:50: Getting GE view parameters
13:51:50: GE view parameters obtained
13:51:50: GE camera move requested
13:52:46: SetCurrentViewPort called by OpenCPN
13:52:46: GE View parameters requested
13:52:46: Getting GE view parameters
13:52:46: GE view parameters obtained
13:52:46: GE camera move requested
janp391 is offline   Reply With Quote
Old 20-03-2011, 06:14   #94
Registered User

Join Date: Oct 2009
Location: West coast of Sweden
Boat: Najad391
Posts: 169
Re: Google Earth Plugin

Pavel

Can this GE-plugin behavior have something to do with this problem?

Re: OpenCPN Version 2.4 Beta Build 310
janp391/cagney....

OK, I see whats going on here. In certain parts of the cm93 database, the cells at a particular scale and location are split into multiple subcells. I think this was done in original cm93 to control file sizes.

We know how to load and display these subcells. However, the new code in 2.4 which caches cell M_COVR objects (and also manages user cell offsets) gets a bit confused by these subcells. They don't exist at the locations I used for testing, so I never saw this problem until we moved to more densely charted European locations.......

More code.....sigh....

Thanks for you efforts so far in identifying this problem.
Dave
janp391 is offline   Reply With Quote
Old 20-03-2011, 06:37   #95
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Google Earth Plugin

Jan,
not at all, the GE plugin has nothing to do with the maps displayed and will work even without any maps.

Had a look at your log - is it really with the last version of the plugin (0.4)? And did the checkbox really change the state from checked to unchecked? The reason for asking these rather stupid questions is that there is no way it can happen without creating the log entry saying "Disconnected from the viewport..." and there is nothing like that in the log you posted.
If the answer to the above is positive, did you try with the "Disconnect from Viewport on GE action" config option turned off?
Will keep thinking, but currently have no idea what could be wrong. Maybe one more thing that could make a difference - which version of GE do you have installed?

Pavel
nohal is offline   Reply With Quote
Old 20-03-2011, 07:58   #96
Registered User

Join Date: Oct 2009
Location: West coast of Sweden
Boat: Najad391
Posts: 169
Re: Google Earth Plugin

Pavel

Thank you for your help

No, that log file was from 0.3. This one in this post is from 0.4
The check box indicate that it is checked and unchecked.
Strange that the 0.2 version run like a charm//Jan


15:48:23: 2011-03-20
15:48:23: -------Starting opencpn-------
15:48:23: Version 2.4.0 Build 2011-03-10
15:48:23: SData_Locn is C:\Program\OpenCPN\
15:48:23: Using existing Config_File: C:\Documents and Settings\All Users\Application Data\opencpn\opencpn.ini
15:48:23: Setting Viewpoint Lat/Lon 57.9655, 11.5353
15:48:23: Setting Ownship Lat/Lon 0, 0
15:48:23: System default Language: sv_SE
15:48:23: Opencpn language set to: sv_SE
15:48:23: looking for catalog 'opencpn' in path 'C:\Program\OpenCPN\share/locale\sv_SE.WINDOWS-1252\LC_MESSAGES;C:\Program\OpenCPN\share/locale\;C:\Program\OpenCPN\share/locale\sv_SE.WINDOWS-1252;C:\Program\OpenCPN\sv_SE.WINDOWS-1252;C:\Program\OpenCPN\share/locale\sv_SE\LC_MESSAGES;C:\Program\OpenCPN\share/locale\;C:\Program\OpenCPN\share/locale\sv_SE;C:\Program\OpenCPN\sv_SE;C:\Program\O penCPN\share/locale\sv\LC_MESSAGES;C:\Program\OpenCPN\share/locale\;C:\Program\OpenCPN\share/locale\sv;C:\Program\OpenCPN\sv'.
15:48:23: using catalog 'opencpn' from 'C:\Program\OpenCPN\share/locale\sv\LC_MESSAGES\opencpn.mo'.
15:48:23: Using s57data in C:\Program\OpenCPN\s57data
15:48:23: Using Tide/Current data from: C:\Program\OpenCPN\tcdata\
15:48:23: Setting Viewpoint Lat/Lon 57.9655, 11.5353
15:48:23: Setting Ownship Lat/Lon 0, 0
15:48:23: NMEA Data Source is....Serial:AIS Port (Shared)
15:48:23: AIS Data Source is....None
15:48:23: Using WVSChart datafile: C:\Program\OpenCPN\wvsdata\wvs43.dat
15:48:24: NMEA AutoPilot Port is....None
15:48:24: Modulhanterare söker efter moduler i C:\Program\OpenCPN\plugins
15:48:24: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
15:48:24: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
15:48:24: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
15:48:24: Constructing the GE plugin window
15:48:24: GE plugin - OnShow event
15:48:24: GE plugin - OnShow event
15:48:24: GE plugin - OnSize event
15:48:24: GE resize requested
15:48:24: GE plugin - OnSize event
15:48:24: GE resize requested
15:48:24: GE plugin - OnSize event
15:48:24: GE resize requested
15:48:24: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/grib_pi.dll
15:48:24: GE plugin - OnSize event
15:48:24: GE resize requested
15:48:24: GE plugin - OnShow event
15:48:24: GE plugin - OnShow event
15:48:24: GE plugin - OnShow event
15:48:24: Loading chart db version: V016
15:48:24: Chartdb: Chart directory list follows
15:48:24: Chart directory #0: D:\CM93
15:48:24: GPS Watchdog Timeout is: 6 sec.
15:48:24: Initializing Chart D:\CM93\00300000\A\00300000.A
15:48:24: CM93Composite Chart Root is D:\CM93\
15:48:24: Loaded CM93 Dictionary from D:\CM93\
15:48:24: Loading CM93 cell D:\CM93\03900000/G/04430034.G
15:48:24: Loading CM93 cell D:\CM93\03900000/F/04430034.F
15:48:25: SetCurrentViewPort called by OpenCPN
15:48:25: GE View parameters requested
15:48:29: SetCurrentViewPort called by OpenCPN
15:48:29: GE View parameters requested
15:48:31: GE initialization requested
15:48:31: GE initialization requested
15:48:31: Initializing GE
15:48:49: GE Initialized, attaching to the window
15:48:49: Attaching to GE window requested
15:48:49: Attaching to the GE window
15:48:50: GE resize requested
15:48:50: Resizing GE
15:48:50: GE resized
15:48:50: GE window attached
15:48:50: GE plugin - OnShow event
15:48:50: GE initialization requested
15:48:50: GE initialization requested
15:48:50: GE plugin - OnSize event
15:48:50: GE resize requested
15:48:50: Resizing GE
15:48:51: GE resized
15:48:51: SetCurrentViewPort called by OpenCPN
15:48:51: GE View parameters requested
15:48:51: Getting GE view parameters
15:48:51: GE view parameters obtained
15:48:51: GE camera move requested
15:48:51: Moving GE camera
15:48:51: GE camera moved
15:48:51: SetCurrentViewPort called by OpenCPN
15:48:51: GE View parameters requested
15:48:51: Getting GE view parameters
15:48:51: GE view parameters obtained
15:48:51: GE camera move requested
15:48:51: Moving GE camera
15:48:51: GE camera moved
15:48:52: SetCurrentViewPort called by OpenCPN
15:48:52: GE View parameters requested
15:48:52: Getting GE view parameters
15:48:52: GE view parameters obtained
15:48:52: GE camera move requested
15:48:52: Moving GE camera
15:48:52: GE camera moved
15:48:58: SetCurrentViewPort called by OpenCPN
15:48:58: GE View parameters requested
15:48:58: Getting GE view parameters
15:48:58: GE view parameters obtained
15:48:58: GE camera move requested
15:48:58: Moving GE camera
15:48:58: GE camera moved
15:49:00: SetCurrentViewPort called by OpenCPN
15:49:00: GE View parameters requested
15:49:00: Getting GE view parameters
15:49:00: GE view parameters obtained
15:49:00: GE camera move requested
15:49:00: GE camera move request discarded, too soon after a previous action
15:49:14: SetCurrentViewPort called by OpenCPN
15:49:14: GE View parameters requested
15:49:14: Getting GE view parameters
15:49:14: GE view parameters obtained
15:49:14: GE camera move requested
15:49:14: GE camera move request discarded, too soon after a previous action
15:49:14: SetCurrentViewPort called by OpenCPN
15:49:14: GE View parameters requested
15:49:14: Getting GE view parameters
15:49:14: GE view parameters obtained
15:49:14: GE camera move requested
15:49:14: Moving GE camera
15:49:14: GE camera moved
15:49:14: SetCurrentViewPort called by OpenCPN
15:49:14: GE View parameters requested
15:49:14: Getting GE view parameters
15:49:14: GE view parameters obtained
15:49:14: GE camera move requested
15:49:14: Moving GE camera
15:49:14: GE camera moved
15:49:14: SetCurrentViewPort called by OpenCPN
15:49:14: GE View parameters requested
15:49:14: Getting GE view parameters
15:49:15: GE view parameters obtained
15:49:15: GE camera move requested
15:49:15: Moving GE camera
15:49:15: GE camera moved
15:49:15: SetCurrentViewPort called by OpenCPN
15:49:15: GE View parameters requested
15:49:15: Getting GE view parameters
15:49:15: GE view parameters obtained
15:49:15: GE camera move requested
15:49:15: Moving GE camera
15:49:15: GE camera moved
15:49:15: SetCurrentViewPort called by OpenCPN
15:49:15: GE View parameters requested
15:49:15: Getting GE view parameters
15:49:15: GE view parameters obtained
15:49:15: GE camera move requested
15:49:15: Moving GE camera
15:49:15: GE camera moved
15:49:15: SetCurrentViewPort called by OpenCPN
15:49:15: GE View parameters requested
15:49:15: Getting GE view parameters
15:49:15: GE view parameters obtained
15:49:15: GE camera move requested
15:49:15: Moving GE camera
15:49:15: GE camera moved
15:49:15: SetCurrentViewPort called by OpenCPN
15:49:15: GE View parameters requested
15:49:15: Getting GE view parameters
15:49:15: GE view parameters obtained
15:49:15: GE camera move requested
15:49:15: Moving GE camera
15:49:15: GE camera moved
15:49:15: SetCurrentViewPort called by OpenCPN
15:49:15: GE View parameters requested
15:49:15: Getting GE view parameters
15:49:15: GE view parameters obtained
15:49:15: GE camera move requested
15:49:15: Moving GE camera
15:49:15: GE camera moved
15:49:15: SetCurrentViewPort called by OpenCPN
15:49:15: GE View parameters requested
15:49:15: Getting GE view parameters
15:49:15: GE view parameters obtained
15:49:15: GE camera move requested
15:49:15: Moving GE camera
15:49:15: GE camera moved
15:49:15: SetCurrentViewPort called by OpenCPN
15:49:15: GE View parameters requested
15:49:15: Getting GE view parameters
15:49:16: GE view parameters obtained
15:49:16: GE camera move requested
15:49:16: Moving GE camera
15:49:16: GE camera moved
15:49:16: SetCurrentViewPort called by OpenCPN
15:49:16: GE View parameters requested
15:49:16: Getting GE view parameters
15:49:16: GE view parameters obtained
15:49:16: GE camera move requested
15:49:16: Moving GE camera
15:49:16: GE camera moved
15:49:16: SetCurrentViewPort called by OpenCPN
15:49:16: GE View parameters requested
15:49:16: Getting GE view parameters
15:49:16: GE view parameters obtained
15:49:16: GE camera move requested
15:49:16: Moving GE camera
15:49:16: GE camera moved
15:49:16: SetCurrentViewPort called by OpenCPN
15:49:16: GE View parameters requested
15:49:16: Getting GE view parameters
15:49:16: GE view parameters obtained
15:49:16: GE camera move requested
15:49:16: Moving GE camera
15:49:16: GE camera moved
15:49:16: SetCurrentViewPort called by OpenCPN
15:49:16: GE View parameters requested
15:49:16: Getting GE view parameters
15:49:16: GE view parameters obtained
15:49:16: GE camera move requested
15:49:16: Moving GE camera
15:49:16: GE camera moved
15:49:16: SetCurrentViewPort called by OpenCPN
15:49:16: GE View parameters requested
15:49:16: Getting GE view parameters
15:49:16: GE view parameters obtained
15:49:16: GE camera move requested
15:49:16: Moving GE camera
15:49:16: GE camera moved
15:49:16: SetCurrentViewPort called by OpenCPN
15:49:16: GE View parameters requested
15:49:16: Getting GE view parameters
15:49:16: GE view parameters obtained
15:49:16: GE camera move requested
15:49:16: Moving GE camera
15:49:16: GE camera moved
15:49:16: SetCurrentViewPort called by OpenCPN
15:49:16: GE View parameters requested
15:49:16: Getting GE view parameters
15:49:17: GE view parameters obtained
15:49:17: GE camera move requested
15:49:17: Moving GE camera
15:49:17: GE camera moved
15:49:17: SetCurrentViewPort called by OpenCPN
15:49:17: GE View parameters requested
15:49:17: Getting GE view parameters
15:49:17: GE view parameters obtained
15:49:17: GE camera move requested
15:49:17: Moving GE camera
15:49:17: GE camera moved
15:49:21: GE plugin - OnSize event
15:49:21: GE resize requested
15:49:21: Resizing GE
15:49:21: GE resized
15:49:21: SetCurrentViewPort called by OpenCPN
15:49:21: GE View parameters requested
15:49:21: Getting GE view parameters
15:49:22: GE view parameters obtained
15:49:22: GE camera move requested
15:49:22: Moving GE camera
15:49:22: GE camera moved
15:49:24: LOGBOOK: 2011-03-20 14:49:24 UTC DR Lat 0.00000 Lon 0.00000
15:49:30: SetCurrentViewPort called by OpenCPN
15:49:30: GE View parameters requested
15:49:30: Getting GE view parameters
15:49:30: GE view parameters obtained
15:49:30: GE camera move requested
15:49:30: GE camera move request discarded, too soon after a previous action
15:50:30: SetCurrentViewPort called by OpenCPN
15:50:30: GE View parameters requested
15:50:30: Getting GE view parameters
15:50:30: GE view parameters obtained
15:50:30: GE camera move requested
15:50:30: GE camera move request discarded, too soon after a previous action
janp391 is offline   Reply With Quote
Old 20-03-2011, 08:16   #97
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Google Earth Plugin

Jan,
thanks, but I'm still confused as there is no disconnection message in the log... I really need to see that message starting with "Disconnected from the viewport" and just a few before that
Try closing OpenCPN before looking at the logfile as what you are sending is just the beginning of the log - and it looks OK, the commands get sent to GE and GE says it has done what was requested... I'm not sure when wx writes the log messages, but if you close the program, all will be there for sure.
Meanwhile will try to cannibalize some more machines here and try to reproduce it myself.

Pavel
nohal is offline   Reply With Quote
Old 20-03-2011, 09:54   #98
Registered User

Join Date: Oct 2009
Location: West coast of Sweden
Boat: Najad391
Posts: 169
Re: Google Earth Plugin

Pavel,
Here is the end of the log file with version 0.4
It is 6.0.1.2032 (beta) version of GE I am using.

17:48:42: SetCurrentViewPort called by OpenCPN
17:48:42: GE View parameters requested
17:48:42: Getting GE view parameters
17:48:42: GE view parameters obtained
17:48:42: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
17:48:42: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
17:48:42: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
17:48:42: Destroying the GE plugin window
17:48:42: Going to close GE
17:48:42: Closing GE requested
17:48:42: Closing GE
17:48:42: GE closed
17:48:42: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/grib_pi.dll
17:48:42: opencpn::MyFrame exiting cleanly.
17:48:42: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
17:48:42: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
17:48:42: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
17:48:42: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/grib_pi.dll
17:48:44: LOGBOOK: 2011-03-20 16:48:44 UTC OFF: Lat 0.00000 Lon 0.00000
17:48:44: opencpn::MyApp exiting cleanly...
janp391 is offline   Reply With Quote
Old 20-03-2011, 10:16   #99
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Google Earth Plugin

Hmm, the shutdown is ok as well. Now we just need that important part in the middle which talks about the disconnection itself.
Here I'm slowly but surely running out of machines I could try, but still not able to reproduce on any of them

Pavel
nohal is offline   Reply With Quote
Old 20-03-2011, 10:30   #100
Registered User

Join Date: Oct 2009
Location: West coast of Sweden
Boat: Najad391
Posts: 169
Re: Google Earth Plugin

Pavel,
Here is all of the log file. Hope you find something interesting.

17:47:22:


17:47:22: 2011-03-20
17:47:22: -------Starting opencpn-------
17:47:22: Version 2.4.0 Build 2011-03-10
17:47:22: SData_Locn is C:\Program\OpenCPN\
17:47:22: Using existing Config_File: C:\Documents and Settings\All Users\Application Data\opencpn\opencpn.ini
17:47:22: Setting Viewpoint Lat/Lon 57.9745, 11.5294
17:47:22: Setting Ownship Lat/Lon 0, 0
17:47:22: System default Language: sv_SE
17:47:22: Opencpn language set to: sv_SE
17:47:22: looking for catalog 'opencpn' in path 'C:\Program\OpenCPN\share/locale\sv_SE.WINDOWS-1252\LC_MESSAGES;C:\Program\OpenCPN\share/locale\;C:\Program\OpenCPN\share/locale\sv_SE.WINDOWS-1252;C:\Program\OpenCPN\sv_SE.WINDOWS-1252;C:\Program\OpenCPN\share/locale\sv_SE\LC_MESSAGES;C:\Program\OpenCPN\share/locale\;C:\Program\OpenCPN\share/locale\sv_SE;C:\Program\OpenCPN\sv_SE;C:\Program\O penCPN\share/locale\sv\LC_MESSAGES;C:\Program\OpenCPN\share/locale\;C:\Program\OpenCPN\share/locale\sv;C:\Program\OpenCPN\sv'.
17:47:22: using catalog 'opencpn' from 'C:\Program\OpenCPN\share/locale\sv\LC_MESSAGES\opencpn.mo'.
17:47:22: Using s57data in C:\Program\OpenCPN\s57data
17:47:22: Using Tide/Current data from: C:\Program\OpenCPN\tcdata\
17:47:22: Setting Viewpoint Lat/Lon 57.9745, 11.5294
17:47:22: Setting Ownship Lat/Lon 0, 0
17:47:22: NMEA Data Source is....Serial:AIS Port (Shared)
17:47:22: AIS Data Source is....None
17:47:22: Using WVSChart datafile: C:\Program\OpenCPN\wvsdata\wvs43.dat
17:47:22: NMEA AutoPilot Port is....None
17:47:22: Modulhanterare söker efter moduler i C:\Program\OpenCPN\plugins
17:47:22: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
17:47:22: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
17:47:22: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
17:47:22: Constructing the GE plugin window
17:47:22: GE plugin - OnShow event
17:47:22: GE plugin - OnShow event
17:47:22: GE plugin - OnSize event
17:47:22: GE resize requested
17:47:22: GE plugin - OnSize event
17:47:22: GE resize requested
17:47:22: GE plugin - OnSize event
17:47:22: GE resize requested
17:47:22: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/grib_pi.dll
17:47:22: GE plugin - OnSize event
17:47:22: GE resize requested
17:47:22: GE plugin - OnShow event
17:47:22: GE plugin - OnShow event
17:47:22: GE plugin - OnSize event
17:47:22: GE resize requested
17:47:23: GE plugin - OnShow event
17:47:23: Loading chart db version: V016
17:47:23: Chartdb: Chart directory list follows
17:47:23: Chart directory #0: D:\CM93
17:47:23: GPS Watchdog Timeout is: 6 sec.
17:47:23: Initializing Chart D:\CM93\00300000\A\00300000.A
17:47:23: CM93Composite Chart Root is D:\CM93\
17:47:23: Loaded CM93 Dictionary from D:\CM93\
17:47:23: Loading CM93 cell D:\CM93\03900000/G/04430034.G
17:47:23: Loading CM93 cell D:\CM93\03900000/F/04430034.F
17:47:24: SetCurrentViewPort called by OpenCPN
17:47:24: GE View parameters requested
17:47:32: SetCurrentViewPort called by OpenCPN
17:47:32: GE View parameters requested
17:47:32: GE initialization requested
17:47:32: GE initialization requested
17:47:32: Initializing GE
17:47:47: GE Initialized, attaching to the window
17:47:47: Attaching to GE window requested
17:47:47: Attaching to the GE window
17:47:48: GE resize requested
17:47:48: Resizing GE
17:47:48: GE resized
17:47:48: GE window attached
17:47:48: GE plugin - OnShow event
17:47:48: GE initialization requested
17:47:48: GE initialization requested
17:47:48: GE plugin - OnSize event
17:47:48: GE resize requested
17:47:48: Resizing GE
17:47:49: GE resized
17:47:49: SetCurrentViewPort called by OpenCPN
17:47:49: GE View parameters requested
17:47:49: Getting GE view parameters
17:47:49: GE view parameters obtained
17:47:49: GE camera move requested
17:47:49: Moving GE camera
17:47:49: GE camera moved
17:47:50: SetCurrentViewPort called by OpenCPN
17:47:50: GE View parameters requested
17:47:50: Getting GE view parameters
17:47:50: GE view parameters obtained
17:47:50: GE camera move requested
17:47:50: Moving GE camera
17:47:50: GE camera moved
17:47:50: SetCurrentViewPort called by OpenCPN
17:47:50: GE View parameters requested
17:47:50: Getting GE view parameters
17:47:50: GE view parameters obtained
17:47:50: GE camera move requested
17:47:50: Moving GE camera
17:47:50: GE camera moved
17:47:55: SetCurrentViewPort called by OpenCPN
17:47:55: GE View parameters requested
17:47:55: Getting GE view parameters
17:47:56: GE view parameters obtained
17:47:56: GE camera move requested
17:47:56: Moving GE camera
17:47:56: GE camera moved
17:48:03: SetCurrentViewPort called by OpenCPN
17:48:03: GE View parameters requested
17:48:03: Getting GE view parameters
17:48:03: GE view parameters obtained
17:48:03: GE camera move requested
17:48:03: GE camera move request discarded, too soon after a previous action
17:48:17: SetCurrentViewPort called by OpenCPN
17:48:17: GE View parameters requested
17:48:17: Getting GE view parameters
17:48:17: GE view parameters obtained
17:48:23: LOGBOOK: 2011-03-20 16:48:23 UTC DR Lat 0.00000 Lon 0.00000
17:48:25: SetCurrentViewPort called by OpenCPN
17:48:25: Not detaching, asked to catch up
17:48:25: GE camera move requested
17:48:25: Moving GE camera
17:48:25: GE camera moved
17:48:37: SetCurrentViewPort called by OpenCPN
17:48:37: GE View parameters requested
17:48:37: Getting GE view parameters
17:48:37: GE view parameters obtained
17:48:37: GE camera move requested
17:48:37: GE camera move request discarded, too soon after a previous action
17:48:38: GE plugin - OnShow event
17:48:38: GE initialization requested
17:48:38: GE initialization requested
17:48:38: SetCurrentViewPort called by OpenCPN
17:48:38: GE View parameters requested
17:48:38: Getting GE view parameters
17:48:38: GE view parameters obtained
17:48:39: SetCurrentViewPort called by OpenCPN
17:48:39: GE View parameters requested
17:48:39: Getting GE view parameters
17:48:39: GE view parameters obtained
17:48:42: SetCurrentViewPort called by OpenCPN
17:48:42: GE View parameters requested
17:48:42: Getting GE view parameters
17:48:42: GE view parameters obtained
17:48:42: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
17:48:42: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
17:48:42: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
17:48:42: Destroying the GE plugin window
17:48:42: Going to close GE
17:48:42: Closing GE requested
17:48:42: Closing GE
17:48:42: GE closed
17:48:42: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/grib_pi.dll
17:48:42: opencpn::MyFrame exiting cleanly.
17:48:42: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
17:48:42: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
17:48:42: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
17:48:42: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/grib_pi.dll
17:48:44: LOGBOOK: 2011-03-20 16:48:44 UTC OFF: Lat 0.00000 Lon 0.00000
17:48:44: opencpn::MyApp exiting cleanly...
janp391 is offline   Reply With Quote
Old 20-03-2011, 10:44   #101
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Google Earth Plugin

VERY weird, the act of automatically unchecking the checkbox is not there at all... I have absolutely no explanation for that as it is not possible that it happens without the message being written to the log...
Will think about what else could be done to track it down.
If anybody else has this problem, please let me know.

Pavel
nohal is offline   Reply With Quote
Old 21-03-2011, 05:12   #102
Registered User

Join Date: Oct 2009
Location: West coast of Sweden
Boat: Najad391
Posts: 169
Re: Google Earth Plugin

Pavel
To give you all info I have I also give you the log file from 0.2 that is working the way I like it ( I can move and zoom the OpenCPN and the GE picture follows)
//Jan


09:13:08: -------Starting opencpn-------
09:13:08: Version 2.4.0 Build 2011-03-10
09:13:08: SData_Locn is C:\Program\OpenCPN\
09:13:08: Using existing Config_File: C:\Documents and Settings\All Users\Application Data\opencpn\opencpn.ini
09:13:08: Setting Viewpoint Lat/Lon 57.9843, 11.5372
09:13:08: Setting Ownship Lat/Lon 0, 0
09:13:08: System default Language: sv_SE
09:13:08: Opencpn language set to: sv_SE
09:13:08: looking for catalog 'opencpn' in path 'C:\Program\OpenCPN\share/locale\sv_SE.WINDOWS-1252\LC_MESSAGES;C:\Program\OpenCPN\share/locale\;C:\Program\OpenCPN\share/locale\sv_SE.WINDOWS-1252;C:\Program\OpenCPN\sv_SE.WINDOWS-1252;C:\Program\OpenCPN\share/locale\sv_SE\LC_MESSAGES;C:\Program\OpenCPN\share/locale\;C:\Program\OpenCPN\share/locale\sv_SE;C:\Program\OpenCPN\sv_SE;C:\Program\O penCPN\share/locale\sv\LC_MESSAGES;C:\Program\OpenCPN\share/locale\;C:\Program\OpenCPN\share/locale\sv;C:\Program\OpenCPN\sv'.
09:13:08: using catalog 'opencpn' from 'C:\Program\OpenCPN\share/locale\sv\LC_MESSAGES\opencpn.mo'.
09:13:08: Using s57data in C:\Program\OpenCPN\s57data
09:13:08: Using Tide/Current data from: C:\Program\OpenCPN\tcdata\
09:13:08: Setting Viewpoint Lat/Lon 57.9843, 11.5372
09:13:08: Setting Ownship Lat/Lon 0, 0
09:13:08: NMEA Data Source is....Serial:AIS Port (Shared)
09:13:08: AIS Data Source is....None
09:13:08: Using WVSChart datafile: C:\Program\OpenCPN\wvsdata\wvs43.dat
09:13:08: NMEA AutoPilot Port is....None
09:13:08: Modulhanterare söker efter moduler i C:\Program\OpenCPN\plugins
09:13:08: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
09:13:08: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
09:13:08: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
09:13:08: Constructing the GE plugin window
09:13:08: GE plugin - OnShow event
09:13:08: GE plugin - OnShow event
09:13:08: GE plugin - OnSize event
09:13:08: GE resize requested
09:13:08: GE plugin - OnSize event
09:13:08: GE resize requested
09:13:08: Modulhanterare: Aktiverar modul: C:\Program\OpenCPN\plugins/grib_pi.dll
09:13:08: GE plugin - OnSize event
09:13:08: GE resize requested
09:13:08: GE plugin - OnShow event
09:13:08: GE plugin - OnShow event
09:13:08: GE plugin - OnShow event
09:13:08: Loading chart db version: V016
09:13:08: Chartdb: Chart directory list follows
09:13:08: Chart directory #0: D:\CM93
09:13:08: GPS Watchdog Timeout is: 6 sec.
09:13:08: Initializing Chart D:\CM93\00300000\A\00300000.A
09:13:08: CM93Composite Chart Root is D:\CM93\
09:13:08: Loaded CM93 Dictionary from D:\CM93\
09:13:08: Loading CM93 cell D:\CM93\03900000/G/04430034.G
09:13:08: Loading CM93 cell D:\CM93\03900000/F/04430034.F
09:13:10: GE camera move requested
09:13:13: GE camera move requested
09:13:14: GE camera move requested
09:13:20: GE camera move requested
09:13:21: GE camera move requested
09:13:26: GE camera move requested
09:13:28: GE camera move requested
09:13:31: GE camera move requested
09:13:33: GE initialization requested
09:13:33: GE initialization requested
09:13:33: Initializing GE
09:13:50: GE Initialized, attaching to the window
09:13:50: Attaching to GE window requested
09:13:50: Attaching to the GE window
09:13:50: GE resize requested
09:13:50: Resizing GE
09:13:51: GE resized
09:13:51: GE window attached
09:13:51: GE plugin - OnShow event
09:13:51: GE initialization requested
09:13:51: GE initialization requested
09:13:51: GE plugin - OnSize event
09:13:51: GE resize requested
09:13:51: Resizing GE
09:13:51: GE resized
09:13:51: GE camera move requested
09:13:51: Moving GE camera
09:13:51: GE camera moved
09:13:52: GE camera move requested
09:13:52: Moving GE camera
09:13:52: GE camera moved
09:13:52: GE camera move requested
09:13:52: Moving GE camera
09:13:52: GE camera moved
09:13:54: GE camera move requested
09:13:54: Moving GE camera
09:13:54: GE camera moved
09:13:54: GE camera move requested
09:13:54: Moving GE camera
09:13:54: GE camera moved
09:14:02: GE plugin - OnSize event
09:14:02: GE resize requested
09:14:02: Resizing GE
09:14:02: GE resized
09:14:02: GE camera move requested
09:14:02: Moving GE camera
09:14:03: GE camera moved
09:14:05: GE camera move requested
09:14:05: Moving GE camera
09:14:05: GE camera moved
09:14:07: GE camera move requested
09:14:07: Moving GE camera
09:14:07: GE camera moved
09:14:09: LOGBOOK: 2011-03-21 08:14:09 UTC DR Lat 0.00000 Lon 0.00000
09:14:10: GE camera move requested
09:14:10: Moving GE camera
09:14:10: GE camera moved
09:14:17: GE camera move requested
09:14:17: Moving GE camera
09:14:17: GE camera moved
09:14:21: GE camera move requested
09:14:21: Moving GE camera
09:14:21: GE camera moved
09:14:29: GE camera move requested
09:14:29: Moving GE camera
09:14:29: GE camera moved
09:14:35: GE camera move requested
09:14:35: Moving GE camera
09:14:35: GE camera moved
09:14:35: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
09:14:35: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
09:14:35: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
09:14:35: GE plugin - OnShow event
09:14:35: GE initialization requested
09:14:35: GE initialization requested
09:14:35: Destroying the GE plugin window
09:14:35: Going to close GE
09:14:35: Closing GE requested
09:14:35: Closing GE
09:14:35: GE closed
09:14:35: Modulhanterare: Inaktiverar modul: C:\Program\OpenCPN\plugins/grib_pi.dll
09:14:35: opencpn::MyFrame exiting cleanly.
09:14:36: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/bsb4_pi.dll
09:14:36: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/dashboard_pi.dll
09:14:36: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/gecomapi_pi.dll
09:14:36: Modulhanterare: stänger modul: C:\Program\OpenCPN\plugins/grib_pi.dll
09:14:37: LOGBOOK: 2011-03-21 08:14:37 UTC OFF: Lat 0.00000 Lon 0.00000
09:14:37: opencpn::MyApp exiting cleanly...
janp391 is offline   Reply With Quote
Old 22-03-2011, 22:58   #103
Marine Service Provider

Join Date: Feb 2010
Posts: 279
Re: Google Earth Plugin

Great work in progress

I cannot get the boat to display in the GE window

regards

Richard Fairman
r.fairman is offline   Reply With Quote
Old 23-03-2011, 00:39   #104
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Google Earth Plugin

Richard,
yes I discovered that as well while finally putting NMEA simulator to work. Looks like a bug in OpenCPN core is causing the plugin to never actually receive the boat position. Already looking at it with Dave.

Pavel
nohal is offline   Reply With Quote
Old 23-03-2011, 16:31   #105
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,473
Re: Google Earth Plugin

Richard/Pavel...

Bug acknowledged. See FS#387.

New Beta in a few days.

Dave
bdbcat is offline   Reply With Quote
Reply

Tags
google earth


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
Google Earth ? phiggins Navigation 53 31-03-2012 20:39
Editing in Google Earth sinbad7 OpenCPN 5 16-02-2011 15:10
Google Earth beau Navigation 1 24-07-2010 02:10
Turkey Blocks Google Earth & Google Maps MarkJ Europe & Mediterranean 7 04-07-2010 12:30

Advertise Here


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