Bug 262537 - [GTK] Writing text is slow and messes the order of the keystrokes
Summary: [GTK] Writing text is slow and messes the order of the keystrokes
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-03 05:35 PDT by Andres Gomez Garcia
Modified: 2024-03-01 07:34 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Gomez Garcia 2023-10-03 05:35:44 PDT
With the latest flatpak version for `org.gnome.Epiphany.Devel`. WKGTK: 45.0-11-g986625975+

Steps to reproduce:

- Launch Ephy:

$ flatpak --user run org.gnome.Epiphany.Devel --incognito-mode

- Go to any web page that has a text input and write on it.
  - For example, the email input for logging into http://www.linkedin.com

- The text appears very slowly and often the characters are entered in the wrong order.
Comment 1 Andres Gomez Garcia 2023-10-03 05:47:10 PDT
(In reply to Andres Gomez Garcia from comment #0)
> With the latest flatpak version for `org.gnome.Epiphany.Devel`. WKGTK:
> 45.0-11-g986625975+

- org.gnome.Epiphany.Devel: 45.0-11-g986625975+
- WKGTK: 2.42.1
Comment 2 Michael Catanzaro 2023-10-03 06:24:23 PDT
It sounds almost like bug #252249, except you complain that characters are entered in the wrong order, which doesn't match what I see in that bug.

https://github.com/ibus/ibus/issues/2486 is a recent bug causing characters to *always* appear in the wrong order, but you say it only happens "often."
Comment 3 Andres Gomez Garcia 2024-02-29 06:05:15 PST
This is still happening.

Recently tested with the latest flatpak version for `org.gnome.Epiphany.Devel`. WKGTK: 46.beta-28-ga253d6dcd+

This time, just with MiniBrowser:

$ flatpak --user run --command=/usr/libexec/webkitgtk-6.0/MiniBrowser org.gnome.Epiphany.Devel

I also perceive that some bar spaces are lost.

The problem seems very related with having a high processing load.

For example, with the email input for logging into http://www.linkedin.com is very easy to reproduce but with other pages is more complicated.

With:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text

I use "stress" to get my computer in a high load state:

$ stress --cpu 16 --timeout 60

If I start typing into the input text, the keystrokes come easily unordered.
Comment 4 Andres Gomez Garcia 2024-02-29 06:08:16 PST
Forgot to mention, even with http://www.linkedin.com , you ca perceive how, if you start typing in the field as soon as it's rendered in the screen, the problem happens very easily but, if you wait several seconds until the page is completely processed and the load lowers, it's more difficult to reproduce.
Comment 5 Andres Gomez Garcia 2024-02-29 06:51:18 PST
After receiving the suggestion that this may be related with the us of ibus, deactivated the daemon with:


$ ibus exit

Now, I cannot reproduce the problem any more.

Running on Debian 12:

$ dpkg -l ibus
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  ibus           1.5.27-5     amd64        Intelligent Input Bus - core
Comment 6 Michael Catanzaro 2024-03-01 07:33:07 PST
In https://gitlab.gnome.org/GNOME/epiphany/-/issues/2289 you say this happens only in Epiphany and not in MiniBrowser. But in comment #3 above you say it does happen in MiniBrowser. So I'm confused. :)
Comment 7 Michael Catanzaro 2024-03-01 07:34:09 PST
I guess it happens in both Epiphany and MiniBrowser when writing text in the web view, but when writing text in the address bar it only happens when using Epiphany. Is that right?