News:

Thou shalt confirm thine airspeed on final, lest the earth rise up and smite thee. (pre-landing checklist, v1)

Main Menu

Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME)

Started by Intrepid, February 10, 2010, 11:33:15 PM

Previous topic - Next topic

Intrepid

Hi, I am getting this error: "Error calling setMapPosition: Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))" at the completion of the database build. Plan-G subsequently crashes and although I'm able to restart the application it CTDs as soon as I try to connect to the sim. The log points to this error as the reason for the crash. Any ideas?

tim arnot

Could you post the log file, and just confirm you are running build 423? Thanks

Tim. @TimArnot

Intrepid

Hi Tim,

Yes I can confirm I am using the latest build.

Here's a partial transcript of the log:

04:00:51 PlanG constructor
04:00:51 executableFolder: S:\Plan-G
04:00:51 Starting Plan-G, build 0.9.1.423
04:00:51 FSX is installed
04:00:51 Selected data set is FSX
04:00:51 Starting map
04:00:52 Initialisation complete.
04:00:57 Initializing Jump List
04:00:57 Clearing progress bar
04:00:57 Checking PLN file registration
04:00:57 Checking command line
04:00:57 Command line. Length = 1 args = S:\Plan-G\Plan-G.exe,
04:01:55 Building database for FSX
04:01:55 FS directory is: S:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\
04:01:55 Scanning Scenery.cfg (S:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Scenery.cfg)

this is followed by the long series of decoded files and at the end of the first build.

04:01:59 Writing 17057 airspace boundaries
04:01:59 04:01:59 Writing 17057 airspace boundaries to AirspaceX.dat file.
04:02:01 Writing 7675 VORs
04:02:01  Writing 7675 VORs to VORsX table.
04:02:11 Writing 8347 NDBs
04:02:11  Writing 8347 NDBs to NDBsX table.
04:02:20 Writing 102905 waypoints
04:02:20  Writing 102905 waypoints to IsecX table.
04:04:17 Writing 24493 airports
04:04:17 04:04:17 Writing 24493 Airports to AirportsX table.
04:07:47  Finished writing Airports.
04:07:47 Database load complete.

Despite the long seeming ok, it pops up a window reporting the error which I just ok. This time round the application did not CTD, but I quit it and restarted it just the same and the log said:

04:13:11 UpdatePlanWeather testing IsConnected
04:13:19 PlanG constructor
04:13:19 executableFolder: S:\Plan-G
04:13:19 Starting Plan-G, build 0.9.1.423
04:13:20 FSX is installed
04:13:20 FSX database is built
04:13:20 Selected data set is FSX
04:13:23 Starting map
04:13:23 Initialisation complete.
04:13:23 Initializing Jump List
04:13:23 Clearing progress bar
04:13:23 Checking PLN file registration
04:13:23 Checking command line
04:13:23 Command line. Length = 1 args = S:\Plan-G\Plan-G.exe,

I set up the connection as per the manual and try to connect...

04:16:18 RibbonButton_Click_ConnectFS
04:16:18 SimConnect.Connect
04:16:18 SimConnect.Connect - Remote. Mode = Pipe Server = localhost Port = 0
04:16:21 SimConnect Connect failed: BeatlesBlog.SimConnect.SimConnect+SimConnectException: Pipe Connection Failed ---> System.TimeoutException: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at BeatlesBlog.SimConnect.SimConnect.Networking.Connect()
   --- End of inner exception stack trace ---
   at BeatlesBlog.SimConnect.SimConnect.Networking.Connect()
   at BeatlesBlog.SimConnect.SimConnect.OpenCommon(String strAppName)
   at BeatlesBlog.SimConnect.SimConnect.Open(String strAppName, String strHostName, String strPipeName)
   at FS._SimConnect.Connect()
04:16:25 RibbonButton_Click_ConnectFS
04:16:25 SimConnect.Connect
04:16:25 SimConnect.Connect - Remote. Mode = Pipe Server = localhost Port = 0
04:16:27 SimConnect Connect failed: BeatlesBlog.SimConnect.SimConnect+SimConnectException: Pipe Connection Failed ---> System.TimeoutException: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at BeatlesBlog.SimConnect.SimConnect.Networking.Connect()
   --- End of inner exception stack trace ---
   at BeatlesBlog.SimConnect.SimConnect.Networking.Connect()
   at BeatlesBlog.SimConnect.SimConnect.OpenCommon(String strAppName)
   at BeatlesBlog.SimConnect.SimConnect.Open(String strAppName, String strHostName, String strPipeName)
   at FS._SimConnect.Connect()
04:16:47 RibbonButton_Click_ConnectFS
04:16:47 SimConnect.Connect
04:16:47 SimConnect.Connect - Remote. Mode = Pipe Server = localhost Port = 0
04:16:49 SimConnect Connect failed: BeatlesBlog.SimConnect.SimConnect+SimConnectException: Pipe Connection Failed ---> System.TimeoutException: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at BeatlesBlog.SimConnect.SimConnect.Networking.Connect()
   --- End of inner exception stack trace ---
   at BeatlesBlog.SimConnect.SimConnect.Networking.Connect()
   at BeatlesBlog.SimConnect.SimConnect.OpenCommon(String strAppName)
   at BeatlesBlog.SimConnect.SimConnect.Open(String strAppName, String strHostName, String strPipeName)
   at FS._SimConnect.Connect()
04:16:49 FSUIPC.Connect
04:16:49 Error calling setMapPosition: Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
04:16:49 Error calling plotUserAircraft: Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))

At this point the applications crashes.

What do you reckon?

Regards.

tim arnot

It only seems to CTD when it gives up on Simconnect and switches to FSUIPC. Do you have FSUIPC installed? Did you previously have 0.8 or earlier version of Plan-G?

If you go into the FSConnect tab of Options, and change the Port Number from 0 to blank, it should connect properly.

Tim. @TimArnot

Intrepid

Do you have FSUIPC installed? - Yes
Did you previously have 0.8 or earlier version of Plan-G? - Yes, v. 0.8. I deleted the folder of this version. I did not overwrite the contents with v. 0.9

The Port number is a blank already, not 0. Is it not saving the setting correctly perhaps?

tim arnot

If you run the ClearAllSettings app, that'll zap the Plan-G registry, so if anything is left over from the old version, that'll get rid of it.

Tim. @TimArnot

Intrepid

Hi again,

I did as you suggested and re-built the database too after that just in case. The time-out problem seems to have been resolved, however Plan-G crashes after connecting. The log after connection now says this:

17:57:16 RibbonButton_Click_ConnectFS
17:57:16 SimConnect.Connect
17:57:16 SimConnect.Connect - Remote. Mode = Pipe Server = localhost Port =
17:57:16 Connected to FSX
17:57:16 Error calling setMapPosition: Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
17:57:16 Error calling plotUserAircraft: Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))


tim arnot

The problem appears to be with drawing the user aircraft. My guess is that it's somehow getting invalid lat/lon coordinates back from FS. Where is your aircraft located when you connect?

I'll send you a debug build later today, and we'll see if we can track it down...

Tim. @TimArnot

Intrepid

Hi Tim,

The error occurs every time I try to connect regardless of position. I've tried several locations in Europe, the US and Australia. Given that the log is reporting the same error code that I get whenever Plan-G finishes building the database I am wondering if this is the root of the problem. Could it be that one of one or more sceneries is causing the problem with the database build which in turn is leading to this problem?

Thanks again for taking the trouble to look into this.

tim arnot

To test that, copy the blank Plan-G.mdb file from the original zip, and delete the airspaceX.dat file. You'll have no airports, navaids etc, but you'll still be able to see the map, and you'll still be able to connect to FS. If the error still happens, that will at least eliminate the database.

Tim. @TimArnot

tim arnot

Just one other thought, what is your Windows language and system number format set to (ie decimal points etc)?

Tim. @TimArnot

Intrepid

Copies the original database and deleted the airspace file as you suggested but the result was the same (same error). My Windows language is set to English (UK) (so is my location setting) and number format is . decimal point and , as the separator. I tried changing location to United States. No joy. I can see how this might cause havoc with the database.. but it seems as if it's nothing to do with the database per se.

tim arnot

Thanks. Please check you PM - there is a test build waiting for you.

Tim. @TimArnot

Intrepid

15:11:19 Command line. Length = 1 args = S:\Plan-G\Plan-G.exe,
15:11:24 RibbonButton_Click_ConnectFS
15:11:24 SimConnect.Connect
15:11:24 SimConnect.Connect - Remote. Mode = Pipe Server = localhost Port =
15:11:24 Connected to FSX
15:11:24 ShowAircraftOnMap: Lat=51.4727759386459 Lon=-0.438435132580651
15:11:24 ShowAircraftOnMap: Lat = 51.4727759386459 Lng = -0.438435132580651
15:11:24 Error calling setMapPosition: Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
15:11:24 PlotUserAircraftE: Lat=51.4727759386459 Lon=-0.438435132580651 Hdg=54 sync=Sync C172 N176CM
87ft
0kts
270°T
15:11:24 Error calling plotUserAircraft: Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
15:11:29 PlotUserAircraftE: Lat=51.4727759386459 Lon=-0.438435132580651 Hdg=54 sync=Sync C172 N176CM
87ft
0kts
270°T
15:11:29 Error calling plotUserAircraft: Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))

tim arnot

Well the numbers look okay, which suggests something inside the JavaScript. I'll knock up another test file, although it won't be today.

Tim. @TimArnot