community
community copied to clipboard
Text Input typing bug
- Python: 3.8
- OS: android
- Kivy: master
- Kivy installation method: pip
When you enter text in the text field, after pressing the space bar, it disappears somewhere, if you start erasing it, it appears, but only after erasing the visible characters.
https://user-images.githubusercontent.com/40869738/110664448-745b6d80-81d8-11eb-8b8c-928131a487bc.mp4
https://youtu.be/OCk6OuXq4dA explains the problem. This is just a reference. Please try that app and report if issue is exactly the same. I have tried that and can confirm that when using keyboard via otg, the problem mentioned in video disappears
https://youtu.be/OCk6OuXq4dA explains the problem.
As I understand this is a bug, but how to fix it? In version 2.0.0 everything works but there are no word predictions
https://youtu.be/OCk6OuXq4dA explains the problem. This is just a reference. Please try that app and report if issue is exactly the same. I have tried that and can confirm that when using keyboard via otg, the problem mentioned in video disappears
I downloaded the app from the video above, the bug is the same
@darpan5552
https://user-images.githubusercontent.com/40869738/110835925-7abd1880-82b0-11eb-8fcb-5c3bdb76d0f0.mp4
- Upon close observation, we can observe that kivy is forgetting its cursor position. Suppose we are at
position1
to type 4 characters, then for typing 5th character if we go toposition2
, all the 4 characters including 5th character comes atposition2
. This behavior is particular to initial state only. - New line character works in initial state, but when we shift to other application and come back to kivy, new line character does not work at all.
@darpan5552 Yes, this is a textinput bug, I looked at the source code, but I still can't figure out where the error is
@Neizvestnyj May be the bug is in kivy.core.text instead of kivy.uix.textinput
@darpan5552 Don't know (
i can confirm weird behaviors, it still kind of work, if you trust it to do the right thing and continue, but this is not ideal. https://user-images.githubusercontent.com/22759/112563046-e89d3000-8dd8-11eb-949b-840e2a2aed66.mp4
- Python: 3.8
- OS: android
- Kivy: master
- Kivy installation method: pip
When you enter text in the text field, after pressing the space bar, it disappears somewhere, if you start erasing it, it appears, but only after erasing the visible characters.
bug.mp4
Hi, I'm sorry for possible spaming, but I'm having a relatable problem #7545. Have you been able to find some kind of workaround?
- Python: 3.8
- OS: android
- Kivy: master
- Kivy installation method: pip
When you enter text in the text field, after pressing the space bar, it disappears somewhere, if you start erasing it, it appears, but only after erasing the visible characters. bug.mp4
Hi, I'm sorry for possible spaming, but I'm having a relatable problem #7545. Have been able to find some kind of workaround?
No, it doesn't work at the moment
@olek5andr Use kivy==2.0.0 I have observed that it's working much better
Yes, at the moment the problem is still being solved
@olek5andr Use kivy==2.0.0 I have observed that it's working much better
Using kivy == 2.0.0 is not an option, because when using kivy=2.0.0 with kivymd it is lagging drastically on an Android device. It appears to run much smoother when kivy==master, but then this issue with TextInput arises. I'm trying to identify the specific commit after which it started, wasn't able to find it yet...
@olek5andr I am using kivy==2.0.0 with kivymd==0.104.1 and still haven't observed any lagging. May be those application are lot simpler. https://github.com/kengoon/PyJniusTester https://github.com/dcindia/matrix-calculator https://github.com/dcindia/KivyAppUpdater
It seems the problem still exists in version 2.0.0. Also I had encountered another bug that might related to this issue: When pasting long text using gboard auto paste feature the pasted text is incomplete.
any updates !👀
Can someone test if the bug persists if using p4a manually, since i tried it and it was fixed
@Philipmikmik what you mean exactly
@hussam132 well i was working on a app that experienced this error and now after some time i tried python-for-android by itself, but i also changed a lot of things like my os, python version etc. in the time passed and cannot confirm it was that that fixed it. So im asking if someone can test it
I don't think it's p4a issue @Philipmikmik It's more kivy issue but anyway can you list the changes you made
@hussam132 im sorry but i dont think thats possible, since its been over half a year. And i also had a problem that made buildozer unusable thats why i used p4a, its possible the error got cleared in that time
Has anyone fixed it yet? (TextInput)
Any updates ? I'm using kivy version 2.0.0 and the bug still appearing.
Any updates ? I'm using kivy version 2.0.0 and the bug still appearing.
No, in 2.1.0 this feature was removed
Python: 3.10.4 OS: android Kivy: 2.1.0 master Kivymd: 1.0.2 buildozer: 1.4.0 p4a: 2022.7.20 Kivy installation method: pip (pipenv)
I'm facing the same behavior as @Neizvestnyj described in his/her first post. Is anybody working on that issue or is a workaround available? @tshirtman Thank you for every small hint.
I saw this behavior already in this environment: Python: 2.7.2 OS: android (version newer than 7.1.1) Kivy: 1.9.0
Problem wasn't there at least until android-version 7.1.1, (Sony Z4). It appeared with newer devices like Samsung Galaxy Tab A8 (don't know exactly when it first came up).
For some other reason I upgraded: Python: 3.9.9 OS: android 11 Kivy: 2.1.0
I was hoping in the meantime this bug has been found and eliminated. But not :( From my observation there is some connection to the android-version! Any hint to solve or workaround this would be very welcome ...
I wanted to verify, if my statement above is true: I installed new apk (Python: 3.9.9, Kivy: 2.1.0) on my old Sony Z4 with android 7.1.1, and - contradicting to what I said - bug in TextInput occurs. So: There is no obvious connection to the version of android. Would like to help in finding a solution - but don't know how ...