Open simon-dima opened 3 months ago
Hey, this definitely seems bad! Sadly I haven't seen anything resembling this myself, it's hard to debug without being able to repro it..
Would you mind turning on the "Highlight taken actions" and recording a new video the next time you manage to repro the issue? It would be helpful in narrowing down where things are going wrong.
Of course, here it is! https://github.com/user-attachments/assets/3ea0f72d-6ee3-4053-8176-59e4169903f7 It is probably relevant that the highlighted actions reflect the characters produced, and the Android pointer location overlay and Flickboard pointer trace match the position of my fingers.
Please let me know if there is any more debug information I can gather!
Ah! So it is getting registered as the "correct" gesture, just to the wrong key.
I am using version 0.1.7, installed from the IzzyOnDroid repository! However this bug is not exclusive to this version, I have seen it ever since installing FB for the first time in the spring. My workarounds settings are all default as far as I can tell.
Okay, so I can see a few possibilities here that could theoretically cause it to enter a mode like this:
However, I can't seem to repro it w/ any of these methods… There might also be some device specific screwery?
Context
Flickboard functions normally most of the time but sporadically enters a state in which the characters sent by the keyboard do not match the swipes and taps entered.
Steps to reproduce
I have not yet determined specific starting or ending conditions for the anomalous state; it occurs and disappears seemingly at random.
Here is a screen recording of an instance of the bug: https://github.com/user-attachments/assets/8441dd9c-7521-4ac1-8d24-470981271877
Expected behavior
The characters produced should match the taps and swipes entered. The entered text in the example starts with "He named the nameless hills and dells".
Actual behavior
The characters produced do not match the taps and swipes entered, producing jumbled text. The produced text in the example starts with "hhe ne. the ne.ees h=lss al".
Android version
Android 14 (LineageOS 21)
Device
Fairphone 3
Other details
While in the bugged state, the keyboard logic seems to follow a state machine similar to this: 0: Upon a tap, emit the character tapped and proceed to 1. Upon a swipe, emit the corresponding character and proceed to 0. 1: Upon a tap, emit the last character tapped and proceed to 1. Upon a swipe, emit the character which is in the corresponding direction from the last key tapped (or no character if the last key typed does not have a character in that position), then proceed to 0.
I have observed this bug while entering text into multiple different apps.
Acknowledgements