News:

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

Main Menu

Building P3D v3.2 database silently crashes

Started by Redglyph, May 11, 2016, 06:00:13 PM

Previous topic - Next topic

Redglyph

I've seen a few reports in these forums that might be the same.

Using P3D, Plan-G3 on the same PC, everything on local disks.
Windows 7 x64.

1) P3D v3.2:
Steps:
- removed %USERPROFILE%\Documents\Plan-G Files
- launched Plan-G3 v3.1.3.113
- Build Navigation Database
- Settings: set paths to P3D.exe (S:\games\P3D\v3), P3d Scenery.cfg (C:\ProgramData\Lockheed Martin\Prepar3D v3)

=> The build windows is "always on top", ** VERY ANNOYING ** as it remains on top of the directory selection window, and any other software the user would like to see while the database is building. Bad practice, this flag should be removed.

- checked "Build P3D Database", and clicked OK

=> "scanning ..."
=> "Preparing database for new data"

And it remains in this state forever.

Plan-G_Log.txt file ends with this:

18:48:55.2 BuildDatabase_Executed: System.IO.IOException: The process cannot access the file 'C:\Users\red\Documents\Plan-G Files\Data\PlanG3_P3D.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()
   at Plan_G3.Model.BGLSCAN.Scan()
   at Plan_G3.ViewModel.BuildDatabaseViewModel.StartBuild_Executed()
   at Plan_G3.ViewModel.BuildDatabaseViewModel.<.ctor>b__0()
   at GalaSoft.MvvmLight.Command.RelayCommand.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at Plan_G3.MainWindow.ShowBuildDatabaseDialog()
   at Plan_G3.MainWindow.<.ctor>b__5(NotificationMessageAction nmMsg)
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.Execute(T parameter)
   at GalaSoft.MvvmLight.Helpers.WeakAction`1.ExecuteWithObject(Object parameter)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToList[TMessage](TMessage message, IEnumerable`1 list, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.SendToTargetOrType[TMessage](TMessage message, Type messageTargetType, Object token)
   at GalaSoft.MvvmLight.Messaging.Messenger.Send[TMessage](TMessage message)
   at Plan_G3.ViewModel.MainViewModel.BuildDatabase_Executed()


2) X-Plane 10.45:

Apparently no problem for this one. I did the test with a "fresh" %USERPROFILE%\Documents\Plan-G Files, it built the database and I can use it.


Let me know if you need further information, I've joined the whole log in attachment.

I tried several times, it's always the same result (I didn't compare the logs though).

Hope you can help :)

tim arnot

It's a known issue. Deleting/renaming all three database sdf files before starting Plan-G often seems to get over it.

Unfortunately the day job is throwing me 16 hour days at the moment, so it might be a little while before I can get to investigate it.

Tim. @TimArnot

Redglyph

It doesn't here, but no worries, I'll just wait for the next release when you have some time :)

mickwilliams36

Hi,

I am having the same issue in that the database build never completes. In the log file I get a constant run of the same METARS & TAFs being downloaded:

12:09:29.5 DownloadCurrentMetars thread started
12:09:29.5 Metar11Z.TXT started
12:09:29.5 sTAF12Z.TXT started
12:09:29.5 Metar10Z.TXT started
12:09:29.7 sTAF12Z.TXT done
12:09:29.7 lTAF12Z.TXT started
12:09:30.0 lTAF12Z.TXT done
12:09:30.0 sTAF06Z.TXT started
12:09:30.0 sTAF06Z.TXT done
12:09:30.0 lTAF06Z.TXT started
12:09:30.2 lTAF06Z.TXT done
12:09:32.0 Metar11Z.TXT done
12:09:32.3 Metar10Z.TXT done
12:09:32.3 DownloadCurrentMetars done
12:09:32.8 ProcessMetars done
12:24:29.5 DownloadCurrentMetars thread started
12:24:29.5 Metar11Z.TXT started
12:24:29.5 sTAF12Z.TXT started
12:24:29.5 Metar10Z.TXT started
12:24:29.6 sTAF12Z.TXT done
12:24:29.6 lTAF12Z.TXT started
12:24:29.6 lTAF12Z.TXT done
12:24:29.6 sTAF06Z.TXT started
12:24:29.7 sTAF06Z.TXT done
12:24:29.7 lTAF06Z.TXT started
12:24:30.0 lTAF06Z.TXT done
12:24:33.0 Metar11Z.TXT done
12:24:34.2 Metar10Z.TXT done
12:24:34.2 DownloadCurrentMetars done
12:24:34.7 ProcessMetars done
12:39:29.5 DownloadCurrentMetars thread started
12:39:29.5 Metar11Z.TXT started
12:39:29.5 sTAF12Z.TXT started
12:39:29.5 Metar10Z.TXT started
12:39:29.6 sTAF12Z.TXT done
12:39:29.6 lTAF12Z.TXT started
12:39:29.8 lTAF12Z.TXT done
12:39:29.8 sTAF06Z.TXT started
12:39:29.8 sTAF06Z.TXT done
12:39:29.8 lTAF06Z.TXT started
12:39:30.3 lTAF06Z.TXT done
12:39:32.2 Metar11Z.TXT done
12:39:33.4 Metar10Z.TXT done
12:39:33.4 DownloadCurrentMetars done
12:39:33.9 ProcessMetars done
12:54:29.5 DownloadCurrentMetars thread started
12:54:29.5 Metar11Z.TXT started
12:54:29.5 sTAF12Z.TXT started
12:54:29.5 Metar10Z.TXT started
12:54:29.6 sTAF12Z.TXT done
12:54:29.6 lTAF12Z.TXT started
12:54:30.1 lTAF12Z.TXT done
12:54:30.1 sTAF06Z.TXT started
12:54:30.2 sTAF06Z.TXT done
12:54:30.2 lTAF06Z.TXT started
12:54:30.6 lTAF06Z.TXT done
12:54:32.4 Metar11Z.TXT done
12:54:33.3 Metar10Z.TXT done
12:54:33.3 DownloadCurrentMetars done
12:54:33.8 ProcessMetars done
13:09:29.5 DownloadCurrentMetars thread started
13:09:29.5 Metar11Z.TXT started
13:09:29.5 sTAF12Z.TXT started
13:09:29.5 Metar12Z.TXT started
13:09:29.6 sTAF12Z.TXT done
13:09:29.6 lTAF12Z.TXT started
13:09:29.8 lTAF12Z.TXT done
13:09:29.8 sTAF06Z.TXT started
13:09:29.9 sTAF06Z.TXT done
13:09:29.9 lTAF06Z.TXT started
13:09:30.1 lTAF06Z.TXT done
13:09:32.2 Metar11Z.TXT done
13:09:32.2 Metar12Z.TXT done
13:09:32.2 DownloadCurrentMetars done
13:09:32.8 ProcessMetars done
13:24:29.5 DownloadCurrentMetars thread started
13:24:29.5 Metar12Z.TXT started
13:24:29.5 sTAF12Z.TXT started
13:24:29.5 Metar11Z.TXT started
13:24:29.6 sTAF12Z.TXT done
13:24:29.6 lTAF12Z.TXT started
13:24:30.1 lTAF12Z.TXT done
13:24:30.1 sTAF06Z.TXT started
13:24:30.1 sTAF06Z.TXT done
13:24:30.1 lTAF06Z.TXT started
13:24:30.4 lTAF06Z.TXT done
13:24:32.8 Metar11Z.TXT done
13:24:32.9 Metar12Z.TXT done
13:24:32.9 DownloadCurrentMetars done
13:24:33.4 ProcessMetars done
13:39:29.5 DownloadCurrentMetars thread started
13:39:29.5 Metar12Z.TXT started
13:39:29.5 sTAF12Z.TXT started
13:39:29.5 Metar11Z.TXT started
13:39:29.6 sTAF12Z.TXT done
13:39:29.6 lTAF12Z.TXT started
13:39:29.8 lTAF12Z.TXT done
13:39:29.8 sTAF06Z.TXT started
13:39:29.9 sTAF06Z.TXT done
13:39:29.9 lTAF06Z.TXT started
13:39:30.4 lTAF06Z.TXT done
13:39:32.5 Metar12Z.TXT done
13:39:32.6 Metar11Z.TXT done
13:39:32.6 DownloadCurrentMetars done
13:39:33.4 ProcessMetars done
13:54:29.5 DownloadCurrentMetars thread started
13:54:29.5 Metar11Z.TXT started
13:54:29.5 sTAF12Z.TXT started
13:54:29.5 Metar12Z.TXT started
13:54:29.6 sTAF12Z.TXT done
13:54:29.6 lTAF12Z.TXT started
13:54:29.8 lTAF12Z.TXT done
13:54:29.8 sTAF06Z.TXT started
13:54:29.9 sTAF06Z.TXT done
13:54:29.9 lTAF06Z.TXT started
13:54:30.6 lTAF06Z.TXT done
13:54:32.2 Metar11Z.TXT done
13:54:33.8 Metar12Z.TXT done
13:54:33.8 DownloadCurrentMetars done
13:54:34.3 ProcessMetars done
14:09:29.5 DownloadCurrentMetars thread started
14:09:29.5 Metar13Z.TXT started
14:09:29.5 Metar12Z.TXT started
14:09:29.5 sTAF12Z.TXT started
14:09:29.7 sTAF12Z.TXT done
14:09:29.7 lTAF12Z.TXT started
14:09:30.4 lTAF12Z.TXT done
14:09:30.4 sTAF06Z.TXT started
14:09:30.5 sTAF06Z.TXT done
14:09:30.5 lTAF06Z.TXT started
14:09:30.8 lTAF06Z.TXT done
14:09:33.1 Metar13Z.TXT done
14:09:33.1 Metar12Z.TXT done
14:09:33.1 DownloadCurrentMetars done
14:09:33.7 ProcessMetars done
14:24:29.5 DownloadCurrentMetars thread started
14:24:29.5 Metar13Z.TXT started
14:24:29.5 Metar12Z.TXT started
14:24:29.5 sTAF12Z.TXT started
14:24:29.6 sTAF12Z.TXT done
14:24:29.6 lTAF12Z.TXT started
14:24:30.0 lTAF12Z.TXT done
14:24:30.0 sTAF06Z.TXT started
14:24:30.1 sTAF06Z.TXT done
14:24:30.1 lTAF06Z.TXT started
14:24:30.4 lTAF06Z.TXT done
14:24:32.2 Metar13Z.TXT done
14:24:32.5 Metar12Z.TXT done
14:24:32.5 DownloadCurrentMetars done
14:24:33.0 ProcessMetars done
14:39:29.5 DownloadCurrentMetars thread started
14:39:29.5 Metar13Z.TXT started
14:39:29.5 Metar12Z.TXT started
14:39:29.5 sTAF12Z.TXT started
14:39:29.7 sTAF12Z.TXT done
14:39:29.7 lTAF12Z.TXT started
14:39:30.0 lTAF12Z.TXT done
14:39:30.0 sTAF06Z.TXT started
14:39:30.0 lTAF06Z.TXT started
14:39:30.1 sTAF06Z.TXT done
14:39:30.3 lTAF06Z.TXT done
14:39:32.2 Metar12Z.TXT done
14:39:37.8 Metar13Z.TXT done
14:39:37.8 DownloadCurrentMetars done
14:39:38.4 ProcessMetars done
14:54:29.5 DownloadCurrentMetars thread started
14:54:29.5 Metar13Z.TXT started
14:54:29.5 sTAF12Z.TXT started
14:54:29.5 Metar12Z.TXT started
14:54:29.7 sTAF12Z.TXT done
14:54:29.7 lTAF12Z.TXT started
14:54:29.9 lTAF12Z.TXT done
14:54:29.9 sTAF06Z.TXT started
14:54:30.5 sTAF06Z.TXT done
14:54:30.5 lTAF06Z.TXT started
14:54:31.3 lTAF06Z.TXT done
14:54:33.5 Metar13Z.TXT done
14:54:33.6 Metar12Z.TXT done
14:54:33.6 DownloadCurrentMetars done
14:54:34.1 ProcessMetars done

Any ideas? I think Plan G is a fantastic program but until I can get a database to build I cannot use it.

Many thanks,

Mick

tim arnot

Yup, same issue.

You can turn off weather updates in Settings, if you don't want them.

Tim. @TimArnot

mickwilliams36

Hi,

I may be being a bit dim here,  but unless I'm missing something, I can't get to that settings option for weather until I've built a database as it's a new install. When I open Plan-G the onl;y option I am giveb is th build the database.

Is there a way to get to that option before the initial database build is carried out?

Many thanks,

Mick

tim arnot

Ah. Good point. Only way to do it would be hand editing the config file.  :-[

Tim. @TimArnot

mickwilliams36

Hi,

Well, I managed to edit the cfg file to stop the weather downloads but I still cannot build a database successfully. I have tried deleting all the sdf files and rebooting several times but still the same.I am getting the same access denied error as Redglyph and I can confirm that I running as Admin. I have also tried moving the Scenery.cfg to my documents folder but still the same:

07:02:35.1 BuildDatabase_Executed: System.IO.IOException: The process cannot access the file 'C:\Users\The Williams Family\Documents\Plan-G Files\Data\PlanG3_P3D.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()
   at Plan_G3.Model.BGLSCAN.Scan()
   at Plan_G3.ViewModel.BuildDatabaseViewModel.StartBuild_Executed()
   at Plan_G3.ViewModel.BuildDatabaseViewModel.<.ctor>b__0()
   at GalaSoft.MvvmLight.Command.RelayCommand.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at Plan_G3.MainWindow.ShowBuildDatabaseDialog()

I guess I'll have to wait until you have got some time to investigate this.

Many thanks for a great program.I'm sure you'll fix this issue.

Regards,

Mick

mickwilliams36

Success...I've now managed to successfully create a database for P3D v3.2. The problem seems to have been that my Program Data folder was marked as hidden in Windows 10. As soon as I unhid it in windows the database build ran through flawlessly.

Maybe this could help a few others out that are having the same problem.

Regards,

Mick

Redglyph

I tried with installing version 3.1.2, but the same bugs are there:
- database window remains on top and hides the explorer window (annoyance)
- crashes with the same message.

I also tried to install the latest .NET framework (4.61) and use it with either version but that didn't change anything.

Was there an older version that worked before? If the database format is compatible, that could be a good work-around?


(and no, the hidden flag is not set here, besides, I doubt it would have anything to do with the error message we see, nor to prevent a process from accessing the file, it's only a convenience for users)

tim arnot

I've had a chance to play with it this afternoon, and it's just not reproducible here, sadly.

I've added some additional logging and error checking which might yield a clue. If you'd like to try it, simply copy the attached new exe over the old one (after making a backup), and post the log here after you've tried another build.


Tim. @TimArnot

Redglyph

Quote from: tim arnot on May 14, 2016, 05:32:58 PM
I've had a chance to play with it this afternoon, and it's just not reproducible here, sadly.

I've added some additional logging and error checking which might yield a clue. If you'd like to try it, simply copy the attached new exe over the old one (after making a backup), and post the log here after you've tried another build.
Thanks!

There was no problem with this version  ???
At least for me, we'll see if others reach the same outcome. Weird.

Well, it solved the problem in a way, though we won't know how :)

In any case, thanks again for your help!

tim arnot

Excellent!  :13:

Are you using P3D v3.3 or 3.2? There were a couple of places where it didn't explicitly test for 3.3, and those are fixed in this build. Although not directly related to the database handling, it's possible they left some flag unset, which might have had knock-on effects. (although even without those checks working, I still didn't get the error)

Tim. @TimArnot

Redglyph

I'm using 3.2 ... there is a 3.3?  :o

If that's a sort of beta access, I know absolutely nothing of it.

tim arnot

Lol, my bad - call it a brain fart. Just getting confused over numbers. The fix was for v3 over v2, and somehow I was getting an extra decimal in my head!

Tim. @TimArnot