mhwlng / fip-elite

Information Display for Logitech Flight Instrument Panel and for VR for Elite Dangerous
https://forums.frontier.co.uk/threads/information-display-for-logitech-flight-instrument-panel.535231/
MIT License
41 stars 3 forks source link

Application doesn't load because of the dependency on EDDB #11

Closed javicv closed 1 year ago

javicv commented 1 year ago

Fails on Version: 1.9.6 Works on Version: 1.9.5

Due to the recent shutdown of EDDB the application is stuck in the loading screen while Loading Populated Systems

image

The log shows an Exception when exited from the tray icon:

ERROR 2023-04-10 01:04:33,061 Invoke - AppDispatcherUnhandledException: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
   en Elite.App.OnExit(ExitEventArgs e)
   en System.Windows.Application.DoShutdown()
   en System.Windows.Application.ShutdownImpl()
   en System.Windows.Application.ShutdownCallback(Object arg)
   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
ERROR 2023-04-10 01:04:33,075 Invoke - AppDispatcherUnhandledException: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
   en Elite.App.OnExit(ExitEventArgs e)
   en System.Windows.Application.DoShutdown()
   en System.Windows.Application.ShutdownImpl()
   en System.Windows.Application.ShutdownCallback(Object arg)
   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
ERROR 2023-04-10 01:04:33,076 TryCatchWhen - AppDomainUnhandledExceptionHandler: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
   en Elite.App.OnExit(ExitEventArgs e)
   en System.Windows.Application.DoShutdown()
   en System.Windows.Application.ShutdownImpl()
   en System.Windows.Application.ShutdownCallback(Object arg)
   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   en System.Windows.Threading.DispatcherOperation.InvokeImpl()
   en MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   en MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   en System.Windows.Threading.DispatcherOperation.Invoke()
   en System.Windows.Threading.Dispatcher.ProcessQueue()
   en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   en MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   en System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   en System.Windows.Application.RunDispatcher(Object ignore)
   en System.Windows.Application.RunInternal(Window window)
   en Elite.App.Main()

Downgrading the installation to v1.9.5 solves the issue and the application starts without problem.

mhwlng commented 1 year ago

perhaps 1.9.5 doesn't crash for you, but certainly data is now missing/outdated.

This application relies heavily on EDDB and now requires serious changes, to switch to spansh/edsm.

and some screens related to painite/ltd/platinum/tritium buying/selling stations will have to be removed entirely.

mhwlng commented 1 year ago

please try 2.0.0