-
Notifications
You must be signed in to change notification settings - Fork 632
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
OpenTK 3.1 crashes on startup on 64+ button joysticks #1020
Comments
tyronx
changed the title
OpenTK 3.1 crashes on startup on 64+ button joystick
OpenTK 3.1 crashes on startup on 64+ button joysticks
Mar 3, 2020
If you need a quick solution, here's our patch for it: ppy#59 |
@tyronx - Must have missed this. We'd love to merge a fix for this. |
@varon sure, mind if I do the PR together with some build script fixes for windows? |
@tyronx - That would be fantastic. |
This has been fixed in released in OpenTK 3.2, so closing issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
OpenTK just straight up crashes if any joystick is connected to the device that has more than 64 buttons
Repro steps
There's apparently a hardcoded array of 64 buttons, once it goes beyond that the init code crashes.
I already brute-force fixed this for my needs by just catching exceptions during joystick init and then ignoring that joystick, diff here: anegostudios@c40eabd
A build of OpenTk with that fix in there will roll out to a sizable amount of users within a few days so that should sufficiently test the change.
I can make a merge request to the 3.x branch if you like.
The text was updated successfully, but these errors were encountered: