Bug 1163722 - ibus freezes while switching input method
Summary: ibus freezes while switching input method
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-13 10:56 UTC by Daniel
Modified: 2015-01-06 06:17 UTC (History)
4 users (show)

Fixed In Version: ibus-1.5.9-8.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-06 06:07:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daniel 2014-11-13 10:56:20 UTC
Description of problem:
After recent update, ibus freezes sometimes while switching input method.

Version-Release number of selected component (if applicable):
$ rpm -qa | grep "^ibus" | sort
ibus-1.5.9-4.fc20.i686 (Updated recently)
ibus-1.5.9-4.fc20.x86_64 (Updated recently)
ibus-chewing-1.4.10.1-1.fc20.x86_64
ibus-devel-1.5.9-4.fc20.x86_64 (Updated recently)
ibus-gtk2-1.5.9-4.fc20.i686 (Updated recently)
ibus-gtk2-1.5.9-4.fc20.x86_64 (Updated recently)
ibus-gtk3-1.5.9-4.fc20.i686 (Updated recently)
ibus-gtk3-1.5.9-4.fc20.x86_64 (Updated recently)
ibus-handwrite-2.1.4-11.fc20.x86_64
ibus-hangul-1.4.2-7.fc20.x86_64
ibus-input-pad-1.4.99.20140916-1.fc20.x86_64
ibus-kkc-1.5.20-1.fc20.x86_64
ibus-libpinyin-1.6.92-2.fc20.x86_64
ibus-libs-1.5.9-4.fc20.i686 (Updated recently)
ibus-libs-1.5.9-4.fc20.x86_64 (Updated recently)
ibus-m17n-1.3.4-12.fc20.x86_64
ibus-mozc-1.15.1814.102-1.fc20.x86_64
ibus-panel-extensions-1.4.99.20111207-6.fc19.i686
ibus-panel-extensions-1.4.99.20111207-6.fc19.x86_64
ibus-panel-extensions-python-1.4.99.20111207-6.fc19.x86_64
ibus-pinyin-1.5.0-5.fc20.x86_64
ibus-qt-1.3.3-1.fc20.x86_64
ibus-rawcode-1.3.2-3.fc20.x86_64
ibus-rime-1.1-1.fc20.x86_64
ibus-setup-1.5.9-4.fc20.noarch (Updated recently)
ibus-table-1.9.1-1.fc20.noarch
ibus-table-chinese-1.8.2-1.fc20.noarch
ibus-table-chinese-wubi-haifeng-1.8.2-1.fc20.noarch
ibus-table-chinese-wubi-jidian-1.8.2-1.fc20.noarch
ibus-table-devel-1.9.1-1.fc20.noarch
ibus-typing-booster-1.2.11-1.fc20.noarch
ibus-wayland-1.5.9-4.fc20.i686 (Updated recently)
ibus-wayland-1.5.9-4.fc20.x86_64 (Updated recently)

How reproducible:
Sometimes(40% of switching action)

Steps to Reproduce:
1. Configure ibus with following input method: Japanese, Mozc, Chinese-wubi-jidian
2. Open a application that can input text(such as terminal, text editor).
3. Switch input method from Japanese to Chinese-wubi-jidian and switch back.

Actual results:
Sometimes ibus freezes for 20-30 seconds and I cannot input any text even in other applications during that period.

Expected results:
ibus should finish input method switching in 3 seconds.

Additional info:
Is this a problem of ibus or ibus-table-chinese?

Comment 1 fujiwara 2014-11-14 10:23:14 UTC
When do you see the problem?
I guess the first time to switch your engine when you log into the session.
You could see which ibus processes are running with 'ps -ef | grep ibus' before you switch the engines.
I guess you don't see your problem after you switch the engines at once.

Do you use GNOME session?

Comment 2 Daniel 2014-11-17 03:35:29 UTC
Thank you very much for your reply.
1. I am using MATE desktop.
2. This problem happens not only the first time when I switch to Wubi-jidian input method. Sometimes it happens almost every time while switching to Wubi-jidian input method.
3. I tried to download ibus.src.rpm and rebuild the rpm file without ibus-xx-increase-timeout.patch file and it solved my problem. Maybe the ibus-xx-increase-timeout.patch file causes my problem.

