ubuntu-touch icon indicating copy to clipboard operation
ubuntu-touch copied to clipboard

Keyboard disappears after after each typed character

Open ruedigerkupper opened this issue 5 years ago • 45 comments

Description of the feature

Illustrations

  • Device: hammerhead
  • Channel: RC
  • Build:

Steps to reproduce

Use on-screen keyboard frequently. Observe that disappears after each typed character, especially in the browser.

Expected behavior

keyboard stays visible until I type CR or dismiss it.

Actual behavior

see above...??? (redundant section???)

Logfiles and additional information

ruedigerkupper avatar Oct 04 '19 19:10 ruedigerkupper

Description of the feature is actually for feature requests so you can remove it since I can see that this is a bug report. Illustrations should be removed as well but the device details should stay. Expected behavior should describe what's supposed to happen and the Actual behavior should describe what's actually happening which is usually the incorrect behavior. Steps to reproduce should contain the actual steps, usually numbered, and not necessarily describe the result. Anyway, enough of my review points on your bug report :wink:

In any case, I think I've encountered this issue but I can't remember what triggers it and when it happens. But I do remember it happening on the browser in a certain website.

kugiigi avatar Oct 05 '19 06:10 kugiigi

Thanks for the review ;-). It happened yesterday entering text into a text field in system settings. So it is not limited to the browser. Still I do not know what triggers it or how it can be reproduced. Yesterday, it appeared when I was half way typing the string. So I could enter the first half, and then suddenly the keyboard disappeared and kept doing so after each typed character.

ruedigerkupper avatar Oct 05 '19 07:10 ruedigerkupper

I've been meaning to file a bug report about this for a while. I've been encountering this bug quite frequently on the Messaging app (device: BQ Aquaris E4.5 channel: Stable) on OTA-9 and OTA-10.

I have been unable to reproduce it reliably, it seems completely random.

It is as described: at some point when typing a message the keyboard will disappear. It is then only possible to finish the message (very slowly) by entering one character at a time, with the keyboard disappearing after each character.

james-lyon avatar Oct 07 '19 07:10 james-lyon

I can honestly say I've never seen this occur. If someone could find a set of steps to get it to happen reliably, we'll probably be able to fix it pretty quickly.

UniversalSuperBox avatar Oct 14 '19 20:10 UniversalSuperBox

I'll do my very best. The bug appears to manifest itself with a certain probability, but as you try pinning it down the more erratic it gets. I believe this has been termed a Heisenbug. https://en.m.wikipedia.org/wiki/Heisenbug

ruedigerkupper avatar Oct 14 '19 20:10 ruedigerkupper

I still can't get it to happen reliably. One other thing I've noticed is that when it happens, I can delete several characters then type them in again without the keyboard disappearing. When I get back to the character that initially caused the keyboard to disappear, it once again disappears!

@UniversalSuperBox would posting any logfiles help?

james-lyon avatar Oct 15 '19 07:10 james-lyon

Interesting. That might mean it is related to the length of the string. Do text entry fields have something like an "expected input length"?

ruedigerkupper avatar Oct 15 '19 19:10 ruedigerkupper

In general: What events cause the keyboard to disappear?

  • a place outside a text entry field is tapped
  • ... what else?

ruedigerkupper avatar Oct 15 '19 19:10 ruedigerkupper

I have problems with the keyboard on edge, it sometimes disappears (but not on every character), and then I just have a white area of nothing, and I need to change back and forth to another App to ge a keyboard again. Mostly noted on TELEports, but thats because thats the app where I type most probably

Flohack74 avatar Oct 21 '19 09:10 Flohack74

occured for me on messaging-app and morph as well on edge

lduboeuf avatar Oct 21 '19 12:10 lduboeuf

It occurs to me exactly as @james-lyon described: I'm entering a sentence, then suddenly with the first letter of a word, the keyboard disappears. I can then wait for it to reappear, enter another letter, and it disappears again, until I finish the word and press space. Then I continue my text message.

So it looks like the problem is about some specific words. To me, it is the autocomplete which is the problem. I guess the beginning of the word leads to a crash during the guessing of the words.

Flaburgan avatar Oct 23 '19 21:10 Flaburgan

^ The autocomplete crash sounds like a possible cause. I have noticed that if I delete the letter that first causes the keyboard to disappear, I can enter a different letter with no problems.

