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

Text Input typing bug #7415

Open
Neizvestnyj opened this issue Mar 10, 2021 · 28 comments
Open

Text Input typing bug #7415

Neizvestnyj opened this issue Mar 10, 2021 · 28 comments

Comments

@Neizvestnyj
Copy link

  • 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
@darpan5552
Copy link

darpan5552 commented Mar 11, 2021

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

@Neizvestnyj
Copy link
Author

Neizvestnyj commented Mar 11, 2021

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

@Neizvestnyj
Copy link
Author

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

@Neizvestnyj
Copy link
Author

Neizvestnyj commented Mar 11, 2021

@darpan5552

Screenrecorder-2021-03-11-21-23-40-771.0.mp4

@darpan5552
Copy link

darpan5552 commented Mar 12, 2021

  • 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 to position2, all the 4 characters including 5th character comes at position2. 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.

@Neizvestnyj
Copy link
Author

@darpan5552 Yes, this is a textinput bug, I looked at the source code, but I still can't figure out where the error is

@darpan5552
Copy link

@Neizvestnyj May be the bug is in kivy.core.text instead of kivy.uix.textinput

@Neizvestnyj
Copy link
Author

@darpan5552 Don't know (

@tshirtman
Copy link
Member

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

@tshirtman tshirtman added the Status: Confirmed Confirmed as real issue label Mar 26, 2021
tshirtman added a commit that referenced this issue Apr 18, 2021
backspace still incorrect
tshirtman added a commit that referenced this issue Apr 18, 2021
backspace still incorrect
tshirtman added a commit that referenced this issue Apr 18, 2021
backspace still incorrect
@tshirtman tshirtman moved this from To do to In progress in textinput fixes/experiments Apr 18, 2021
@olek5andr
Copy link

olek5andr commented Jun 19, 2021

  • 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?

@Neizvestnyj
Copy link
Author

  • 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

@darpan5552
Copy link

@olek5andr
Use kivy==2.0.0
I have observed that it's working much better

@Neizvestnyj
Copy link
Author

Yes, at the moment the problem is still being solved

@olek5andr
Copy link

@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...

@darpan5552
Copy link

@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

@ChihayaK
Copy link

ChihayaK commented Aug 6, 2021

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.

@ghost
Copy link

ghost commented Nov 15, 2021

any updates !👀

@leamikmik
Copy link

Can someone test if the bug persists if using p4a manually, since i tried it and it was fixed

@ghost
Copy link

ghost commented Dec 15, 2021

@Philipmikmik what you mean exactly

@leamikmik
Copy link

@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

@ghost
Copy link

ghost commented Dec 15, 2021

I don't think it's p4a issue @Philipmikmik
It's more kivy issue but anyway can you list the changes you made

@leamikmik
Copy link

@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

@rqsrdco
Copy link

rqsrdco commented Jan 14, 2022

Has anyone fixed it yet? (TextInput)

@nxtsoul
Copy link

nxtsoul commented Mar 14, 2022

Any updates ? I'm using kivy version 2.0.0 and the bug still appearing.

@Neizvestnyj
Copy link
Author

Any updates ? I'm using kivy version 2.0.0 and the bug still appearing.

No, in 2.1.0 this feature was removed

@Drohne1
Copy link

Drohne1 commented Sep 1, 2022

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.

@OrangMutan
Copy link

OrangMutan commented Nov 23, 2022

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 ...

@OrangMutan
Copy link

OrangMutan commented Nov 23, 2022

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

10 participants