-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
"While held" set change sometimes returns to wrong set when switching between multiple sets (RCA included) #1050
Comments
So, I believe this is a race condition, and I think I know why it occurs. The JoyTabWidget is responsible for displaying the different sets in the user interface. It has a method
Interestingly, the changeCurrentSet method also calls Every time The second call is unfortunately not running on the input daemon thread, so it is not synchronized with any other input event. That means it can overwrite a simultaneous set change, thus causing the race condition. |
I recompiled the program with some fixes to So, I have fixed the bug for myself, but I'm reporting it here in case you want to fix it in the upstream too. Let me know if you need more details. |
Hi @rogerhub , Thank you for help with some issues on this repo. :)
Of course I want this fix upstream. PR-s are welcome. |
My employer has some policies for open source contributions, so I don’t know if I can provide code without applying for some kind of approval :) but hopefully I can describe the fix clearly enough that anyone should be able to contribute the code. |
Is there an existing issue for this?
Current Behavior
In set 1, I have:
Sometimes, I press L trigger and R trigger together, then release them both. Usually I return to set 1 after releasing both triggers, but sometimes I end up in set 2 or set 3.
Expected Behavior
Releasing both L and R triggers should always return to the original set.
Steps To Reproduce
Environment
Anything else?
No response
Upvote & Fund
The text was updated successfully, but these errors were encountered: