xpilot-project / xpilot

Open-source, cross-platform X-Plane pilot client for VATSIM.
https://xpilot-project.org
GNU General Public License v3.0
119 stars 36 forks source link

Beta 35 hangs XP12b5 #123

Closed donks closed 1 year ago

donks commented 1 year ago

After updating XP12 from beta 4 to beta 5, xpilot hangs XP12 when trying to start a new flight. Last log entry is: The plugin xPilot 2.0.0-beta.35 is setting global TCAS override to 1.

justinshannon commented 1 year ago

As also requested in Discord, please upload your full X-Plane log.txt.

donks commented 1 year ago

See attached. Log.txt

justinshannon commented 1 year ago

It looks like it's hanging when trying to open the TCP port. Try changing the plugin port number.

  1. Close X-Plane and xPilot
  2. Open X-Plane/Resources/plugins/xPilot/Resources/Config.json in a text editor and change PluginPort from 53100 to something else... even 53101 will work. Save the changes.
  3. Open ~/Library/Application Support/org.vatsim.xpilot/AppConfig.json with a text editor. Change XplanePluginPort to match the new port number you specified in the plugin config file. Save the changes.
  4. Open xPilot and X-Plane and see if that fixes your issue.
donks commented 1 year ago

Tried with multiple ports and still the same behaviour (hang). A review of the netstat command doesn't show any application running on the configured ports. Curiously, I noticed that port number in the plugin config is in quotes like it is a string. When I removed the quotes, the plugin re-adds them when starting X-Plane up again.

k9bite commented 1 year ago

I think I'm having the same problem. Hangs on "preparing world" when I try to load a flight. I'm on a Mac. Same problem with prior XP12 versions, but every once in awhile, if I left it alone for 20-30 minutes it would eventually load, but not every time. With latest XP12, never fully loads, remains stuck at "preparing world".

donks commented 1 year ago

I’m also on a Mac. Just tested with beta 6. Same issue. As per k9bite's comment, X-Plane does eventually load after a long delay and the x-pilot client connects. The issues seems to be when the plugin tries to take over or release TCAS control. I enabled and disabled the TCAS setting multiple times in the plugin menu and each time X-Plane hung but eventually came good.

justinshannon commented 1 year ago

@donks @k9bite

Does it freeze if you load up in a default aircraft (like the C172)?

Can you try the attached plugin version? I added additional debug logging and disables immediate TCAS control. Please try and let me know your results and upload your log.txt.

mac_x64.zip

k9bite commented 1 year ago

Here's the an attempt w/ a fresh install of XPilot using the default C172 (I think an XP12 update just came out this evening, but this is without the update):

On Wed, Oct 5, 2022 at 7:43 PM Justin Shannon @.***> wrote:

@donks https://github.com/donks @k9bite https://github.com/k9bite

Does it freeze if you load up in a default aircraft (like the C172)?

Can you try the attached plugin version? I added additional debug logging and disables immediate TCAS control. Please try and let me know your results and upload your log.txt.

mac_x64.zip https://github.com/xpilot-project/xpilot/files/9720703/mac_x64.zip

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1269232800, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RCEPDGIMBRV4V7UC4DWBY4FBANCNFSM6AAAAAAQZIDLUM . You are receiving this because you were mentioned.Message ID: @.***>

k9bite commented 1 year ago

Sorry, I'm a little ignorant. Where do I put those zipped files?

On Wed, Oct 5, 2022 at 7:43 PM Justin Shannon @.***> wrote:

@donks https://github.com/donks @k9bite https://github.com/k9bite

Does it freeze if you load up in a default aircraft (like the C172)?

Can you try the attached plugin version? I added additional debug logging and disables immediate TCAS control. Please try and let me know your results and upload your log.txt.

mac_x64.zip https://github.com/xpilot-project/xpilot/files/9720703/mac_x64.zip

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1269232800, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RCEPDGIMBRV4V7UC4DWBY4FBANCNFSM6AAAAAAQZIDLUM . You are receiving this because you were mentioned.Message ID: @.***>

k9bite commented 1 year ago

Disregard, I found it in XP12 resources, plugins...

On Wed, Oct 5, 2022 at 9:27 PM Todd Johnson @.***> wrote:

Sorry, I'm a little ignorant. Where do I put those zipped files?

On Wed, Oct 5, 2022 at 7:43 PM Justin Shannon @.***> wrote:

@donks https://github.com/donks @k9bite https://github.com/k9bite

Does it freeze if you load up in a default aircraft (like the C172)?

Can you try the attached plugin version? I added additional debug logging and disables immediate TCAS control. Please try and let me know your results and upload your log.txt.

mac_x64.zip https://github.com/xpilot-project/xpilot/files/9720703/mac_x64.zip

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1269232800, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RCEPDGIMBRV4V7UC4DWBY4FBANCNFSM6AAAAAAQZIDLUM . You are receiving this because you were mentioned.Message ID: @.***>

donks commented 1 year ago

Log.txt

New plugin added and c172 flight loaded. No hang on load but still hangs if I change TCAS settings in plugin menu. Log file attached.

justinshannon commented 1 year ago

@k9bite I need your X-Plane log, not the installer log.

k9bite commented 1 year ago

Sorry Justin, I'm ignorant bout this stuff. What is the log called, I can't find any other log inside XP12 folder?

On Thu, Oct 6, 2022 at 4:17 AM Justin Shannon @.***> wrote:

@k9bite https://github.com/k9bite I need your X-Plane log, not the installer log.

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1269839462, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RADF5OVO44ROXSAJBLWB2YKZANCNFSM6AAAAAAQZIDLUM . You are receiving this because you were mentioned.Message ID: @.***>

k9bite commented 1 year ago

That worked!!!!!! Woohoo!

Here's the log:

On Wed, Oct 5, 2022 at 9:30 PM Todd Johnson @.***> wrote:

Disregard, I found it in XP12 resources, plugins...

On Wed, Oct 5, 2022 at 9:27 PM Todd Johnson @.***> wrote:

Sorry, I'm a little ignorant. Where do I put those zipped files?

On Wed, Oct 5, 2022 at 7:43 PM Justin Shannon @.***> wrote:

@donks https://github.com/donks @k9bite https://github.com/k9bite

Does it freeze if you load up in a default aircraft (like the C172)?

Can you try the attached plugin version? I added additional debug logging and disables immediate TCAS control. Please try and let me know your results and upload your log.txt.

mac_x64.zip https://github.com/xpilot-project/xpilot/files/9720703/mac_x64.zip

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1269232800, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RCEPDGIMBRV4V7UC4DWBY4FBANCNFSM6AAAAAAQZIDLUM . You are receiving this because you were mentioned.Message ID: @.***>

justinshannon commented 1 year ago

@donks or @k9bite

Did either of you previously use X-Plane 11 (or still have it installed)? If so, did you encounter an issue with X-Plane 11 freezing like you do with X-Plane 12?

k9bite commented 1 year ago

Yes ran Plane 11 w/ XPilot and did not have issues with either freezing.

On Oct 11, 2022, at 4:03 PM, Justin Shannon @.***> wrote:

@donks https://github.com/donks or @k9bite https://github.com/k9bite Did either of you previously use X-Plane 11 (or still have it installed)? If so, did you encounter an issue with X-Plane 11 freezing like you do with X-Plane 12?

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1275382641, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RACV5UHL7K3MUHNU4LWCXW5FANCNFSM6AAAAAAQZIDLUM. You are receiving this because you were mentioned.

justinshannon commented 1 year ago

@k9bite can you provide your X-Plane 12 log.txt? It doesn't look like it got attached to your previous comment.

donks commented 1 year ago

@donks or @k9bite

Did either of you previously use X-Plane 11 (or still have it installed)? If so, did you encounter an issue with X-Plane 11 freezing like you do with X-Plane 12?

I have X-Plane 11 and xpilot worked fine. Earlier X-Plane 12 betas worked fine as well

k9bite commented 1 year ago

