News:

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

Main Menu

X-Plane 11 database failed to build (merged)

Started by John Lygo, December 09, 2017, 07:48:48 PM

Previous topic - Next topic

John Lygo

Hi Tim,
Having just updated my version of XP from 11.05 to 11.10 I then went to rebuild the database for XP11.10 only to find that the build failed at the apt.dat section. I tried several times, but the result was the same. I had no problems in XP11.05!
Full log file attached.
Regards,
John

tim arnot

Hey John, that was the X-Plane log, not the Plan-G log!

Tim. @TimArnot

John Lygo

Doh! The log file is too large so have truncated it to fit. Hope this helps. 

15:58:07.9

---===+++ 09/12/2017 +++===---

15:58:07.9 Starting Plan-G (W7 edition), build 3.2.0.137
15:58:07.9 OS is Microsoft Windows NT 6.1.7601 Service Pack 1
15:58:07.9 Plan-G Files folder is: C:\Users\John\Documents\Plan-G Files
15:58:08.0 InitDataFolder
15:58:08.0 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FSX.sdf
15:58:08.0 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FS9.sdf
15:58:08.0 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_XPX.sdf
15:58:08.0 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_P3D.sdf
15:58:08.0 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_NAVI.sdf
15:58:08.0 Data Source = C:\Users\John\Documents\Plan-G Files\Data\UserWaypoints.sdf
15:58:08.0 Data Source = C:\Users\John\Documents\Plan-G Files\Data\MEF.sdf
15:58:08.4 Map tiles cache: C:\Users\John\AppData\Local\GMap.NET\
15:58:08.5 Program in: C:\Plan-G
15:58:08.6 Data in: C:\Users\John\Documents\Plan-G Files
15:58:08.6 IsDataLoaded: FSX
15:58:08.6 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FSX.sdf
15:58:08.7 Starting timer
15:58:08.7 DownloadCurrentMetars thread started
15:58:08.7 Metar14Z.TXT started
15:58:08.7 Metar15Z.TXT started
15:58:08.8 IsDataLoaded: FSX
15:58:08.8 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FSX.sdf
15:58:08.9 IsDataLoaded: FS9
15:58:08.9 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FS9.sdf
15:58:08.9 IsDataLoaded: P3D
15:58:08.9 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_P3D.sdf
15:58:08.9 IsDataLoaded: XPlane
15:58:08.9 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_XPX.sdf
15:58:11.2 Stopping timer
15:58:11.2 StartMap
15:58:11.2 Connection string: metadata=res://*/Data.FSData.csdl|res://*/Data.FSData.ssdl|res://*/Data.FSData.msl;provider=System.Data.SqlServerCe.3.5;provider connection string='Data Source=|DataDirectory|\Data\PlanG3_XPX.sdf'
15:58:11.5 NdbsInBounds 2
15:58:11.6 VorsInBounds 5
15:58:11.9 AirportsInBounds 6
15:58:12.1 AirspaceInBounds 0
15:58:12.2 NdbsInBounds 2
15:58:12.2 VorsInBounds 5
15:58:12.2 AirportsInBounds 6
15:58:12.3 AirspaceInBounds 0
15:58:16.4 Metar15Z.TXT done
15:58:16.4 IsDataLoaded: FSX
15:58:16.4 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FSX.sdf
15:58:16.5 NdbsInBounds 7
15:58:16.6 VorsInBounds 6
15:58:16.8 AirportsInBounds 5
15:58:17.1 AirspaceInBounds 47
15:58:18.2 IsDataLoaded: XPlane
15:58:18.2 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_XPX.sdf
15:58:18.2 NdbsInBounds 2
15:58:18.2 VorsInBounds 5
15:58:18.3 AirportsInBounds 6
15:58:18.3 AirspaceInBounds 0
15:58:19.5 Metar14Z.TXT done
15:58:19.5 DownloadCurrentMetars done
15:58:19.9 ProcessMetars done
15:58:47.5 Building database for X-Plane. Folder is: C:\X-Plane 11
15:58:47.5 Preparing database for new data
15:58:47.5 Erasing
15:58:47.6 DeleteExistingData: System.IO.IOException: The process cannot access the file 'C:\Users\John\Documents\Plan-G Files\Data\PlanG3_XPX.sdf' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at Plan_G3.Data.FSData.DeleteExistingData()
15:58:47.6 Scanning usa.txt
15:58:47.6 Writing 0 Airspace Boundaries
15:58:47.6 Hand-placed localisers earth_nav.dat found.
15:58:47.6 Scanning apt.dat
15:58:47.6 Processing AdditionalSceneryLocations.txt
15:58:47.6 Decoding C:\X-Plane 11\Custom Scenery\Aerosoft - EBBR Brussels\Earth nav data\apt.dat
15:58:47.6 PC format
15:58:47.9 Decoding C:\X-Plane 11\Custom Scenery\Aerosoft - EDDF Frankfurt\Earth nav data\apt.dat
15:58:47.9 PC format
15:58:50.8 Decoding C:\X-Plane 11\Custom Scenery\Aerosoft - EDLP Paderborn-Lippstadt\Earth nav data\apt.dat
15:58:50.8 PC format
15:58:51.0 Decoding C:\X-Plane 11\Custom Scenery\Aerosoft - EGLL Heathrow\Earth nav data\apt.dat
15:58:51.0 PC format
15:58:54.3 Decoding C:\X-Plane 11\Custom Scenery\Aerosoft - LFMN Nice Cote d Azur X\Earth nav data\apt.dat
15:58:54.3 PC format
15:58:54.4 Decoding C:\X-Plane 11\Custom Scenery\Aerosoft - LFPO Paris Orly\Earth nav data\apt.dat
15:58:54.4 PC format
15:58:54.7 Decoding C:\X-Plane 11\Custom Scenery\Aerosoft - LPFR Faro\Earth nav data\apt.dat
15:58:54.7 PC format
15:58:54.9 Decoding C:\X-Plane 11\Custom Scenery\Aerosoft - LSGG Genf\Earth nav data\apt.dat
15:58:54.9 PC format
15:58:55.2 Decoding C:\X-Plane 11\Custom Scenery\Global Airports\Earth nav data\apt.dat
15:58:55.2 Mac format
16:03:05.9 Writing 52641 Airways
16:07:09.7 Wrote 34457 airway segments.
16:07:09.7 Build-DB cleanup lambda
16:07:09.7 IsDataLoaded: FSX
16:07:09.7 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FSX.sdf
16:07:09.7 IsDataLoaded: FS9
16:07:09.8 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FS9.sdf
16:07:09.8 IsDataLoaded: P3D
16:07:09.8 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_P3D.sdf
16:07:09.8 IsDataLoaded: XPlane
16:07:09.8 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_XPX.sdf
16:09:43.6 Decoding C:\X-Plane 11\Custom Scenery\KLAS Las Vegas Mc Carran\Earth nav data\apt.dat
16:09:43.6 PC format
16:09:46.4 Decoding C:\X-Plane 11\Custom Scenery\KSEA Demo Area\Earth nav data\apt.dat
16:09:46.4 Mac format
16:09:47.0 Decoding C:\X-Plane 11\Custom Scenery\LOWI Demo Area\Earth nav data\apt.dat
16:09:47.0 PC format
16:09:47.3 Decoding C:\X-Plane 11\Custom Scenery\X-Plane Landmarks - London\Earth nav data\apt.dat
16:09:47.3 Mac format
16:09:47.3 Decoding C:\X-Plane 11\Resources\default scenery\default apt dat\Earth nav data\apt.dat
16:09:47.3 Mac format
16:13:08.6 DownloadCurrentMetars thread started
16:13:08.6 Metar15Z.TXT started
16:13:08.6 Metar16Z.TXT started
16:13:23.4 Metar16Z.TXT done
16:13:29.7 Metar15Z.TXT done
16:13:29.7 DownloadCurrentMetars done
16:13:30.0 ProcessMetars done
16:24:03.8 Scanning earth_nav.dat
16:24:03.8 Decoding C:\X-Plane 11\Resources\default data\earth_nav.dat
16:24:03.8 PC format
16:24:03.8 1100 Version - data cycle 1611, build 20161011, metadata NavXP1100. Copyright (c) 2016 Navigraph
16:24:04.5 CPT
16:24:04.7 EGTK
16:24:08.2 Scanning earth_fix.dat
16:24:08.2 Decoding C:\X-Plane 11\Resources\default data\earth_fix.dat
16:24:08.2 PC format
16:24:08.2 1100 Version - data cycle 1611, build 20161011, metadata FixXP1100. Copyright (c) 2016 Navigraph
16:24:59.7 Scanning earth_awy.dat
16:24:59.7 Decoding C:\X-Plane 11\Resources\default data\earth_awy.dat
16:24:59.7 PC format
16:24:59.7 1100 Version - data cycle 1611, build 20161011, metadata AwyXP1100. Copyright (c) 2016 Navigraph
16:25:12.6 Writing 34968 Airports
16:25:12.6 WriteAirportsData-Insert: : A duplicate value cannot be inserted into a unique index. [ Table name = Airports,Constraint name = PK_Airports ]

It then goes on like that for 32000 lines and ends thus:

16:27:01.8 WriteAirportsData-Insert: : A duplicate value cannot be inserted into a unique index. [ Table name = Airports,Constraint name = PK_Airports ]
name = PK_Airports ]
name = PK_Airports ]

16:27:05.1 WriteAirportsData-Insert: : A duplicate value cannot be inserted into a unique index. [ Table name = Airports,Constraint name = PK_Airports ]
16:27:05.1 Writing 35409 Runways
16:27:05.1 StartBuild_Executed: A duplicate value cannot be inserted into a unique index. [ Table name = Runways,Constraint name = PK_Runways ]
16:28:08.8 DownloadCurrentMetars thread started
16:28:08.8 Metar15Z.TXT started
16:28:08.8 Metar16Z.TXT started
16:28:24.2 Metar16Z.TXT done
16:28:30.5 Metar15Z.TXT done
16:28:30.5 DownloadCurrentMetars done
16:28:30.8 ProcessMetars done
16:43:08.8 DownloadCurrentMetars thread started
16:43:08.8 Metar15Z.TXT started
16:43:08.8 Metar16Z.TXT started
16:43:18.0 Metar16Z.TXT done
16:43:21.9 Metar15Z.TXT done
16:43:21.9 DownloadCurrentMetars done
16:43:22.3 ProcessMetars done
16:58:08.8 DownloadCurrentMetars thread started
16:58:08.8 Metar15Z.TXT started
16:58:08.8 Metar16Z.TXT started
16:58:16.9 Metar15Z.TXT done
16:58:21.4 Metar16Z.TXT done
16:58:21.4 DownloadCurrentMetars done
16:58:21.8 ProcessMetars done
17:10:21.0 Build-DB cleanup lambda
17:10:21.0 IsDataLoaded: FSX
17:10:21.0 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FSX.sdf
17:10:21.0 IsDataLoaded: FS9
17:10:21.0 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_FS9.sdf
17:10:21.1 IsDataLoaded: P3D
17:10:21.1 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_P3D.sdf
17:10:21.1 IsDataLoaded: XPlane
17:10:21.1 Data Source = C:\Users\John\Documents\Plan-G Files\Data\PlanG3_XPX.sdf
17:10:21.2 NdbsInBounds 2
17:10:21.2 VorsInBounds 5
17:10:21.2 AirportsInBounds 6
17:10:21.3 AirspaceInBounds 0
17:10:24.4 Cleanup

tim arnot

Things to check/Do:

* Reboot your PC
* Delete the Plan-G Files\Data\PlanG3_XPX.sdf file before running Plan-G
* Are you running in Administrator mode?
* Is your ProgramData marked as hidden? (one user reported the problem went away after unhiding)
* Did you recently do a system update? If so, one of the DotNet libraries may not have

Tim. @TimArnot

John Lygo

Quote from: tim arnot on December 13, 2017, 02:28:08 PM
* Reboot your PC
* Delete the Plan-G Files\Data\PlanG3_XPX.sdf file before running Plan-G
* Are you running in Administrator mode?
* Is your ProgramData marked as hidden? (one user reported the problem went away after unhiding)
* Did you recently do a system update? If so, one of the DotNet libraries may not have

Rebooted PC.
Running in Administrator Mode
ProgramData - the directory shows in Windows Explorer, as do the files therein.
Not recently done a system update.

Ran Plan-G to build the database & I get the same result - PG in a loop in the apt.dat bit.
Have you any more suggestions, Tim?

tim arnot

Those are the only suggestions I have, John. One or other of them has always worked in the past.

Tim. @TimArnot

Der Rote Baron

I had the same problem, 11.05 ran fine, 11.10 crashes. I think here is problem:
Quote15:58:47.6 DeleteExistingData: System.IO.IOException: The process cannot access the file 'C:\Users\John\Documents\Plan-G Files\Data\PlanG3_XPX.sdf' because it is being used by another process.

Even after deleting the PlanG3_XPX.sdf id didn't work. So I tried a restart which also didn't help. Today it works likes magic.

I'd try to delete the file PlanG3_XPX.sdf while Plan-G is closed and do a restart before opening Plan-G again and close the Explorer or anything that could have access to file. Maybe this helps. It seems that Plan-G cannot access some files.

John Lygo

OK guys, thanks for the tips. I'll keep on it & report back if/when I have got it working.  :)

Der Rote Baron

I got the next error, seems that the database size limit is too small:


Quote15:52:54.8 WriteAirwaysData: System.Data.UpdateException: Fehler beim Aktualisieren der Einträge. Weitere Informationen finden Sie in der internen Ausnahme. ---> System.Data.SqlServerCe.SqlCeException: The database file is larger than the configured maximum database size. This setting takes effect on the first concurrent database connection only. [ Required Max Database Size (in MB; 0 if unknown) = 257 ]
   bei System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
   bei System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor)
   bei System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
   bei System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
   bei System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary`2 identifierValues, List`1 generatedValues)
   bei System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)
   bei System.Data.EntityClient.EntityAdapter.Update(IEntityStateManager entityCache)
   bei System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)
   bei Plan_G3.Data.FSData.WriteAirwaysData(List`1 data)

w9nwrwi

I get the same thing here XP-Flieger. I am fairly sure that Tim is aware of it and has looked into the depths of his program but does not see anything wrong.  Does seem to happen to a few of us, and I am certainly not savvy enough to try and figure out what is wrong on our end.
Plan-G will not run for me anymore (after years of successful use) and I reverted to LittleNav Map which does work. Of course, each program has it advantages/disadvantages over the other.
I am still holding on for a solution, probably a Win-10 bug.

Chuck
Computer:
CPU:i7-6700 4.0GHz, Ram:32GB,  Video.Card: GTX 1070 8Gb, OS:Win 10, 3ea 24" HDMI Widescreen.
X-Plane 11

Der Rote Baron

I know that Tim is working hard on bugs and not everyone has this bugs. I just wanted to mention this problem.  :)


@Tim
Thanks for this wonderful tool. I'm using it since a few years. Sometimes there were some problems (especially with new XP versions), but they have been always solved. And I'm sure that you'll fix this also.  :)


BTW: I'm using Win7SP1, so it's not a Win10 bug.

w9nwrwi

I downloaded and installed Plan-G V3.2.0.144, on another computer (Win10 64bit), ran the x-plane data base build and it built just fine, no errors. Beats my two pair.
Computer:
CPU:i7-6700 4.0GHz, Ram:32GB,  Video.Card: GTX 1070 8Gb, OS:Win 10, 3ea 24" HDMI Widescreen.
X-Plane 11

Der Rote Baron

On my testing installation with no additional airports it also runs fine. But the size of the Database ist smaller than my main installation.

telboy595

HI  All

I too have had the same problem and as a result of me coming back after a few months off and updating.

Will watch out for an program up date or a solution to the problem i get which is I get  "Access to database file is not allowed". Where do i find the log to download and read??

Thanks in advance

w9nwrwi

Assuming your speaking of Plan-G log, look in the Documents folder/Plan-G Files/Plan-G log.txt
Computer:
CPU:i7-6700 4.0GHz, Ram:32GB,  Video.Card: GTX 1070 8Gb, OS:Win 10, 3ea 24" HDMI Widescreen.
X-Plane 11