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
Unplugging gamepad crashes the game #1198
Comments
It's caused by (or in combination with) the Steam Overlay. You always have to check the top of your call stack first: This might be hard to track down (and doesn't necessarily have to happen due to something SFML does). As for lag/freezing, this might be related to #1179 and might be fixed with #1195, but it could be something different. |
It should not be about Steam because I started using Steamworks API this month, I had these issues for a long time. |
Then try getting a stack trace without Steam showing up in the middle. Maybe it's related but has a different origin. Any chance you're polling events outside the main thread or anything similar? |
I will try to take the Steam out from there. Event polling runs on the main thread. |
Updated SFML, joystick update fixed it. |
A player reported today that it still crashes on unplug. Also I found this on internet if it helps: |
This must be a different issue then, so please open another issue. The one originally reported here has been fixed. |
I have two gamepad issues for months and finally wanted to create an issue about it.
I play my game with gamepad, then I unplug it, wait around 10 seconds and then I press a key on keyboard. Game crashes and debugger is pointing processEvents function inside the pollEvent->popEvent.
Here is what debugger shows at the crash moment:
https://puu.sh/utH6e/c8b0561b5e.png
Edit: Lag is fixed by the last joystick update. I also don't get the crash anymore but one player still gets the crash.
SFML 2.4.2
gcc (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 6.3.0
The text was updated successfully, but these errors were encountered: