GithubHelp home page GithubHelp logo

simflightpath-issues's People

Watchers

 avatar

simflightpath-issues's Issues

ArgumentException: The root Visual of a VisualTarget cannot have a parent.

Steps to reproduce the bug:

Error details:
System.ArgumentException: The root Visual of a VisualTarget cannot have a parent.
at System.Windows.Media.CompositionTarget.SetRootVisual(Visual visual)
at System.Windows.Media.CompositionTarget.set_RootVisual(Visual value)
at System.Windows.Interop.HwndTarget.set_RootVisual(Visual value)
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
at System.Windows.Controls.Primitives.Popup.SetRootVisualToPopupRoot()
at System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
at System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at System.Windows.Data.BindingOperations.SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
at System.Windows.Controls.Primitives.Popup.CreateRootPopupInternal(Popup popup, UIElement child, Boolean bindTreatMousePlacementAsBottomProperty)
at System.Windows.Controls.ToolTip.HookupParentPopup()
at System.Windows.Controls.ToolTip.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Boolean value)
at System.Windows.Controls.ToolTip.set_IsOpen(Boolean value)
at Hardcodet.Wpf.TaskbarNotification.TaskbarIcon.OnToolTipChange(Boolean visible) in D:\a\1\s\src\NotifyIconWpf\TaskbarIcon.cs:line 507
at Hardcodet.Wpf.TaskbarNotification.Interop.WindowMessageSink.ProcessWindowMessage(UInt32 msg, IntPtr wParam, IntPtr lParam) in D:\a\1\s\src\NotifyIconWpf\Interop\WindowMessageSink.cs:line 308
at Hardcodet.Wpf.TaskbarNotification.Interop.WindowMessageSink.OnWindowMessageReceived(IntPtr hWnd, UInt32 messageId, IntPtr wParam, IntPtr lParam) in D:\a\1\s\src\NotifyIconWpf\Interop\WindowMessageSink.cs:line 209

IndexOutOfRangeException: Index was outside the bounds of the array.

Steps to reproduce the bug:

Error details:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
at Microsoft.FlightSimulator.SimConnect.SimConnect.RegisterStruct[RECV,T](Enum dwID)
at SimFlightPath.Model.SimConnectHelper.Connect() in SimFlightPath\Model\SimConnectHelper.cs:line 201
at SimFlightPath.Model.SimConnectHelper.StartDataPull() in SimFlightPath\Model\SimConnectHelper.cs:line 231
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at SimFlightPath.Model.SimConnectHelper.ConnectionTimer_Tick(Object sender, EventArgs e) in SimFlightPath\Model\SimConnectHelper.cs:line 209
at System.Threading.Tasks.Task.<>c.b__140_0(Object state)
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)

Win32Exception: Application not found

Steps to reproduce the bug:

Error details:
System.ComponentModel.Win32Exception (0x800401F5): Application not found
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at SimFlightPath.ViewModel.FlightViewModel.ExecuteOpenFile(Object parameter) in SimFlightPath\ViewModel\FlightViewModel.cs:line 264
at SimFlightPath.RelayCommand.Execute(Object parameter) in SimFlightPath\Core\RelayCommand.cs:line 25
at SimFlightPath.View.FlightsView.lbFiles_MouseDoubleClick(Object sender, MouseButtonEventArgs e) in SimFlightPath\View\FlightsView.xaml.cs:line 128
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Control.OnMouseDoubleClick(MouseButtonEventArgs e)
at System.Windows.Controls.Control.HandleDoubleClick(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.Input.InputManager.ProcessStagingArea()
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)

DirectoryNotFoundException: Could not find a part of the path 'C:\Users\crazy\AppData\Local\SimFlightPath\Temp\2022-06-06 17-16 [LRIA-LROP].kml'.

Steps to reproduce the bug:

Error details:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\crazy\AppData\Local\SimFlightPath\Temp\2022-06-06 17-16 [LRIA-LROP].kml'.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at SimFlightPath.Formats.Kml.GpxToKml(String sourceFileName, String destFileName, Boolean twoD) in SimFlightPath\Formats\Kml.cs:line 284
at SimFlightPath.ViewModel.FlightViewModel.ExecuteOpenFile(Object parameter) in SimFlightPath\ViewModel\FlightViewModel.cs:line 264
at SimFlightPath.RelayCommand.Execute(Object parameter) in SimFlightPath\Core\RelayCommand.cs:line 25
at SimFlightPath.View.FlightsView.lbFiles_MouseDoubleClick(Object sender, MouseButtonEventArgs e) in SimFlightPath\View\FlightsView.xaml.cs:line 134
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Control.OnMouseDoubleClick(MouseButtonEventArgs e)
at System.Windows.Controls.Control.HandleDoubleClick(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.Input.InputManager.ProcessStagingArea()
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)

NullReferenceException: Object reference not set to an instance of an object.

Steps to reproduce the bug:

Error details:
System.NullReferenceException: Object reference not set to an instance of an object.
at SimFlightPath.ViewModel.FlightViewModel.get_FileInfo() in SimFlightPath\ViewModel\FlightViewModel.cs:line 96
at SimFlightPath.ViewModel.FlightViewModel.SetProperties() in SimFlightPath\ViewModel\FlightViewModel.cs:line 249
at SimFlightPath.ViewModel.FlightViewModel.set_Metadata(FlightMetadata value) in SimFlightPath\ViewModel\FlightViewModel.cs:line 90
at SimFlightPath.ViewModel.FlightViewModel..ctor(FlightMetadata flightMetadata) in SimFlightPath\ViewModel\FlightViewModel.cs:line 115
at SimFlightPath.Formats.Gpx.EndFlight(FlightMetadata flightMetadata) in SimFlightPath\Formats\Gpx.cs:line 99
at SimFlightPath.Model.FlightLogger.EndLog() in SimFlightPath\Model\FlightLogger.cs:line 289
at SimFlightPath.Model.FlightLogger.set_Connected(Boolean value) in SimFlightPath\Model\FlightLogger.cs:line 57
at SimFlightPath.Model.FlightLogger.SimConnectHelper_ConnectionChanged(Object sender, ConnectionChangeEventArgs e) in SimFlightPath\Model\FlightLogger.cs:line 107
at SimFlightPath.Model.SimConnectHelper.set_Connected(Boolean value) in SimFlightPath\Model\SimConnectHelper.cs:line 109
at SimFlightPath.Model.SimConnectHelper.MessageReceiverWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in SimFlightPath\Model\SimConnectHelper.cs:line 342
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

DirectoryNotFoundException: Could not find a part of the path 'C:\Users\crazy\AppData\Local\SimFlightPath\Temp\2022-05-19 13-19 [FR-0182-LFRB].kml'.

Steps to reproduce the bug:

Error details:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\crazy\AppData\Local\SimFlightPath\Temp\2022-05-19 13-19 [FR-0182-LFRB].kml'.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at SimFlightPath.Formats.Kml.GpxToKml(String sourceFileName, String destFileName, Boolean twoD) in SimFlightPath\Formats\Kml.cs:line 284
at SimFlightPath.ViewModel.FlightViewModel.ExecuteOpenFile(Object parameter) in SimFlightPath\ViewModel\FlightViewModel.cs:line 264
at SimFlightPath.RelayCommand.Execute(Object parameter) in SimFlightPath\Core\RelayCommand.cs:line 25
at SimFlightPath.View.FlightsView.lbFiles_MouseDoubleClick(Object sender, MouseButtonEventArgs e) in SimFlightPath\View\FlightsView.xaml.cs:line 134
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Control.OnMouseDoubleClick(MouseButtonEventArgs e)
at System.Windows.Controls.Control.HandleDoubleClick(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.Input.InputManager.ProcessStagingArea()
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)

FileSystemWatcher creation fails if the LogFilesPath folder isn't accessible

Steps to reproduce the bug:

Error details:
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'SimFlightPath.ViewModel.MainViewModel' that matches the specified binding constraints threw an exception.
---> System.ArgumentException: The directory name 'C:\Users\Dario\AppData\Local\SimFlightPath\Flights' does not exist. (Parameter 'path')
at System.IO.FileSystemWatcher.CheckPathValidity(String path)
at System.IO.FileSystemWatcher..ctor(String path, String filter)
at SimFlightPath.Model.LogFiles.Initialize() in SimFlightPath\Model\LogFiles.cs:line 55
at SimFlightPath.Model.LogFiles..ctor() in SimFlightPath\Model\LogFiles.cs:line 49
at SimFlightPath.Model.LogFiles.get_Instance() in SimFlightPath\Model\LogFiles.cs:line 31
at SimFlightPath.ViewModel.MainViewModel..ctor() in SimFlightPath\ViewModel\MainViewModel.cs:line 98
--- End of inner exception stack trace ---
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
at System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache)
at System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
at System.Windows.Application.FindResource(Object resourceKey)
at SimFlightPath.App.OnStartup(StartupEventArgs e) in SimFlightPath\App.xaml.cs:line 77
at System.Windows.Application.<.ctor>b__1_0(Object unused)
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)

NullReferenceException: Object reference not set to an instance of an object.

Steps to reproduce the bug:

  • Launched app with msfs running. (MSFS SU9)

Error details:
System.NullReferenceException: Object reference not set to an instance of an object.
at SimFlightPath.ViewModel.FlightViewModel.get_FileInfo() in SimFlightPath\ViewModel\FlightViewModel.cs:line 96
at SimFlightPath.ViewModel.FlightViewModel.SetProperties() in SimFlightPath\ViewModel\FlightViewModel.cs:line 249
at SimFlightPath.ViewModel.FlightViewModel.set_Metadata(FlightMetadata value) in SimFlightPath\ViewModel\FlightViewModel.cs:line 90
at SimFlightPath.ViewModel.FlightViewModel..ctor(FlightMetadata flightMetadata) in SimFlightPath\ViewModel\FlightViewModel.cs:line 115
at SimFlightPath.Formats.Gpx.EndFlight(FlightMetadata flightMetadata) in SimFlightPath\Formats\Gpx.cs:line 99
at SimFlightPath.Model.FlightLogger.EndLog() in SimFlightPath\Model\FlightLogger.cs:line 289
at SimFlightPath.Model.FlightLogger.WritePositonData() in SimFlightPath\Model\FlightLogger.cs:line 240
at SimFlightPath.Model.FlightLogger.SimConnectHelper_DataReceived(Object sender, DataReceivedEventArgs e) in SimFlightPath\Model\FlightLogger.cs:line 91
at SimFlightPath.Model.SimConnectHelper.OnRecvSimobjectData(SimConnect sender, SIMCONNECT_RECV_SIMOBJECT_DATA data) in SimFlightPath\Model\SimConnectHelper.cs:line 305
at Microsoft.FlightSimulator.SimConnect.SimConnect.OnReceiveMessage(SIMCONNECT_RECV pData, UInt32 cbData)
at SimConnect_CallDispatch(Void* , IntPtr , Void* )
at Microsoft.FlightSimulator.SimConnect.SimConnect.ReceiveDispatch(SignalProcDelegate pfcnSignal)
at SimFlightPath.Model.SimConnectHelper.MessageReceiverWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in SimFlightPath\Model\SimConnectHelper.cs:line 342
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

XamlParseException: The invocation of the constructor on type 'SimFlightPath.ViewModel.MainViewModel' that matches the specified binding constraints threw an exception.

Steps to reproduce the bug:

Error details:
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'SimFlightPath.ViewModel.MainViewModel' that matches the specified binding constraints threw an exception.
---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
at System.Xml.Linq.XDocument.Load(String uri)
at SimFlightPath.Model.LogFile.LoadXDocument() in SimFlightPath\Model\LogFile.cs:line 184
at SimFlightPath.Model.LogFile.SaveUpdatedXDocument(XDocument xDoc) in SimFlightPath\Model\LogFile.cs:line 193
at SimFlightPath.Model.LogFile.UpdateTo_1_4() in SimFlightPath\Model\LogFile.cs:line 255
at SimFlightPath.Model.LogFile.Update() in SimFlightPath\Model\LogFile.cs:line 233
at SimFlightPath.Model.LogFiles.UpdateFiles(IEnumerable`1 files) in SimFlightPath\Model\LogFiles.cs:line 154
at SimFlightPath.Model.LogFiles.RefreshFileList() in SimFlightPath\Model\LogFiles.cs:line 104
at SimFlightPath.Model.LogFiles.get_Files() in SimFlightPath\Model\LogFiles.cs:line 43
at SimFlightPath.ViewModel.MainViewModel..ctor() in SimFlightPath\ViewModel\MainViewModel.cs:line 98
--- End of inner exception stack trace ---
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
at System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache)
at System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
at System.Windows.Application.FindResource(Object resourceKey)
at SimFlightPath.App.OnStartup(StartupEventArgs e) in SimFlightPath\App.xaml.cs:line 77
at System.Windows.Application.<.ctor>b__1_0(Object unused)
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)

NullReferenceException: Object reference not set to an instance of an object.

Steps to reproduce the bug:

  • Launched app with msfs running. (MSFS SU9)

Error details:
System.NullReferenceException: Object reference not set to an instance of an object.
at SimFlightPath.ViewModel.FlightViewModel.get_FileInfo() in SimFlightPath\ViewModel\FlightViewModel.cs:line 96
at SimFlightPath.ViewModel.FlightViewModel.SetProperties() in SimFlightPath\ViewModel\FlightViewModel.cs:line 249
at SimFlightPath.ViewModel.FlightViewModel.set_Metadata(FlightMetadata value) in SimFlightPath\ViewModel\FlightViewModel.cs:line 90
at SimFlightPath.ViewModel.FlightViewModel..ctor(FlightMetadata flightMetadata) in SimFlightPath\ViewModel\FlightViewModel.cs:line 115
at SimFlightPath.Formats.Gpx.EndFlight(FlightMetadata flightMetadata) in SimFlightPath\Formats\Gpx.cs:line 99
at SimFlightPath.Model.FlightLogger.EndLog() in SimFlightPath\Model\FlightLogger.cs:line 289
at SimFlightPath.Model.FlightLogger.SimConnectHelper_DataReceived(Object sender, DataReceivedEventArgs e) in SimFlightPath\Model\FlightLogger.cs:line 91
at SimFlightPath.Model.SimConnectHelper.OnRecvSimobjectData(SimConnect sender, SIMCONNECT_RECV_SIMOBJECT_DATA data) in SimFlightPath\Model\SimConnectHelper.cs:line 305
at Microsoft.FlightSimulator.SimConnect.SimConnect.OnReceiveMessage(SIMCONNECT_RECV pData, UInt32 cbData)
at SimConnect_CallDispatch(Void* , IntPtr , Void* )
at Microsoft.FlightSimulator.SimConnect.SimConnect.ReceiveDispatch(SignalProcDelegate pfcnSignal)
at SimFlightPath.Model.SimConnectHelper.MessageReceiverWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in SimFlightPath\Model\SimConnectHelper.cs:line 342
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

DirectoryNotFoundException: Could not find a part of the path 'C:\Users\benbo\AppData\Local\SimFlightPath\Temp\2022-06-06 20-33 [LLBG-MT-0002].kml'.

Steps to reproduce the bug:

Error details:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\benbo\AppData\Local\SimFlightPath\Temp\2022-06-06 20-33 [LLBG-MT-0002].kml'.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at SimFlightPath.Formats.Kml.GpxToKml(String sourceFileName, String destFileName, Boolean twoD) in SimFlightPath\Formats\Kml.cs:line 284
at SimFlightPath.ViewModel.FlightViewModel.ExecuteOpenFile(Object parameter) in SimFlightPath\ViewModel\FlightViewModel.cs:line 264
at SimFlightPath.RelayCommand.Execute(Object parameter) in SimFlightPath\Core\RelayCommand.cs:line 25
at SimFlightPath.View.FlightsView.lbFiles_MouseDoubleClick(Object sender, MouseButtonEventArgs e) in SimFlightPath\View\FlightsView.xaml.cs:line 134
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Control.OnMouseDoubleClick(MouseButtonEventArgs e)
at System.Windows.Controls.Control.HandleDoubleClick(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.Input.InputManager.ProcessStagingArea()
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)

NullReferenceException: Object reference not set to an instance of an object.

Steps to reproduce the bug:

  • Crash during a bush trip

Error details:
System.NullReferenceException: Object reference not set to an instance of an object.
at SimFlightPath.Formats.Gpx.EndFlight(FlightMetadata flightMetadata) in SimFlightPath\Formats\Gpx.cs:line 118
at SimFlightPath.Model.FlightLogger.EndLog() in SimFlightPath\Model\FlightLogger.cs:line 281
at SimFlightPath.Model.FlightLogger.SimConnectHelper_DataReceived(Object sender, DataReceivedEventArgs e) in SimFlightPath\Model\FlightLogger.cs:line 87
at SimFlightPath.Model.SimConnectHelper.OnRecvSimobjectData(SimConnect sender, SIMCONNECT_RECV_SIMOBJECT_DATA data) in SimFlightPath\Model\SimConnectHelper.cs:line 303
at Microsoft.FlightSimulator.SimConnect.SimConnect.OnReceiveMessage(SIMCONNECT_RECV pData, UInt32 cbData)
at SimConnect_CallDispatch(Void* , IntPtr , Void* )
at Microsoft.FlightSimulator.SimConnect.SimConnect.ReceiveDispatch(SignalProcDelegate pfcnSignal)
at SimFlightPath.Model.SimConnectHelper.MessageReceiverWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in SimFlightPath\Model\SimConnectHelper.cs:line 340
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

DirectoryNotFoundException: Could not find a part of the path 'C:\Users\benbo\AppData\Local\SimFlightPath\Temp\2022-05-21 14-30 [LIRF-LEMD].kml'.

Steps to reproduce the bug:

Error details:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\benbo\AppData\Local\SimFlightPath\Temp\2022-05-21 14-30 [LIRF-LEMD].kml'.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at SimFlightPath.Formats.Kml.GpxToKml(String sourceFileName, String destFileName, Boolean twoD) in SimFlightPath\Formats\Kml.cs:line 284
at SimFlightPath.ViewModel.FlightViewModel.ExecuteOpenFile(Object parameter) in SimFlightPath\ViewModel\FlightViewModel.cs:line 264
at SimFlightPath.RelayCommand.Execute(Object parameter) in SimFlightPath\Core\RelayCommand.cs:line 25
at SimFlightPath.View.FlightsView.lbFiles_MouseDoubleClick(Object sender, MouseButtonEventArgs e) in SimFlightPath\View\FlightsView.xaml.cs:line 134
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Control.OnMouseDoubleClick(MouseButtonEventArgs e)
at System.Windows.Controls.Control.HandleDoubleClick(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.Input.InputManager.ProcessStagingArea()
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)

FileSystemWatcher creation fails if the LogFilesPath folder isn't accessible

Steps to reproduce the bug:
Start the program!

Error details:
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'SimFlightPath.ViewModel.MainViewModel' that matches the specified binding constraints threw an exception.
---> System.ArgumentException: The directory name 'H:\MSFS WIP Flight plans\Track Recordings' does not exist. (Parameter 'path')
at System.IO.FileSystemWatcher.CheckPathValidity(String path)
at System.IO.FileSystemWatcher..ctor(String path, String filter)
at SimFlightPath.Model.LogFiles.Initialize() in SimFlightPath\Model\LogFiles.cs:line 72
at SimFlightPath.Model.LogFiles..ctor() in SimFlightPath\Model\LogFiles.cs:line 62
at SimFlightPath.Model.LogFiles.get_Instance() in SimFlightPath\Model\LogFiles.cs:line 32
at SimFlightPath.ViewModel.MainViewModel..ctor() in SimFlightPath\ViewModel\MainViewModel.cs:line 98
--- End of inner exception stack trace ---
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
at System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache)
at System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
at System.Windows.Application.FindResource(Object resourceKey)
at SimFlightPath.App.OnStartup(StartupEventArgs e) in SimFlightPath\App.xaml.cs:line 77
at System.Windows.Application.<.ctor>b__1_0(Object unused)
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)

NullReferenceException: Object reference not set to an instance of an object.

Steps to reproduce the bug:

Error details:
System.NullReferenceException: Object reference not set to an instance of an object.
at SimFlightPath.ViewModel.FlightViewModel.SetProperties() in SimFlightPath\ViewModel\FlightViewModel.cs:line 258
at SimFlightPath.ViewModel.FlightViewModel.set_Metadata(FlightMetadata value) in SimFlightPath\ViewModel\FlightViewModel.cs:line 91
at SimFlightPath.ViewModel.FlightViewModel..ctor(FlightMetadata flightMetadata) in SimFlightPath\ViewModel\FlightViewModel.cs:line 115
at SimFlightPath.Formats.Gpx.EndFlight(FlightMetadata flightMetadata) in SimFlightPath\Formats\Gpx.cs:line 99
at SimFlightPath.Model.FlightLogger.EndLog() in SimFlightPath\Model\FlightLogger.cs:line 296
at SimFlightPath.Model.FlightLogger.SimConnectHelper_DataReceived(Object sender, DataReceivedEventArgs e) in SimFlightPath\Model\FlightLogger.cs:line 91
at SimFlightPath.Model.SimConnectHelper.OnRecvSimobjectData(SimConnect sender, SIMCONNECT_RECV_SIMOBJECT_DATA data) in SimFlightPath\Model\SimConnectHelper.cs:line 305
at Microsoft.FlightSimulator.SimConnect.SimConnect.OnReceiveMessage(SIMCONNECT_RECV pData, UInt32 cbData)
at SimConnect_CallDispatch(Void* , IntPtr , Void* )
at Microsoft.FlightSimulator.SimConnect.SimConnect.ReceiveDispatch(SignalProcDelegate pfcnSignal)
at SimFlightPath.Model.SimConnectHelper.MessageReceiverWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in SimFlightPath\Model\SimConnectHelper.cs:line 342
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.