Main Menu

[SOLVED] CTDs when trying to use AITC

Started by petedowson, August 12, 2020, 10:56:14 AM

Previous topic - Next topic

petedowson

Today I updated my AIM to 1.0.1.4, and also installed all thenew airline files availablesunce I updated a week or two ago. All that seemed to go fine. When AIM said that the plans were exclusively AITFP (? have i remembered that correctly?) I said yes for it to be installed.

Then I ran AITC for the first time. In settings I set the path to AIGAIM - OCI and enabled AITC with the check box.

Starting P3Dv5, when the flight was ready, i clicked "connect" and was rewarded with many flights showing on the Map. All seemed well. But then I clicked on one of the aircraft symbols expecting to see its details on the right. I didn't so I thought I'd try "show". Clicking that rewarded me with an immediate CTD.

Since then every time I try to run it I get an immediate CTD. I can't do anything with it at present.

I attach all the Logs from the last attempt to run it. And below are the CTD details from Event Viewer in order of occurrence. Hope all this helps.

Best Regards
Pete

-------------------------------------------------------

Application: AIGTech - Traffic Controller.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
   at AIGTech.TrafficController.Controller.SimConnectController.setObserver(AIGTech.Common.Connector.AIObjects.AISimObject, AIGTech.Utilities.General.GeoPoint)
   at AIGTech.TrafficController.Controller.TCController.ObserveObject(AIGTech.Common.Connector.AIObjects.AISimObject)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)
   at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
   at System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
   at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
   at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
   at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Application.RunDispatcher(System.Object)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at AIGTech.TrafficController.App.Main()

Faulting application name: AIGTech - Traffic Controller.exe, version: 0.3.1.2, time stamp: 0x9121d3cd
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x00007ffe3389a708
Faulting process ID: 0x1868
Faulting application start time: 0x01d670915e85452f
Faulting application path: E:\AITC\AIGTech - Traffic Controller.exe
Faulting module path: unknown
Report ID: 879f8440-1e65-47fb-a237-0e5e530610ef
Faulting package full name:
Faulting package-relative application ID:

------------------------------------------------------------

Application: AIGTech - Traffic Controller.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.DirectoryNotFoundException
   at System.IO.__Error.WinIOError(Int32, System.String)
   at System.IO.FileSystemEnumerableIterator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].CommonInit()
   at System.IO.FileSystemEnumerableIterator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.String, System.String, System.String, System.IO.SearchOption, System.IO.SearchResultHandler`1<System.__Canon>, Boolean)
   at System.IO.Directory.EnumerateFiles(System.String, System.String, System.IO.SearchOption)
   at AIGTech.TrafficController.Classes.Manager.Moduls.AirportManager.loadData()
   at AIGTech.TrafficController.Classes.Manager.TrafficManager..ctor(AIGTech.TrafficController.Controller.TCController)
   at AIGTech.TrafficController.Controller.TCController.ConnectToSim()
   at AIGTech.TrafficController.View.MainWindow.connectToV4(System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)
   at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
   at System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
   at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
   at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
   at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Application.RunDispatcher(System.Object)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at AIGTech.TrafficController.App.Main()

Faulting application name: AIGTech - Traffic Controller.exe, version: 0.3.1.2, time stamp: 0x9121d3cd
Faulting module name: KERNELBASE.dll, version: 10.0.19041.207, time stamp: 0x746c1866
Exception code: 0xe0434352
Fault offset: 0x0000000000023e49
Faulting process ID: 0xbcc
Faulting application start time: 0x01d67092c82e18c7
Faulting application path: E:\AITC\AIGTech - Traffic Controller.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report ID: c12971cb-91d3-4b95-a5f6-afdba229646c
Faulting package full name:
Faulting package-relative application ID:

-----------------------------------------------------------

Application: AIGTech - Traffic Controller.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
   at AIGTech.TrafficController.View.MainWindow.injectTraffic(System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)
   at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
   at System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
   at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
   at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
   at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
   at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Application.RunDispatcher(System.Object)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at AIGTech.TrafficController.App.Main()

Faulting application name: AIGTech - Traffic Controller.exe, version: 0.3.1.2, time stamp: 0x9121d3cd
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x00007ffe33870ae0
Faulting process ID: 0x3438
Faulting application start time: 0x01d67092db848ec7
Faulting application path: E:\AITC\AIGTech - Traffic Controller.exe
Faulting module path: unknown
Report ID: 289e6289-af23-40c2-aba4-8e68e6228e94
Faulting package full name:
Faulting package-relative application ID:

-------------------------------------------------------




Kaiii3

Thanks for the reports I will have a look at them. Regarding the startup: The older two logs are shoing a "normal" start and in one of them the connection to the Sim was opened.

Can you check if you have in your OCI directory the Subdirectories: Airports\AIGTC

Kaiii3

When you clicked on one of the airplanes did it was highlighted in orange?

petedowson

Wow! That was a quick reply (replies, rather).

We have decorators in at present and access to my cockpit room is difficult this afternoon, so it is all powered down for now. I will check the folder you mention tomorrow. but, sorry, i don't remember if the aircraft being clicked changed colour.

The problem when i left it and closed down was that AITC was crashing with a CTD immediately I connect. So i can't do anything with it now. Is there a way of restoring it to it's original state. i don't see any config files in its own folder, so i assume it uses AppData or similar?

Other Questions (while i'm here)

I know auto-injection is planned, but is auto-connection also in its future? i normally have every sim accessory program set to load and start automatically (through parameters in FSUIPC), so i'd really like that to apply to AITC too.

When I updated the airlines etc in the latest AIM it included several flight plan files for AITC (no choice given, which was okay). Will there be others automatically found in future -- I suppose that depends entirely on the contributors, right?

Thanks,
Pete


Kaiii3

autoconnect and autoinjection are planed - but my main focus for this tests version is to make sure the basic features are working :)

If you have AIM set to use AIGFP it will always use AIGFP when possbile (a AIGFP file needs to be included in the Flightplan Zip). Our internal tools are currently updated so that an AIGFP file will always be included, so basically from now on all AIG releases and many of the 3rd party OCI flightplans will be AIGFP ready

Kaiii3

all problems in the code identified and handled in the next update.

petedowson

#6
Quoteall problems in the code identified and handled in the next update.

Great. I'll look out for it. Meanwhile, on your previous questions:

QuoteCan you check if you have in your OCI directory the Subdirectories: Airports\AIGTC

Yes, that folder is there, but empty.  There's also an empty Scenery folder and an installedAirportsDB.xml containing only the first line.

QuoteWhen you clicked on one of the airplanes did it was highlighted in orange?

I can't check that now, because when i click "connect" in AITC it crashes immediately. It never gets to the state where it displays the aircraft images. I've looked in ProgramData and AppData/Roaming for a folder which may contain settings i can delete, but . nothing. How do i revert AITC to its original state? Just delete its folder and reinstall?

Also I hadn't read this before i ran AIM to update my flights:

QuoteIf you have AIM set to use AIGFP it will always use AIGFP when possbile (a AIGFP file needs to be included in the Flightplan Zip). Our internal tools are currently updated so that an AIGFP file will always be included, so basically from now on all AIG releases and many of the 3rd party OCI flightplans will be AIGFP ready

So I just re-ran it and went to Settings-Flightplans, checked the "AIGFP" option and tried, in vain, to enter the path to AITC,. it seems that, although the edit field for the path has a flashing cursor, the field accepts no characters, nothing! Another bug? Or something screwed up in my system?

I closed down and edited the .config file putting the path is this line, so:

<setting name="AIGTech_TrafficController_Path" serializeAs="String">
                <value>E:\AITC</value> />
           
Then on reload AIM did show the path correctly.

Is it worth getting AIM to reload my flight plans for all airlines, in order to get the AICFP files? If so is there a way of telling AIM to get them all again?

I'll look out for updates in due course.

Thanks
Pete
           






rickgo

As Pete said "flashing cursor, field accepts no characters".  I have the same issue.

Kaiii3

settings are saved under \AppData\Local\AIGTech kill the AIG - Traffic Controller directory and it will create a new on the next start.

I will check whats wrong in AIM, no reports of such a problem os far ::confused::

I have at the moment nu full lsit of what is already AIGFP and what is not, but I know that all ESAI files are ready. The easy way to change is delete the BGLs (Traffic_ESAI_*) from <OCI>\Traffic Files\scenery and restart AIM. If AIGFP is enabled you can reinstall the flightplans and they will be saved as AIGFP this time.

Regarding the empty airport directory: Do you installed the CHAI East Anglian Air Ambulance Flightplan? This is currently the only FP that uses this feature - so if not isntalled no Airports are needed

petedowson

Quotesettings are saved under \AppData\Local\AIGTech kill the AIG - Traffic Controller directory and it will create a new on the next start.

Thanks. useful to know.

I updated to the later AITC (just deleted the previous folder and copied in the stuff from the update), and it now seems to work. Thank you.

QuoteI know that all ESAI files are ready. The easy way to change is delete the BGLs (Traffic_ESAI_*) from <OCI>\Traffic Files\scenery and restart AIM. If AIGFP is enabled you can reinstall the flightplans and they will be saved as AIGFP this time

Okay, thank you.

QuoteRegarding the empty airport directory: Do you installed the CHAI East Anglian Air Ambulance Flightplan? This is currently the only FP that uses this feature - so if not isntalled no Airports are needed

I always install everything listed as new / updated (no payware),  so, yes, I assume that would have been included. however, i didn't have the AITC flightplan option enabled in AIM at the time.

Pete


Kaiii3

CHAI is part of the AIG Forum flightplans that needs to be activated in the Flightplan Update settings by the user. It was uploaded witht he release of AIM 1.0.

I am currently trying some workarounds in AIGTC because of a P3Dv5 bug. depending on how it goes the update for TC will come later today :stirpot:

petedowson

Quote from: Kaiii3 on August 13, 2020, 01:48:04 PM
CHAI is part of the AIG Forum flightplans that needs to be activated in the Flightplan Update settings by the user. It was uploaded witht he release of AIM 1.0.

I don't know how to enable this. I clicked on "LogIn" in the options page, and logged in on the browser window which appeared. But then what? Nothing else happened, so i closed the browser and returned to AIM which hadn't changed at all.

Pete
7

Kaiii3

you set the checkbox next to the login button? If yes and your AIG Cookie Status is logged in. AIM will automatically collect the Forum topics. If you are usure please upload the logs. They will show if the Forum has been checked for new flightplans

petedowson

Quote from: Kaiii3 on August 14, 2020, 08:54:12 AM
you set the checkbox next to the login button? If yes and your AIG Cookie Status is logged in. AIM will automatically collect the Forum topics.

Yes it is ticked. And I am logged in and looking at the "AIG Announcement and Support" page, where it comes up after login.

Then what? Am i supposed to see something happen or do I have to do anything?

.. Aha! Although it appears to do nothing, I just went back and checked the "available on-line" page and get over 30 more updates as well as some new. /and including that CHAI file.

So all is well (I think! ;-) )
Thanks.

Pete

Kaiii3