ibus / ibus

Intelligent Input Bus for Linux/Unix
https://github.com/ibus/ibus/wiki
GNU Lesser General Public License v2.1
877 stars 180 forks source link

Random characters keep being repeated and require ibus restart #1918

Open falzard opened 7 years ago

falzard commented 7 years ago

This bug occurs on ubuntu 14.04

When the computer or the application freezes, then whatever you were typing will be randomly repeated after it unfreezes. So if you are freezing while typing "hello" in geany, then if you keep pressing any letter, it will randomly add "llo". If you press "eeeeeeeeeeeeeeeeeeeeee" it will transform into "eeeeeeelloeeeeeeeeeelloeeeeeeeello". If you press backspace or ctrl too.

If you do this in firefox, it will happen only in firefox (happens to me very often). So it depends on the application. Then the only way to solve this is to kill ibus or restart firefox.

Another downside of that horrible bug, is that it is completely bugging the program AutoKey.

It is described here as well: http://askubuntu.com/questions/526066/random-character-input-starts-after-typing-during-short-freezes https://bugs.launchpad.net/ubuntu/+source/lubuntu-meta/+bug/1325987 https://ubuntuforums.org/showthread.php?t=2230701

PS: It also occurs that in Nautilus you can't type anything, I don't know if it's related

fujiwarat commented 7 years ago

The random strings are output of the buffered strings. Yes, it would be a bug in ibus but I think the random characters does not happen if the freezing problem is fixed and the freezing problem itself is not caused by ibus. The DBus traffic might be crowded by someone and it affects applications which uses DBus likes IBus. I'd suggest to fix the root cause instead of the IBus random chars since it hard for me to reproduce the freezing problem.

falzard commented 7 years ago

The computer can freeze for a ton of reasons. Sometimes you open an overloaded web page, sometimes the desktop freezes for whatever reason etc...

If I understand right, you are suggesting to fix all bugs that can cause freezing? I guess this bug will stay with us forever then ^^

fujiwarat commented 7 years ago

The computer can freeze for a ton of reasons. Sometimes you open an overloaded web page, sometimes the desktop freezes for whatever reason etc...

No, I cannot reproduce your issues. Try to describe step by step.

falzard commented 7 years ago

What?

If your computer freezes, even if it's NOT related to ibus, then ibus is affected and I refer you to my first post then ;) http://askubuntu.com/questions/526066/random-character-input-starts-after-typing-during-short-freezes etc...

fujiwarat commented 7 years ago

Again, I cannot reproduce any freeze problems in either Ubuntu 16.04.2 and Fedora. Try to describe step by step.

Seems your problem is Ubuntu.

falzard commented 7 years ago

The freeze is not related to ibus, it's sometiems a bug in ubuntu or firefox or whatever. And after the freeze is gone (because that's how it works usually, my computer is slowed down or irresponsive and then it works again), then the IBUS bug is here (random letters appearing). It's described in each and every link I put above!

Most people have their computer slowing down at some point, no matter what the source of the bug is, and then it screws up IBUS.

fujiwarat commented 7 years ago

It's described in each and every link I put above!

I think it's not enough. Probably some conditions are missed to reproduce your problem. That's why I asked to describe step by step but not just adding links. Also your problem would not happen in Fedora and I think it's not an upstream issue. I can help to fix Ubuntu issues but I think it's not mandatory for me and should be fixed in the distribution side. If I can always reproduce your problem, I will try to fix your problem and root cause.

it's sometiems a bug in ubuntu or firefox or whatever.

I mean your problem would be caused by a special configuration in Ubuntu but I agree we are not clear where is the root cause. The best way is that you investigate which difference causes your problem between Fedora and Ubuntu and then probably I can reproduce your problem with a modified Fedora.

falzard commented 7 years ago

Ok, but you can reproduce a computer overload on demand?

When a freeze will happen I'll tell you how it happened then lol, I don't know how to do otherwise.

fujiwarat commented 7 years ago

Ok, but you can reproduce a computer overload on demand?

I looked at the buffer outputs the unnecessary characters about ten times but the next typings were always normal without any problems so I have no reproducing steps and I have not thought the problem is critical since only one typing caused the problem by each case. If I cannot reproduce the problem, I cannot debug the it. That's why I asked you the reproducing steps.

falzard commented 7 years ago

I cannot reproduce it on demands neither, it's just when my computer is overloaded.

tinyplasticgreyknight commented 7 years ago

You can use the stress program to simulate heavy system load on demand, please give it a try.

fujiwarat commented 7 years ago

I tried stress --cpu 1 --io 4 --vm 2 --vm-bytes 500M --timeout 10s 30 times but don't see any problems.