Where is the X-Plane log? When you asked last week I guess I sent you the installer log instead. I couldn’t find log.text, where is it?

On Oct 11, 2022, at 7:38 PM, Justin Shannon @.***> wrote:

@k9bite https://github.com/k9bite can you provide your X-Plane 12 log.txt? It doesn't look like it got attached to your previous comment.

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1275506709, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RB3DRHYBI2KZSJ3KZLWCYQAVANCNFSM6AAAAAAQZIDLUM. You are receiving this because you were mentioned.

donks commented 1 year ago

Where is the X-Plane log? When you asked last week I guess I sent you the installer log instead. I couldn’t find log.text, where is it?

It’s called log.txt and is located in you X Plane 12 directory. Possibly /Applications/X-Plane 12/ depending upon where you installed it.

k9bite commented 1 year ago

Okay, I found it. Is actually called log.txt, I was searching for log.text, that’s why I didn’t find it before. I should have realized, since it is a text file.

On Oct 11, 2022, at 9:27 PM, Jason Donkin @.***> wrote:

Where is the X-Plane log? When you asked last week I guess I sent you the installer log instead. I couldn’t find log.text, where is it? … <x-msg://8/#> It’s called log.txt and is located in you X Plane 12 directory. Possibly /Applications/X-Plane 12/ depending upon where you installed it.

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1275570745, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RGXDLILZB6BAIPUPILWCY42JANCNFSM6AAAAAAQZIDLUM. You are receiving this because you were mentioned.

justinshannon commented 1 year ago

No problem. I still don’t see it attached. You may need to attach it manually through the xPilot GitHub issue webpage, instead of attaching it via email.

k9bite commented 1 year ago

I think I forgot to attach it before

On Oct 12, 2022, at 12:45 PM, Justin Shannon @.***> wrote:

No problem. I still don’t see it attached. You may need to attach it manually through the xPilot GitHub issue webpage, instead of attaching it via email.

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1276657060, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RB2LA3HMRV6O7QF5QTWC4IOZANCNFSM6AAAAAAQZIDLUM. You are receiving this because you were mentioned.

donks commented 1 year ago

@justinshannon - I've upgraded to beta 7 and xpilot is no longer hanging X-Plane. I've not made any other changes other than the X-Plane upgrade!

k9bite commented 1 year ago

Thank you so much. I appreciate all your hard work. I fly for Walker VA and someone on their Discord channel was talking about how great you are.

Thanks again for all you do.

Todd

On Oct 12, 2022, at 1:51 PM, Todd Johnson @.***> wrote:

I think I forgot to attach it before > On Oct 12, 2022, at 12:45 PM, Justin Shannon ***@***.*** ***@***.***>> wrote: > > > No problem. I still don’t see it attached. You may need to attach it manually through the xPilot GitHub issue webpage, instead of attaching it via email. > > — > Reply to this email directly, view it on GitHub , or unsubscribe . > You are receiving this because you were mentioned. >
justinshannon commented 1 year ago

@justinshannon - I've upgraded to beta 7 and xpilot is no longer hanging X-Plane. I've not made any other changes other than the X-Plane upgrade!

Just to confirm, you're using the stock xPilot plugin and not the modified version?

k9bite commented 1 year ago

Uh, oh. No, I’ve been using the modified version since you sent it to me last week.

On Oct 12, 2022, at 3:54 PM, Todd Johnson @.***> wrote:

Thank you so much. I appreciate all your hard work. I fly for Walker VA and someone on their Discord channel was talking about how great you are.

Thanks again for all you do.

Todd

On Oct 12, 2022, at 1:51 PM, Todd Johnson @. @.>> wrote:

I think I forgot to attach it before > On Oct 12, 2022, at 12:45 PM, Justin Shannon ***@***.*** ***@***.***>> wrote: > > > No problem. I still don’t see it attached. You may need to attach it manually through the xPilot GitHub issue webpage, instead of attaching it via email. > > — > Reply to this email directly, view it on GitHub , or unsubscribe . > You are receiving this because you were mentioned. >
justinshannon commented 1 year ago

Can you try again with the stock version (just re-run the xPilot installer)? The modified version disables automatic TCAS activation, which is what is causing X-Plane to freeze.

donks commented 1 year ago

@justinshannon - I've upgraded to beta 7 and xpilot is no longer hanging X-Plane. I've not made any other changes other than the X-Plane upgrade!

Just to confirm, you're using the stock xPilot plugin and not the modified version?

I tried both. There is a slight hang of only a few seconds (colour wheel shown) when switching TCAS modes. Log.txt

k9bite commented 1 year ago

Bad news. I uninstalled and removed all XPilot (modified) from my computer. I updated to XP12 b7, then downloaded/installed original XPilot from Github. Still hanging on Preparing World when I try to start a flight. Tried it in the C72. Log’s attached.

On Oct 12, 2022, at 4:35 PM, Jason Donkin @.***> wrote:

@justinshannon https://github.com/justinshannon - I've upgraded to beta 7 and xpilot is no longer hanging X-Plane. I've not made any other changes other than the X-Plane upgrade!

Just to confirm, you're using the stock xPilot plugin and not the modified version?

I tried both. There is a slight hang of only a few seconds (colour wheel shown) when switching TCAS modes. Log.txt https://github.com/xpilot-project/xpilot/files/9769276/Log.txt — Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1276845644, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RE2H2W7PXANPSRD4PTWC5DLFANCNFSM6AAAAAAQZIDLUM. You are receiving this because you were mentioned.

justinshannon commented 1 year ago

@k9bite sorry, I still don’t see the log. Try attaching it using the GitHub website instead of via email: https://github.com/xpilot-project/xpilot/issues/123

k9bite commented 1 year ago

Okay. I attached it to comment "XP12 beta 7 still hanging on Preparing World when loading flight” under Issues tab.

On Oct 12, 2022, at 9:17 PM, Justin Shannon @.***> wrote:

@k9bite https://github.com/k9bite sorry, I still don’t see the log. Try attaching it using the GitHub website instead of via email: #123 https://github.com/xpilot-project/xpilot/issues/123 — Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#issuecomment-1277006135, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6REQW4HJFH6HZ7EOPSLWC6EOXANCNFSM6AAAAAAQZIDLUM. You are receiving this because you were mentioned.

donks commented 1 year ago

@justinshannon - I've upgraded to beta 7 and xpilot is no longer hanging X-Plane. I've not made any other changes other than the X-Plane upgrade!

Just to confirm, you're using the stock xPilot plugin and not the modified version?

I tried both. There is a slight hang of only a few seconds (colour wheel shown) when switching TCAS modes. Log.txt

I think the information above was not correct as the plugin was not fully loaded due to being blocked by the macOS gatekeeper. I've put the stock plugin and application back and enabled the security with the new beta (8) and it's still hanging on preparing world. Apologies for the confusion.

justinshannon commented 1 year ago

The developer of XPMP2 (the library that xPilot uses to render other aircraft) has opened a bug report with Laminar.

In the meantime, you can disable TCAS integration by setting DisableTcas to true in the plugin configuration file (Config.json). This can be found in X-Plane/Resources/plugins/xPilot/Resources. X-Plane must be closed before you update the configuration file. Open this file with a text editor and save your changes.

justinshannon commented 1 year ago

@donks @k9bite I’ve heard rumors that this issue is fixed in XP beta 12. Can anyone confirm this?

donks commented 1 year ago

Yes - I have tested the latest release with beta 12 and no longer have a hang. Was also able to pass TCAS control between LiveTraffic without issue as well. Thanks

justinshannon commented 1 year ago

Thanks for confirming. I'm closing this issue.

k9bite commented 1 year ago

Worked for me too

On Nov 10, 2022, at 3:17 PM, Justin Shannon @.***> wrote:

Closed #123 https://github.com/xpilot-project/xpilot/issues/123 as completed.

— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/123#event-7787477871, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2YT6RGFL7B2N4XMAJVGBITWHVYA7ANCNFSM6AAAAAAQZIDLUM. You are receiving this because you were mentioned.