| Summary: | ibus: cannot enter ASCII text into gnome applications when using ssh | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Harshula Jayasuriya <harshula> |
| Component: | ibus | Assignee: | fujiwara <tfujiwar> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 19 | CC: | i18n-bugs, petersen, shawn.p.huang, tfujiwar, tiagomatos |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ibus-1.5.4-2.fc18 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-10 06:43:16 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Harshula Jayasuriya
2013-09-04 03:26:08 UTC
ibus is based on dbus and it does not support client-server connection. So you need to run ibus-daemon in the server side. # ssh -Y server server% ibus-daemon --xim & server% env GTK_IM_MODULE=ibus gedit BTW, the problem is that English text is not appearing. And you can verify this by using your own desktop system, enabling ssh server and logging into your own account on the same system. This seems to be a regression - when one tries to test this with recent ibus one sees many warnings like: (gedit:20828): IBUS-WARNING **: Events queue growing too big, will start to drop. This happens at least with ibus-1.5.2-8.fc19.x86_64 and later, but not with ibus-1.5.1-2.fc18. (In reply to Jens Petersen from comment #3) > This seems to be a regression - when one tries to test this > with recent ibus one sees many warnings like: > > (gedit:20828): IBUS-WARNING **: Events queue growing too big, will start to > drop. > > This happens at least with ibus-1.5.2-8.fc19.x86_64 and later, > but not with ibus-1.5.1-2.fc18. I cannot reproduce your problem. Did you see any errors with strace gedit? It is pretty easy to reproduce: 1. boot F19-x86_64-DESK-20130806.iso (F19 respin) 2. setup ibus 3. ssh -X localhost gedit 4. try to input ascii directly (and can't) The ibus warnings "Events queue growing too big, will start to drop." suggest something is wrong. I can also reproduce on my own desktop running current F19. ibus-1.5.2-7.fc19 also seems okay. I forgot a couple of minor starts above: 2.1 su 2.2 systemctl start sshd 2.3 passwd liveuser OK, if ibus-daemon is running on another display, it can happen.
The following is the tentative patch:
--- ibus-1.5.3/client/gtk2/ibusimcontext.c.orig
+++ ibus-1.5.3/client/gtk2/ibusimcontext.c
@@ -740,7 +740,13 @@ ibus_im_context_filter_keypress (GtkIMCo
IBusIMContext *ibusimcontext = IBUS_IM_CONTEXT (context);
- if (!_daemon_is_running)
+ /* If ibus-daemon is running and run ssh -X localhost,
+ * _daemon_is_running == TRUE but ibus_get_address() == NULL
+ * so IBusBus is not connected and ibusimcontext->ibuscontext == NULL
+ * and ibusimcontext->events_queue could go beyond MAX_QUEUED_EVENTS
+ * because hostname and display number are different between
+ * ibus-daemon and clients. */
+ if (!_daemon_is_running || ibus_get_address () == NULL)
return gtk_im_context_filter_keypress (ibusimcontext->slave, event);
/* If context does not have focus, ibus will process key event in
ibus-1.5.4-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/FEDORA-2013-17327/ibus-1.5.4-1.fc20 ibus-1.5.4-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/FEDORA-2013-17357/ibus-1.5.4-1.fc19 ibus-1.5.4-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/FEDORA-2013-17371/ibus-1.5.4-1.fc18 ibus-1.5.4-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. ibus-1.5.4-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. ibus-1.5.4-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/ibus-1.5.4-2.fc19 ibus-1.5.4-2.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/ibus-1.5.4-2.fc18 ibus-1.5.4-2.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/ibus-1.5.4-2.fc20 Package ibus-1.5.4-2.fc20: * should fix your issue, * was pushed to the Fedora 20 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.4-2.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-18298/ibus-1.5.4-2.fc20 then log in and leave karma (feedback). ibus-1.5.4-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. ibus-1.5.4-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. ibus-1.5.4-2.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |