TwinFan / LiveTraffic

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.
https://twinfan.gitbook.io/livetraffic/
Other
99 stars 24 forks source link

X-plane crashes when LiveTraffic installed and FF A320's TCAS button is switched #218

Closed xmska closed 3 years ago

xmska commented 3 years ago

Describe the bug X-plane crashes when LiveTraffic installed and TCAS button is switched. It does not crash without LiveTraffic.

To Reproduce Steps to reproduce the behavior:

  1. Start Airbus A320 Ultimate with engines running

  2. Click on TCAS to ALL

  3. Location KJFK any rwy

  4. anytime

  5. on runway

  6. A Log.txt file with log level (Settings/Advanced) set to 'Debug'

  7. new clean install with no changed livetraffic config

[https://store.x-plane.org/A320-Ultimate_p_688.html] Log.txt Log.txt tcas

Screenshots Screenshot and two log.txt attached.

Technical Info:

Log.txt

TwinFan commented 3 years ago

Chances are that it is one of the FF A320 plugins that crashes. In both cases the last log entries are by FF A320, though the last entries in the log is certainly no proof by itself. It only confirms that the FF A320 did something due to activating the TCAS display...and later on a crash occurred.

What is the difference with LiveTraffic running? Without LiveTraffic (and no other similar plugin) only X-Plane's AI aircraft are shown as TCAS targets in an TCAS display. This will be as many as you configured AI planes, no more than 19. With LiveTraffic, the difference is the number of active TCAS targets an internal TCAS implementation (like the one for FF A320) would need to handle. With LiveTraffic this can be up to 63. There have been several cases in which TCAS implementations were not able to handle more than 19 TCAS targets because 19 used to be a previous limit, lifted with XP 11.50. (proven examples: Little XPConnect, XHSI, AviTab, all of them fixed by now).

I have not yet heard of FF A320 being a problem, but we can figure this out now. Please do the following:

EDIT: There is one more thing:

xmska commented 3 years ago

First off, the scroll bar won't let me to set Max. number of Aircraft to 19. If I scroll to 19 with the left mouse button and then release the button, it changes to some other near number like 15, 20. I suggest it would be nice to fix the scrollbar.

I set 15 and it worked. And it crashed again with 20. I attached new log.txt and rpt crash dump.

So, is this a bug in the plane A230 and I should report to FlightFactor?

crash_report_07_25_2021_21_06_56.zip Log.zip

TwinFan commented 3 years ago

The Max. number of Aircraft setting might indeed snap to multiples of 5...but you tested it the right way: All good with 15, crash with 20: this indicates a problem with the FF A320 implementation.

Tomorrow I can have a look into the provided crash report for confirmation.

xmska commented 3 years ago

Now it crashed again with LiveTraffic plugin disabled and with 19 AI Aircrafts. I sent the log to FlightFactor, see if they can fix it.

TwinFan commented 3 years ago

...and I have looked into the crash dump: Crash location was in file C:\X-Plane 11\Aircraft\Laminar Research\FlightFactor A320 ultimate\plugins\systems\64\win.xpl.

So, yes, please report this to FightFactor. Provide them with the crash dump, that I extracted from the .rpt file: crash_report_07_25_2021_21_06_56.dmp.zip

You can point them to this issue thread and ask them:

xmska commented 3 years ago

I sent the info to FightFactor.

But what tool did you use to extract the dmp file from the rpt?

TwinFan commented 3 years ago

Notepad++ and certutil.

The .rpt file is just a text file with a JSON-like structure. Its node "dmp_file" is the dump file in Base64 encoding. So I remove all other text around the Base64 encoding, save it as a new .b64 file and have it decoded with a call to certutil -decode foo.b64 foo.dmp.

xmska commented 3 years ago

They told me to update to newer beta version which fixes the crash and it works. But it's strange to recommend users to do so as there is a warning about possible bugs in beta.

Thank you for your help.