Bug 25525 - Anki does not work with iBus anymore
Summary: Anki does not work with iBus anymore
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 25276
  Show dependency treegraph
 
Reported: 2019-10-04 12:32 CEST by Nicolas Costes
Modified: 2019-12-02 11:19 CET (History)
5 users (show)

See Also:
Source RPM: glib2.0-2.60.2-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Nicolas Costes 2019-10-04 12:32:51 CEST
Description of problem:

Anki does not work with iBus anymore. Changing the input method works in other programs but not in Anki.


Version-Release number of selected component (if applicable):

Anki 2.1.4
Anki 2.1.15

How reproducible:

The problem occurs in version 2.1.4 (mga6) and 2.1.15 (mga7), every time I type text in Anki. In other programs (Konsole, Kmail, LibreOffice, Firefox, Kate,...), the Chinese characters and Pinyin are input successfully as desired.

NOTE : it worked on my Mageia 6 machine successfully for more 1 year and suddenly stopped recently (less than 2 months, maybe this week). My Mageia 7 has the same problem but I did not use Anki on it before.


Steps to Reproduce:

1. Open Anki, try to type text in any text zone (eg. while adding a new card), only roman characters are input.

2. Try to cycle through the input languages (Pinyin, Chinese characters, French...), iBus icon doesn't change, input does not cycle and roman characters are input instead

3. Go to another application, cycle successfully through the input languages (Pinyin, Chinese characters, French...), go back to Anki, type text, roman characters are input instead


Environment :

$ env | grep -E 'ibus|xim'

XIM_PROGRAM=ibus-daemon -d -x
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus
GTK_IM_MODULE=ibus
Comment 1 Lewis Smith 2019-10-04 13:11:18 CEST
Thank you Nicolas for this report.

Assigning to 'anki' maintainer akien. But if you think it is an iBus problem (because in M6 it seems to have resulted from an update, and unless anki was updated recently, this suggests an iBus update was responsible) please re-assign it as you see fit (ibus has no registered maintainer).

Whiteboard: (none) => MGA6TOO
Assignee: bugsquad => rverschelde

Comment 2 Nicolas Costes 2019-10-04 15:10:48 CEST
- I am experiencing the problem with Konsole, now, but not with other applications -_-

- Anki seems to have been upgraded 2.0.52-2.mga7 to 2.1.15-1.mga7 since September.
Comment 3 Nicolas Costes 2019-10-07 11:21:22 CEST
I tried with the old "vanilla" Anki (Version 2.0.52 downloaded from the Anki website), iBus work correctly with it.

I tried the 2.1.15 version from upstream, it fails to work with iBus too. (tested with a new user blank session, just in case).


So : seems the bug indeed comes from upstream.
Comment 4 Nicolas Costes 2019-10-07 11:27:42 CEST
I opened a discussion on the Anki website.


https://anki.tenderapp.com/discussions/ankidesktop/36281-bug-anki-2115-for-linux-does-not-work-with-ibus-input-method
Comment 5 Nicolas Costes 2019-11-15 15:23:35 CET
It seems the bug has been found and fixed upstream in Ibus and/or Glib, but I am not sure if I understand everything : 

https://github.com/ibus/ibus/issues/2137


Should the new Ibus be backported to Mageia 7 (and 6) ? How can I help ?
Comment 6 David GEIGER 2019-11-15 19:09:48 CET
Please test with upcoming glib2.0-2.60.2-1.1.mga7 in Core/Updates_testing repo!

glib2.0-common-2.60.2-1.1.mga7
libglib2.0_0-2.60.2-1.1.mga7
libgio2.0_0-2.60.2-1.1.mga7
libglib2.0-devel-2.60.2-1.1.mga7
libglib2.0-static-devel-2.60.2-1.1.mga7
glib-gettextize-2.60.2-1.1.mga7
lib64glib2.0_0-2.60.2-1.1.mga7
lib64gio2.0_0-2.60.2-1.1.mga7
lib64glib2.0-devel-2.60.2-1.1.mga7
lib64glib2.0-static-devel-2.60.2-1.1.mga7

CC: (none) => geiger.david68210

Comment 7 Nicolas Costes 2019-11-19 12:28:19 CET
It works !

On my Mageia 7 I can now input Chinese characters and pinyin into Anki (2.1.15). In Firefox too, it seems : 謝謝你!

How can I test on Mageia 6 ?



Here are the relevant packages I am using now :

$ rpm -qa | grep -E 'glib|ibus|gio|anki' | grep -E '1.1.mga' | sort -V

anki-2.1.15-1.1.mga7
glib2.0-common-2.60.2-1.1.mga7
glib-gettextize-2.60.2-1.1.mga7
ibus-1.5.20-1.1.mga7
ibus-gtk3-1.5.20-1.1.mga7
ibus-gtk-1.5.20-1.1.mga7
ibus-m17n-1.4.1-1.mga7
ibus-ui-gtk3-1.5.20-1.1.mga7
lib64gio2.0_0-2.60.2-1.1.mga7
lib64glib2.0_0-2.60.2-1.1.mga7
lib64ibus1.0_5-1.5.20-1.1.mga7
lib64ibus-gir1.0-1.5.20-1.1.mga7
Comment 8 David GEIGER 2019-11-19 13:15:11 CET
(In reply to Nicolas Costes from comment #7)
> It works !
> 
> On my Mageia 7 I can now input Chinese characters and pinyin into Anki
> (2.1.15). In Firefox too, it seems : 謝謝你!
> 
> How can I test on Mageia 6 ?


Mageia 6 is EOL, so no fix for it, sorry.
Comment 9 David GEIGER 2019-11-20 09:41:19 CET
Assigning to QA,


Advisory:
========================

Since the original CVE-2019-14822 in glib2.0 a regression was introduced which broke iBus. So this update fixes this issue avoiding race condition authenticating GDBusServer with libdbus client.


For reference:
https://gitlab.gnome.org/GNOME/glib/issues/1831
https://github.com/ibus/ibus/issues/2137

========================

Packages in 7/core/updates_testing:
========================
glib2.0-common-2.60.2-1.1.mga7
libglib2.0_0-2.60.2-1.1.mga7
libgio2.0_0-2.60.2-1.1.mga7
libglib2.0-devel-2.60.2-1.1.mga7
libglib2.0-static-devel-2.60.2-1.1.mga7
glib-gettextize-2.60.2-1.1.mga7
lib64glib2.0_0-2.60.2-1.1.mga7
lib64gio2.0_0-2.60.2-1.1.mga7
lib64glib2.0-devel-2.60.2-1.1.mga7
lib64glib2.0-static-devel-2.60.2-1.1.mga7


Source RPM: 
========================
glib2.0-2.60.2-1.1.mga7.src.rpm

Assignee: rverschelde => qa-bugs
Whiteboard: MGA6TOO => (none)
Source RPM: (none) => glib2.0-2.60.2-1.mga7.src.rpm

Comment 10 Thomas Andrews 2019-11-24 20:19:10 CET
Because the reporter indicates that his issue has been solved, I'm testing for a clean install only:

The following 3 packages are going to be installed:

- glib2.0-common-2.60.2-1.1.mga7.x86_64
- lib64gio2.0_0-2.60.2-1.1.mga7.x86_64
- lib64glib2.0_0-2.60.2-1.1.mga7.x86_64

Packages installed cleanly, so giving this a 64-bit OK and validating. Advisory in Comment 9.

CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update
Whiteboard: (none) => MGA7-64-OK

David GEIGER 2019-11-26 13:24:32 CET

Blocks: (none) => 25276

David Walser 2019-11-26 15:12:50 CET

CC: (none) => qa-bugs
Assignee: qa-bugs => geiger.david68210
Keywords: validated_update => (none)
Whiteboard: MGA7-64-OK => (none)

Comment 11 Thomas Andrews 2019-11-27 04:11:20 CET
(In reply to Nicolas Costes from comment #7)
> It works !
> 
> On my Mageia 7 I can now input Chinese characters and pinyin into Anki
> (2.1.15). In Firefox too, it seems : 謝謝你!
> 
Nicolas, could you please test the new security-patched packages in Bug 25276 to be sure that the issue you reported here is still fixed? And please report your results there, if you can.
Comment 12 Thomas Backlund 2019-11-30 14:08:49 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2019-0352.html

Resolution: (none) => FIXED
CC: (none) => tmb
Status: NEW => RESOLVED

Comment 13 Nicolas Costes 2019-12-02 11:19:24 CET
Hello ! Finally upgraded my box, Anki and iBus still work fine together !


- glib-gettextize-2.60.2-1.2.mga7.i586
- glib2.0-common-2.60.2-1.2.mga7.i586
- libgio2.0_0-2.60.2-1.2.mga7.i586
- libglib2.0_0-2.60.2-1.2.mga7.i586

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