Skip to content
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

Android: Keyboard crash when using external keyboards on Samsung tablets, strange behaviour as well #17166

Open
Amenti opened this issue Sep 30, 2024 · 2 comments

Comments

@Amenti
Copy link

Amenti commented Sep 30, 2024

Describe the bug

When using an external bluetooth keyboard on Samsung tablets the Samsung keyboard crashes repeatedly (which does not crash the app), and strange text bugs occur:

  • Text is updated with delays, the TextBox hangs for a moment and then adds several already typed characters
  • During (especially fast) typing the cursor jumps back to some characters earlier and adds the text in the wrong place
  • The message "Samsung keyboard stopped working" pops up

We heard this from several users now but could reproduce it as well. It doesn't happen always but most of the time.

To Reproduce

  • Use a Samsung device (S6, S8, S9)
  • Add a TextBox example project
  • Connect an external bluetooth keyboard
  • type away

Logcat of the example project when the keyboard crash happened

Expected behavior

Text is showing when typed and no error dialogs appear

Avalonia version

11.1.3 and Nightly (11.2.999-cibuild0052241-alpha)

OS

Android

Additional context

All problematic devices have Pen support. I'm not knowledgeable enough in Android internals to know if this could be the culprit but I saw some messages regarding this in the logcat.

@Amenti Amenti added the bug label Sep 30, 2024
@workgroupengineering
Copy link
Contributor

See #15903 (comment)

@Amenti
Copy link
Author

Amenti commented Oct 1, 2024

The mentioned flags ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.Navigation are already in the MainActivity of our app but they don't seem to make any difference also not when I add them to the sample code. The crash still occurs and the wild jumping around of the cursor as well. Sometimes you must type a while, sometimes it happens instantly.

@Amenti Amenti changed the title Android: Keyboard crash when using external keyboards on Samsung tablets, strange behaviout as well Android: Keyboard crash when using external keyboards on Samsung tablets, strange behaviour as well Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants