Open mdgaziur opened 4 years ago
Thanks for providing the detailed error log. I'll check the issue.
This seems like the same or similar issue to #143 and #151 . I couldn't debug those as those didn't have relevant information.
Seems like the issue comes from gjs's GC running at awkward moments (for lack of a better scientific word) and making the JavaScript context invalid/frozen/hanged. It doesn't crash, which is a bad thing here. If a ibus engine process crashes normally ibus will try to restart it, but in this case the context is in a invalid state but the process is running.
This comes up in a bit of googling https://www.phoronix.com/scan.php?page=news_item&px=GNOME-Shell-Memory-Leak-Fix . More information is in the links inside the article.
So they changes GC behavior of gjs, its a total guess but maybe that caused the issue.
Also the problem is kinda hard to reproduce, as it doesn't happen 100% of the time.
I've pushed a commit which might at least alleviate the issue a bit. run
sudo wget -O /usr/share/ibus-avro/main-gjs.js https://raw.githubusercontent.com/sarim/ibus-avro/master/main-gjs.js
to replace current version with the updated code. restart ibus, try to write bangla. Let me know if what helps.
I've pushed a commit which might at least alleviate the issue a bit. run
sudo wget -O /usr/share/ibus-avro/main-gjs.js https://raw.githubusercontent.com/sarim/ibus-avro/master/main-gjs.js
to replace current version with the updated code. restart ibus, try to write bangla. Let me know if what helps.
Special thanks to OP to report this properly. I am suffering from this for a long time but wondering how to report this.
@sarim It got improved significantly. Typed a page without any crush! I am using Kubuntu 20.04 LTS though.
@haseebmahmud Thanks for the feedback.
I'm in discussion gnome/gjs peoples and I think the issue might be in their end. I'll update this issue when the full investigation concludes.
@sarim: How sure are you that the latest commit is an improvement? Is it safe enough to include it as a patch in Debian/Ubuntu while awaiting the result of that discussion/investigation?
Unfortunately I couldn't manage to find the time to investigate it further. But I'm not super confident about the previous commit. I do have another quick fix idea, and I'll try to implement it. If that helps then I'll do a minor release. Then it can be updated in debian/ubuntu repos.
Unfortunately there is no quick fix. Also this doesn't seems like a high priority issue for gjs. I've invested some serious times digging through gjs codebase and reading through spidermonkey docs. I've been cobbling together a solution in gbridge
branch. Its slow going.
I've pushed a commit which might at least alleviate the issue a bit. run
sudo wget -O /usr/share/ibus-avro/main-gjs.js https://raw.githubusercontent.com/sarim/ibus-avro/master/main-gjs.js
to replace current version with the updated code. restart ibus, try to write bangla. Let me know if what helps.
abdullah@abdullah-mint-lmdb5:~$ ^[[200~sudo wget -O /usr/share/ibus-avro/main-gjs.js https://raw.githubusercontent.com/sarim/ibus-avro/master/main-gjs.js~ sudo: command not found abdullah@abdullah-mint-lmdb5:~$ 200~sudo wget -O /usr/share/ibus-avro/main-gjs.js https://raw.githubusercontent.com/sarim/ibus-avro/master/main-gjs.js~ 200~sudo: command not found abdullah@abdullah-mint-lmdb5:~$ sudo wget -O /usr/share/ibus-avro/main-gjs.js https://raw.githubusercontent.com/sarim/ibus-avro/master/main-gjs.js~ [sudo] password for abdullah: --2022-04-30 15:04:07-- https://raw.githubusercontent.com/sarim/ibus-avro/master/main-gjs.js~ Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.111.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2022-04-30 15:04:08 ERROR 404: Not Found. abdullah@abdullah-mint-lmdb5:~$
When typing, Ibus-avro crashes randomly. This happened on Kali Linux 2020.4. I also encountered this problem on Ubuntu 20.04. After it crashes, switching to "EN" and then switching back doesn't works. But if I run
ibus restart
then it works. But it's kinda annoying.Here's the output after running
ibus-daemon -r -v