Comment 3 fujiwara 2014-11-17 04:21:04 UTC
(In reply to Daniel from comment #2)
> 3. I tried to download ibus.src.rpm and rebuild the rpm file without
> ibus-xx-increase-timeout.patch file and it solved my problem. Maybe the
> ibus-xx-increase-timeout.patch file causes my problem.

Really? Could you please try to build ibus with ibus-xx-increase-timeout.patch by yourself again if you can reproduce your problem?

If it's the root cause, probably I should remove the async API in that patch.

Comment 4 Daniel 2014-11-17 07:07:26 UTC
Thank you very much for your reply.
Here is what I tried on both binary with and without ibus-xx-increase-timeout.patch: Switch from Japanese to Wubi-jidian("Chinese - WuBi-Jidian-86-JiShuag-6.0") and switch back for several times.
Here is what I got:
1. binary with ibus-xx-increase-timeout.patch
Everytime it took about 25 seconds for me the finished the switching. During the 25 seconds, ibus got freeze and I cannot input anything even in other windows.

2. binary without ibus-xx-increase-timeout.patch
The switching finished in 2-3 seconds.

BTW, I also have "Chinese - Intelligent Pinyin" and "Japanese - Mozc" installed and the switching with Japanese input method had no problem for binary with the ibus-xx-increase-timeout.patch.

Maybe the patch is the root cause, or the ibus-table-chinese should be changed to be compatible with the ibus-xx-increase-timeout.patch.

Comment 5 fujiwara 2014-11-17 08:59:48 UTC
I cannot reproduce your problem.

Could you replace ibus-xx-increase-timeout.patch with the following patch and build ibus by yourself if your problem can be fixed?
https://fujiwara.fedorapeople.org/ibus/20141117/ibus-xx-increase-timeout.patch

Comment 6 fujiwara 2014-11-19 02:44:15 UTC
Do you have any status?

Comment 7 fujiwara 2014-11-21 02:42:17 UTC
Daniel:
Are you able to test the patch in comment #5?
I'm interested in your problem.

Comment 8 Daniel 2014-11-23 02:55:03 UTC
Thank you very much for your contact.
I have been out of my office since 17th Nov and will be back on 27th Nov. I will test your patch on the day of my back to office.
Thank you again for your contact.

Comment 9 Daniel 2014-11-28 05:31:31 UTC
(In reply to fujiwara from comment #5)
> I cannot reproduce your problem.
> 
> Could you replace ibus-xx-increase-timeout.patch with the following patch
> and build ibus by yourself if your problem can be fixed?
> https://fujiwara.fedorapeople.org/ibus/20141117/ibus-xx-increase-timeout.
> patch

Thank you very much for your new patch file.
Unfortunately, the new patch doesn't solve my problem. Sometimes it still takes too long time for me to switch from "Japanese" to "Wubi-jidian".

Comment 10 fujiwara 2014-11-28 10:07:39 UTC
Thank you for your test.
Now I created a new patch:
https://fujiwara.fedorapeople.org/ibus/20141127/ibus-xx-increase-timeout.patch
Could you replace ibus-xx-increase-timeout.patch and build ibus?

I think this patch fixes your problem.

Comment 11 Daniel 2014-12-01 01:44:53 UTC
Thank you very much for your new patch file.
I tested it for 10 times of switch between "Japanese" and "Wubi-jidian" and there was no problems.
I will keep the new binary running and if there are any problems, I will report them here.
Thank your again for your new patch file.

Comment 12 fujiwara 2014-12-01 03:28:29 UTC
Thank you for the test.

Comment 13 Fedora Update System 2014-12-08 06:49:54 UTC
ibus-1.5.9-6.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/ibus-1.5.9-6.fc20

Comment 14 Fedora Update System 2014-12-08 06:50:05 UTC
ibus-1.5.9-6.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/ibus-1.5.9-6.fc21

Comment 15 Fedora Update System 2014-12-12 04:16:43 UTC
Package ibus-1.5.9-7.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-1.5.9-7.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-16630/ibus-1.5.9-7.fc21
then log in and leave karma (feedback).

Comment 16 Fedora Update System 2015-01-06 06:07:38 UTC
ibus-1.5.9-8.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2015-01-06 06:17:58 UTC
ibus-1.5.9-8.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.