swift-project / pilotclient

Cross-platform cross-simulator pilot client for virtual air traffic networks
https://swift-project.org
GNU General Public License v3.0
94 stars 28 forks source link

Crash on startup caused by joystick data #234

Open Tony-without-H2O opened 11 months ago

Tony-without-H2O commented 11 months ago

Win11, 0.13 Alpha Swift, X-Plane 11 I installed version 0.13 of swift a few days ago, configured it and was able to load other planes in the XP11 simulator. Yesterday, after I opened the emulator and loaded it, I clicked swift again, and the software startup icon flashed for a moment, and then it flashed back. I tried to reinstall and install the 0.12 beta version, but it didn't start. When I started swift again today, everything was fine again, but I haven't tried to fly online with the simulator on yet.

ltoenning commented 11 months ago

This is hard to diagnose, especially if this doesn't happen anymore...

Do you still have the log file available from the start where swift crashes (I assume that is what you mean with "flash back"). If yes, please send it to me via Discord if possible.

See this page for the log location: https://swift-project.org/troubleshooting/swift_log_files/

Tony-without-H2O commented 11 months ago

This is hard to diagnose, especially if this doesn't happen anymore...

Do you still have the log file available from the start where swift crashes (I assume that is what you mean with "flash back"). If yes, please send it to me via Discord if possible.

See this page for the log location: https://swift-project.org/troubleshooting/swift_log_files/

I checked the swift log and found that the crash occurred after identifying my joystick, I also read about the joystick crash on the swift org website and I think I have found the cause.

Hope you can solve this problem soon in a future version

ltoenning commented 11 months ago

For completeness: This is related to https://swift-project.org/troubleshooting/crash_startup/#joystick.

ltoenning commented 8 months ago

From #267 Tony-without-H2O:

Due to the crash when I plug in the stick, I have been unable to access swift during takeoff and landing many times recently, but the fact is that I almost never bind the stick to the shortcut key in swift, so can we choose to let swift not access the stick to avoid this situation? I hope the author can give a similar solution soon, which is very important to me.