Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any custom airport crashes whole X-Plane during start-up #259

Open
OakLD opened this issue Dec 10, 2020 · 8 comments
Open

Any custom airport crashes whole X-Plane during start-up #259

OakLD opened this issue Dec 10, 2020 · 8 comments
Labels
bug Something isn't working community reported or requested by one or more community members duplicate This issue or pull request already exists os-Linux

Comments

@OakLD
Copy link

OakLD commented Dec 10, 2020

Hello,

I'm new to testing this plugin. I followed the instructions and first time I ran the plugin and X-Plane crashed when loading plugins, specifically when AT&T tried to fetch LKTB airport:

Loaded: /home/user/XPlane/X-Plane 11/Resources/plugins/XSquawkBox/64/lin.xpl (vatsim.protodev.clients.xsquawkbox).

AT&C [+         0] ENTRYP|XPluginStart, platform-build[LIN], plugin-directory[/home/user/XPlane/X-Plane 11/Resources/plugins/airTrafficAndControl] sim-directory[/home/user/XPlane/X-Plane 11]

Loaded: /home/user/XPlane/X-Plane 11/Resources/plugins/airTrafficAndControl/64/lin.xpl (felix-b.atc).

AT&C [+         0] ENTRYP|XPluginEnable
AT&C [+         0] ENTRYP|XPLMGetPluginInfo(pluginId=6) -> name=[Air Traffic & Control] filePath=[/home/user/XPlane/X-Plane 11/Resources/plugins/airTrafficAndControl/64/lin.xpl] signature=[felix-b.atc] description=[Offline virtual world of air traffic and ATC]
AT&C [+         0] PLUGIN|initializing PluginInstance
AT&C [+         0] MP2SVC|Xpmp2AircraftObjectService::Xpmp2AircraftObjectService()
0:00:00.000 AT&C/XPMP2 INFO  XPMPMultiplayer.cpp:154/XPMPMultiplayerInit: XPMP2 Initializing under X-Plane version 11503/OpenGL and XPLM version 303
0:00:00.000 AT&C/XPMP2 INFO  XPMPMultiplayer.cpp:500/XPMPSetDefaultPlaneICAO: Default ICAO aircraft type now is B738
AT&C [+        13] MP2SVC|XPMPMultiplayerInit: success.
0:00:00.000 AT&C/XPMP2 INFO  XPMPMultiplayer.cpp:231/XPMPLoadCSLPackage: Loading CSL package from Resources/plugins/airTrafficAndControl/Resources
0:00:00.000 AT&C/XPMP2 INFO  CSLModels.cpp:1019/CSLModelsProcessAcFile: Read   3 aircraft (3 x B738) from Resources/plugins/airTrafficAndControl/Resources/CSL/BB_Boeing/xsb_aircraft.txt
0:00:00.000 AT&C/XPMP2 INFO  CSLModels.cpp:1111/CSLModelsLoad: Total number of known models now is 3
AT&C [+        13] MP2SVC|XPMPLoadCSLPackage: success.
0:00:00.000 AT&C/XPMP2 WARN  AIMultiplayer.cpp:1012/XPMPMultiplayerEnable: XSquawkBox controls TCAS / AI. AT&C could NOT acquire control, our planes will NOT appear on TCAS or maps.
AT&C [+        13] MP2SVC|XPMPMultiplayerEnable FAILED! XSquawkBox controls TCAS / AI. AT&C could NOT acquire control, our planes will NOT appear on TCAS or maps.
AT&C [+        13] libai::contributeComponents - entered
AT&C [+        13] PLUGIN|host services initialized
AT&C [+        13] MENU  |item[World is being assembled, please wait...] added
AT&C [+        13] PLUGIN|entering state[WORLD-ASSEMBLING]
AT&C [+        13] PLUGIN|transitioned to state[WORLD-ASSEMBLING]
AT&C [+        13] LWORLD|--- begin load airports ---
AT&C [+        13] LSCNRY|scenery_packs.ini file path [/home/user/XPlane/X-Plane 11/Custom Scenery/scenery_packs.ini]
AT&C [+        13] LSCNRY|will load airports from [/home/user/XPlane/X-Plane 11/Custom Scenery/airport_LKTB_KR04//Earth nav data/apt.dat]/

So I removed custom LKTB and fired X-Plane again and it crashed on another airport - KCNY:

AT&C [+        13] LWORLD|--- begin load airports ---
AT&C [+        13] LSCNRY|scenery_packs.ini file path [/home/libor/XPlane/X-Plane 11/Custom Scenery/scenery_packs.ini]
AT&C [+        13] LSCNRY|will load airports from [/home/libor/XPlane/X-Plane 11/Custom Scenery/KCNY - Canyonlands Field Airport//Earth nav data/apt.dat]

I removed that as well, but it did crash for 3rd time with another airport - KFNL:

AT&C [+        13] LWORLD|--- begin load airports ---
AT&C [+        13] LSCNRY|scenery_packs.ini file path [/home/libor/XPlane/X-Plane 11/Custom Scenery/scenery_packs.ini]
AT&C [+        13] LSCNRY|will load airports from [/home/libor/XPlane/X-Plane 11/Custom Scenery/KFNL - Fort Collins Loveland Municipal//Earth nav data/apt.dat]

I could continue, but I sense some common trouble with loading any custom airport.

I did look into issues and didn't find this one, so hopefully I'm not duplicating anything.

@felix-b
Copy link
Owner

felix-b commented Dec 11, 2020

Thanks for the bug report!
Oh, you're running Linux, that explains it.
There is a bug that prevents the plugin from loading on Linux.
The bug wasn't reported in the Issues, but I've filed it now - #260.
So let's track #260, and I'm marking this one as a duplicate.

@felix-b felix-b added bug Something isn't working os-Linux duplicate This issue or pull request already exists community reported or requested by one or more community members labels Dec 11, 2020
@crankywright
Copy link
Collaborator

@OakLD
Please try build 107 here: https://github.com/felix-b/atc/releases
Please let me know if it resolved your issue

@OakLD
Copy link
Author

OakLD commented Dec 11, 2020

Great! I will asap and report later Today.

@paulscottrobson
Copy link

Experiments on 5.9.13 4 55.45 and 11.50 no Vulkan. vsn 107
Most airports crashed on start with

AT&C [+ 61398] initUserFlight:7
AT&C [+ 61398] PLUGIN|transitioned to state[SCHEDULES-STARTED]
AT&C [+ 62018] UPILOT|User aircraft COM1 frequency change detected [-1]->[118625]
AT&C [+ 62018] AIRCRF|TUNE WARNING: aircraft[1] flight[United 737] tuned COM1 to khz[118625] - but no ATC on frequency
--=={This application has crashed because of the plugin: Air Traffic & Control}==--_

Tested were EGKK (Gatwick) EGGW (Luton) KMIA (Miami) KSEA (Seattle). Crashing took place almost immediately after the loading screen went and was replaced by the main display. (I presume AT&C+ is your debug log ?) No other obvious log issues - it looks like it's getting started up etc.

However, two worked repeatedly (i.e. would load the plugin and not crash)

EGSH (Norwich, UK) started up normally and responded to the 'set the % rate' and so on. To all intents and purposes it works except it doesn't - can't tune in to anything, no planes appearing.

EGSV (Old Buckenham UK) which is a very small airport near where I live also worked, but when I tried to start it it advised KMIA KSEA (and others) which reminded me that those had only been advised for use. However, I subsequently tested them and it still did not work.

Would imply it is connected somehow with Airport Complexity. EGSH & EGSV both have multiple runways - EGSH is a small but functional passenger airport.

The Plugin appears to be communicating ; these come from the LOG (KMIA)
AT&C [+ 0] PLUGIN|initializing PluginInstance
AT&C [+ 114] PLUGIN|host services initialized
AT&C [+ 114] PLUGIN|entering state[WORLD-ASSEMBLING]
AT&C [+ 114] PLUGIN|transitioned to state[WORLD-ASSEMBLING]
AT&C [+ 57962] PLUGIN|notifyAirportLoaded pinging state [WORLD-ASSEMBLING]
AT&C [+ 57962] PLUGIN|ping WORLD-ASSEMBLING: done
AT&C [+ 57962] PLUGIN|createWorldAssemblingState
AT&C [+ 57962] PLUGIN|exiting state[WORLD-ASSEMBLING]
AT&C [+ 57962] PLUGIN|entering state[SCHEDULES-STARTING]
AT&C [+ 58018] PLUGIN|The world now has [29433] airports, [29433] control facilities, [48] AI flights
AT&C [+ 58018] PLUGIN|User airport elevations [KMIA/12] at (25.799286,-80.302292) elevation [3.247888]
AT&C [+ 58018] PLUGIN|User airport elevations [KMIA/30] at (25.786625,-80.277539) elevation [3.268481]
AT&C [+ 58018] PLUGIN|User airport elevations [KMIA/09] at (25.786097,-80.314817) elevation [3.291789]
AT&C [+ 58018] PLUGIN|User airport elevations [KMIA/27] at (25.787731,-80.275350) elevation [3.299482]
AT&C [+ 58018] PLUGIN|User airport elevations [KMIA/08R] at (25.800701,-80.301430) elevation [3.311188]
AT&C [+ 58018] PLUGIN|User airport elevations [KMIA/26L] at (25.802018,-80.269535) elevation [3.307111]
AT&C [+ 58018] PLUGIN|User airport elevations [KMIA/08L] at (25.802897,-80.301544) elevation [3.303196]
AT&C [+ 58018] PLUGIN|User airport elevations [KMIA/26R] at (25.803981,-80.275431) elevation [3.267565]
AT&C [+ 58018] PLUGIN|transitioned to state[SCHEDULES-STARTING]
AT&C [+ 58146] PLUGIN|exiting state[SCHEDULES-STARTING]
AT&C [+ 58146] PLUGIN|entering state[SCHEDULES-STARTED]
AT&C [+ 58146] PLUGIN|transitioned to state[SCHEDULES-STARTED]

(followed by)

AT&C [+ 58146] PLUGIN|transitioned to state[SCHEDULES-STARTED]
AT&C [+ 58750] UPILOT|User aircraft COM1 frequency change detected [-1]->[118625]
AT&C [+ 58750] AIRCRF|TUNE WARNING: aircraft[1] flight[United 737] tuned COM1 to khz[118625] - but no ATC on frequency
--=={This application has crashed because of the plugin: Air Traffic & Control}==--

No obvious issues in the Log re AT&C other than the "TUNE WARNING". This also appears at EGSH and is folloed by

PARNIK simulations ARO: starting initialization...
PARNIK simulations ARO: reading ini file...
0:00:55.181 I/WIN: Opened window menu bar
AT&C [+ 55284] Heartbeat # 1
AT&C [+ 56298] Heartbeat # 2
AT&C [+ 57304] Heartbeat # 3
AT&C [+ 58315] Heartbeat # 4
AT&C [+ 59328] Heartbeat # 5

Could the complexity of the airport cause the Window Menu to be modified before it is created (as it's waiting for the airport ?)

@OakLD
Copy link
Author

OakLD commented Dec 11, 2020

I've tested the new release and it loads with no issues, the log seems all right too. When loaded, AT&C showed in the plugins list with first level options, but I couldn't do anything. It wouldn't change frequencies to CLRDEL/GND/TWR. The AirControl menu shown arrow like it should contain further sub menu, but contains no items.
I couldn't hear anything either, but that might be because I don't know yet how to configure AT&T on linux with TTS.

I assume that properly loaded AT&C should have it's log section finished with:

AT&C [+      9421] World initialized
AT&C [+      9421] LWORLD|Assembled world with [29434] airports, [0] airspaces, [29434] control facilities

The only part which brings some questions is:

0:00:30.095 I/NAVT: Airspaces are done loading async...
Fetching plugins for Custom Scenery/KASE - Aspen/plugins

CustomSBDatarefs004 - parsing setup file
CustomSBDatarefs004 - No CustomSBDatarefs004.ini file found, will use defaults
Loaded: Custom Scenery/KASE - Aspen/plugins/CustomSBDatarefs004/64/lin.xpl (sandybarbour.projects.customsbdatarefs004).

Loaded: Custom Scenery/KASE - Aspen/plugins/GroundTraffic/64/lin.xpl (Marginal.GroundTraffic.KASE - Aspen).

Could not find tile 49 name is open-frame
Could not find tile 50 name is close-frame
 (in sign '{@L}_A_' from airport KTEX:Custom Scenery/KTEX - Telluride Regional Airport/Earth nav data/apt.dat)
Could not find tile 49 name is open-frame
Could not find tile 50 name is close-frame

@togfoxy
Copy link
Collaborator

togfoxy commented Dec 11, 2020

you say 'No Vulcan'?

Can you try on xplane 11.50 with Vulcan? Just curious.

@paulscottrobson
Copy link

Yes, probably :) Never actually tried it as don't need it. Also to add, I do have Swift (VATSIM connector) installed normally, removed that plugin completely in case there was a fight over who was displaying aircraft but no difference.

@paulscottrobson
Copy link

paulscottrobson commented Dec 12, 2020

Vulkan makes no difference ; gets to displaying the airport you have selected, crashes, about a second later program stops.

I presume there is some kind of plugin initialise at this point (Swift announces this ; removing swift does not change the behaviour of the plugin)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community reported or requested by one or more community members duplicate This issue or pull request already exists os-Linux
Projects
None yet
Development

No branches or pull requests

5 participants