(12-12-2017, 03:17 AM)pjank42 Wrote: Do you have the log file for the crash for saving game, so I can fix that?
And the demand are precreated before released, since it takes too much time if it should be done on creation of a new game
RE the demand, that's fine, I can make personal amendments myself; I've noticed when going to save there are a number of save names that are not my own, and clicking these lead to a crash.
My log file is;
12/12/2017: 20:48 System.NullReferenceException: Object reference not set to an instance of an object.
at TheAirlineProjectV2.Infrastructure.Model.LoadSaveModel.Converters.AirlinerOwnerConverter.<>c.<ConvertTo>b__3_0(Route r) in C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2.Infrastructure\Model\LoadSaveModel\Converters\AirlinerOwnerConverter.cs:line 54
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.String.Join(String separator, IEnumerable`1 values)
at TheAirlineProjectV2.Infrastructure.Model.LoadSaveModel.Converters.AirlinerOwnerConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) in C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2.Infrastructure\Model\LoadSaveModel\Converters\AirlinerOwnerConverter.cs:line 54
at System.ComponentModel.TypeConverter.ConvertTo(Object value, Type destinationType)
at SQLiter.SQLiter.getPropertyValue(Object type, PropertyInfo property) in C:\Users\Christian\Documents\Visual Studio 2017\Projects\SQLiter\SQLiter\SQLiter.cs:line 402
at SQLiter.SQLiter.SaveAll[T](IEnumerable`1 data) in C:\Users\Christian\Documents\Visual Studio 2017\Projects\SQLiter\SQLiter\SQLiter.cs:line 170
at TheAirlineProjectV2.Infrastructure.Model.LoadSaveModel.LoadSaveHelpers.SaveGame(SaveFile save) in C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2.Infrastructure\Model\LoadSaveModel\LoadSaveHelpers.cs:line 223
at TheAirlineProjectV2.Infrastructure.Model.LoadSaveModel.LoadSaveObject.saveGame(SaveFile savefile) in C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2.Infrastructure\Model\LoadSaveModel\LoadSaveObject.cs:line 174
at TheAirlineProjectV2.Modules.GameSideMenu.ViewModels.GameSideMenuViewModel.MenuItemClicked(Object o) in C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2.Modules.GameSideMenu\ViewModels\GameSideMenuViewModel.cs:line 206
at Prism.Commands.DelegateCommandBase.<>c__DisplayClass6_0.<.ctor>b__0(Object arg)
at Prism.Commands.DelegateCommandBase.<Execute>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Prism.Commands.DelegateCommandBase.<System-Windows-Input-ICommand-Execute>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
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.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at TheAirlineProjectV2.App.Main()
I have fixed the bug with the return to the airline page and you shouldn't try to load the existing saved games, since those are some I forgot to remove :-)
Crashes during assigning routes to airliners. Happened numerous time when I tried to create a complex schedule. Thank you
1980 start, CX, 10-50 opponents, full map
08-12-2017: 20:18 System.InvalidCastException: Objektet kan ikke ændres fra DBNull til andre typer.
ved System.DBNull.System.IConvertible.ToInt64(IFormatProvider provider)
ved System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
ved TheAirlineProjectV2.Infrastructure.Model.TypeConverters.UnitConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) i C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2.Infrastructure\Model\TypeConverters\UnitConverter.cs:linje 28
ved SQLiter.SQLiter.getObjectValue(Object type, Type otype) i C:\Users\Christian\Documents\Visual Studio 2017\Projects\SQLiter\SQLiter\SQLiter.cs:linje 376
ved SQLiter.SQLiter.getObjectValue(Object type, PropertyInfo property) i C:\Users\Christian\Documents\Visual Studio 2017\Projects\SQLiter\SQLiter\SQLiter.cs:linje 334
ved SQLiter.SQLiter.GetElement[T](SQLiteDataReader reader) i C:\Users\Christian\Documents\Visual Studio 2017\Projects\SQLiter\SQLiter\SQLiter.cs:linje 261
ved SQLiter.SQLiter.GetTable[T]() i C:\Users\Christian\Documents\Visual Studio 2017\Projects\SQLiter\SQLiter\SQLiter.cs:linje 286
ved TheAirlineProjectV2.Infrastructure.Model.GeneralModel.Setup.SetupGame() i C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2.Infrastructure\Model\GeneralModel\Setup.cs:linje 65
ved TheAirlineProjectV2.Bootstrapper.InitializeShell() i C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2\Bootstrapper.cs:linje 38
ved Prism.Unity.UnityBootstrapper.Run(Boolean runWithDefaultConfiguration)
ved TheAirlineProjectV2.App.OnStartup(StartupEventArgs e) i C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2\App.xaml.cs:linje 24
ved System.Windows.Application.<.ctor>b__1_0(Object unused)
ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
ved System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
ved System.Windows.Threading.DispatcherOperation.InvokeImpl()
ved System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
ved System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
ved System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
ved MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
ved System.Windows.Threading.DispatcherOperation.Invoke()
ved System.Windows.Threading.Dispatcher.ProcessQueue()
ved System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
ved System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
ved System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
ved MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
ved MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
ved System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
ved System.Windows.Application.RunDispatcher(Object ignore)
ved System.Windows.Application.RunInternal(Window window)
ved TheAirlineProjectV2.App.Main()
12/15/2017: 10:03 AM System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at TheAirlineProjectV2.Modules.Routes.ViewModels.RoutesAirlinersViewModel.hasFreeSlots(TimeSpan startTime, TimeSpan endTime, Airport airport1, Airport airport2) in C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2.Modules.Routes\ViewModels\RoutesAirlinersViewModel.cs:line 486
at TheAirlineProjectV2.Modules.Routes.ViewModels.RoutesAirlinersViewModel.AddEntriesClicked() in C:\Users\Christian\Documents\Visual Studio 2017\Projects\TheAirlineProjectV2\TheAirlineProjectV2.Modules.Routes\ViewModels\RoutesAirlinersViewModel.cs:line 211
at Prism.Commands.DelegateCommandBase.<>c__DisplayClass6_0.<.ctor>b__0(Object arg)
at Prism.Commands.DelegateCommandBase.<Execute>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Prism.Commands.DelegateCommandBase.<System-Windows-Input-ICommand-Execute>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
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.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at TheAirlineProjectV2.App.Main()
1.
When undoing a change in the timetable the slots are still used and can't be asigned again (saving after the undo doesn't help to fix it)
2.
Start Year 1940 (Air Canada with 10 AI Players), Game started in Paused-Mode: After unpausing nothing happens, after 10 min. it is still the 01/01/1940
for both bug are no logs in the TAPv2.txt file
--------------
and one other thing to reduce the size of the download, you can remove the ".pdb" and ".vhost" files from the directory
after around 1h of playing without any crashes a bug ended my game:
I was creating a new route and added some flights to it, after I added them (without closing the window with OK) I decided to remove them, because I wanted to change the departure time and then the game crahes:
Anwendung: TheAirlineProjectV2.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.InvalidOperationException
bei System.Linq.Enumerable.First[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Func`2<System.__Canon,Boolean>)
bei TheAirlineProjectV2.Modules.Routes.Content.RoutePlannerContent.RouteFlightsContent.RemoveEntryClicked(TheAirlineProjectV2.Modules.Routes.Infrastructure.RouteFlightItem)
bei Prism.Commands.DelegateCommandBase+<>c__DisplayClass6_0.<.ctor>b__0(System.Object)
bei Prism.Commands.DelegateCommandBase+<Execute>d__15.MoveNext()
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
bei Prism.Commands.DelegateCommandBase+<System-Windows-Input-ICommand-Execute>d__13.MoveNext()
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
bei System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
bei MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
bei System.Windows.Threading.DispatcherOperation.Invoke()
bei System.Windows.Threading.Dispatcher.ProcessQueue()
bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
bei System.Windows.Window.ShowHelper(System.Object)
bei System.Windows.Window.ShowDialog()
bei TheAirlineProjectV2.Modules.Routes.ViewModels.RoutesViewModel.AircraftAddClicked(TheAirlineProjectV2.Modules.Routes.Infrastructure.RouteItem)
bei Prism.Commands.DelegateCommandBase+<>c__DisplayClass6_0.<.ctor>b__0(System.Object)
bei Prism.Commands.DelegateCommandBase+<Execute>d__15.MoveNext()
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
bei Prism.Commands.DelegateCommandBase+<System-Windows-Input-ICommand-Execute>d__13.MoveNext()
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
bei System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
bei MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
bei System.Windows.Threading.DispatcherOperation.Invoke()
bei System.Windows.Threading.Dispatcher.ProcessQueue()
bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
bei System.Windows.Application.RunDispatcher(System.Object)
bei System.Windows.Application.RunInternal(System.Windows.Window)
bei TheAirlineProjectV2.App.Main()
---------------------
Over the time I found some UI Bugs regarding the Route-Income:
The total cash of my Airline is growing and in the Route-Tab of the main menu my routes are all positve, but on the main screen summary and in the monthly mail the routes are negative. The yearly tax report is also all negative.