And it is always upon typing the first letter of a word that the keyboard initially disappears.

james-lyon avatar Oct 28 '19 13:10 james-lyon

Where can I find the keyboard autocomplete logs?

Flaburgan avatar Oct 28 '19 13:10 Flaburgan

.cache/upstart/maliit-server.log ?

lduboeuf avatar Oct 28 '19 14:10 lduboeuf

Does anyone know a word to type which triggers the bug?

-- Dr. Rüdiger Kupper Forststr. 3 72250 Freudenstadt

ruedigerkupper avatar Oct 31 '19 12:10 ruedigerkupper

it happens randomly, so hard to reproduce.

lduboeuf avatar Oct 31 '19 13:10 lduboeuf

Next time it happens to me, I'll write the sentence to reproduce.

Flaburgan avatar Oct 31 '19 13:10 Flaburgan

I think I found a sure way to replicate this issue although it only happens when pressing the backspace or enter key. It happens to me whenever I'm composing an email in ProtonMail and I'm in the email body field. It's in a webapp and I haven't tried in Morph.

kugiigi avatar Dec 01 '19 11:12 kugiigi

So I just reproduced it on my FP2 running devel in the SMS app. The sentence I was entering was Tu remontes quand et comment ? with the french keyboard. I was only able to enter Tu remontes quand et c and starting from that point, the keyboard disappears for each letter of comment. So it disappeared when I entered the c, then I refocused the input and the keyboard reappeared, then I entered the o and the keyboard disappeared again, etc.

Here was I have in maliit-server.log:

maliit-server: smoothedNgramPredictor.cpp:315: virtual Prediction SmoothedNgramPredictor::predict(size_t, const char**) const: Assertion `numerator <= denominator' failed.
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
WARNING: void MIMPluginManagerPrivate::_q_setActiveSubView(const QString&, Maliit::HandlerState) "libubuntu-keyboard-plugin.so" "fr" is not enabled

Not sure it is very useful. I'm still having the bug under my eyes right now so I'll wait 10 minutes before sending the message if anyone wants me to test anything. Please ping me here or on telegram.

Flaburgan avatar Dec 20 '19 09:12 Flaburgan

Are you able to reproduce it with this sentence?

ruedigerkupper avatar Dec 21 '19 09:12 ruedigerkupper

Me? Yes I still reproduce the bug with that specific sentence.

Flaburgan avatar Dec 21 '19 11:12 Flaburgan

@ruedigerkupper if you were talking to me, yes, I still reproduce it. Do you want me to grep anything anywhere?

Flaburgan avatar Dec 29 '19 22:12 Flaburgan

I think this can be closed no ? @Flaburgan

lduboeuf avatar Mar 20 '20 22:03 lduboeuf

Why? As said, I still reproduce it with that very specific sentence (and also others). Do you have any news?

Flaburgan avatar Mar 20 '20 23:03 Flaburgan

Oh i confused with another issue. Still don't reproduce here (N5), have you played with keyboard settings ?

here is my settings: screenshot20200321_001817289

lduboeuf avatar Mar 20 '20 23:03 lduboeuf

I have this issue on a OnePlus One device running the RC channel (currently 2020-W33).

In my case it is actually 2 separate issues:

  • In messaging (SMS), I cannot reliably reproduce, the OSK disappears while typing, and it is near impossible to get it back; sometimes putting the app in the background and returning to it works, most of the time I have to quit the app and launch it again
  • Reliably on created webapps, for example I created my own webapp for Fastmail (using Webber I think). When typing either Enter or Backspace, the OSK closes. In this case, tapping in the text entry area makes the OSK reappear.

normandc avatar Aug 13 '20 05:08 normandc

I confirm that the second problem @normandc describes (keyboard disappears upon backspace) appears always and reproducibly in at least one web app I use.

ruedigerkupper avatar Aug 13 '20 18:08 ruedigerkupper

Just had this today while writing a sms

lduboeuf avatar Aug 13 '20 20:08 lduboeuf

I think this is a separate issue from the issue when the keyboard sometimes won't come up in text fields in non-web apps. This issue specifically happens on some webapps when pressing certain keys.

kugiigi avatar Aug 14 '20 04:08 kugiigi

Don't have it since a while, is it closeable ?

lduboeuf avatar Sep 24 '20 08:09 lduboeuf