Bug 262537

Summary: [GTK] Writing text is slow and messes the order of the keystrokes
Product: WebKit Reporter: Andres Gomez Garcia <agomez>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

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?