Skip to content

bug(android): rapid typing sometimes leads to missing letters 🎁 #6981

@mcdurdin

Description

@mcdurdin

Describe the bug

I have observed that rapid typing on Keyman for Android sometimes leads to missing letters -- and even sometimes malformed suggestions. This is a regular and easy to trigger issue -- but not consistently.

For example, in the following test, on the last line, I typed "problem". However, the text that was emitted was "prlem", missing the "o" and the "b". I have captured a trace of the input of the last three lines, and can verify that every key was touched.

image

I have verified that the internal ta textarea had the same text as was visible in the app, so it's not necessarily a desync issue.

Note that I was testing with the older version of sil_euro_latin that does not include NewContext or PostKeystroke entry points, which probably eliminates these as a potential source of this issue.

What I believe I typed: typed 'problem' ENTER 'twdting' ENTER 'problem' (trying for 'problem\ntesting\nproblem' with typical lack of precision!)

Full Log (all three lines): problem-full.zip

Annotated Log, showing only last line of text: problem.zip

These logs consist of the raw TouchEvent data, captured on document in capture phase. I have a rudimentary logging mechanism I am running locally to capture this. We may want to do better, but at least this gives us something to play with.

You'll also notice that the suggestions are not what you'd expect for "prlem" nor yet for "problem". It's not entirely clear what the root is for these suggestions.

Additional notes: I cannot reproduce the core issue here in KeymanWeb itself, only in the Keyman for Android app. However, suggestion mismatches are coming up for KeymanWeb as well (e.g. suggesting "room" for "problen"). I am uncertain at this stage as to the relationship between these two issues, so this may send us off on a tangent -- I think we can start off by looking at the core "missing characters" problem.


Keyman for iPhone/iPad/Android:

  • Device: Samsung A90 5G
  • OS: Android 12
  • Keyman version: 16.0.36-alpha
  • Target application: any

--

Keyboard

  • Keyboard name: sil_euro_latin
  • Keyboard version: 1.9.6
  • Language name: English

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions