Issue 1539 in ibus: IBus Prevents Minecraft from Getting Keyboard Input

72 views
Skip to first unread message

ib...@googlecode.com

unread,
Oct 28, 2012, 2:09:44 PM10/28/12
to ibus-...@googlegroups.com
Status: New
Owner: damage3...@gmail.com
Labels: Type-Defect Priority-Medium Component-ibus

New issue 1539 by damage3...@gmail.com: IBus Prevents Minecraft from
Getting Keyboard Input
http://code.google.com/p/ibus/issues/detail?id=1539

What steps will reproduce the problem?
1. wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar
2. java -cp minecraft.jar net.minecraft.LauncherFrame
3. Login with account ibusdev/ubuntu1204
4. Play Demo World

What is the expected output? What do you see instead?
The game should responses to W,A,S,D,E,space.
However, as long as ibus-daemon is running, the game gives no response to
keyboard press.

The issue is inspired by a bug on LP:
https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/998751
I've successfully reproduced it on my Ubuntu 12.04 box with IBus 1.4.1


ib...@googlecode.com

unread,
Oct 29, 2012, 4:24:17 AM10/29/12
to ibus-...@googlegroups.com
Updates:
Cc: takao.fujiwara1

Comment #1 on issue 1539 by takao.fujiwara1: IBus Prevents Minecraft from
When I tried to log in minedraft with your account in Fedora 18 and 16, it
seems minedraft crashed without running ibus-daemon.
I think ibus binds Control+space only so I don't understand why
W,A,S,D,E,space issues are relative with ibus.

ib...@googlecode.com

unread,
Oct 29, 2012, 11:26:19 AM10/29/12
to ibus-...@googlegroups.com

Comment #2 on issue 1539 by damage3...@gmail.com: IBus Prevents Minecraft
On my Fedora 17 box, the local version also crashes.
However, I can reproduce same problem using the online version:
https://minecraft.net/demo
( have "icedtea-web" package installed and login with same account )

ib...@googlecode.com

unread,
Oct 30, 2012, 5:42:05 AM10/30/12
to ibus-...@googlegroups.com

Comment #3 on issue 1539 by takao.fujiwara1: IBus Prevents Minecraft from
Hmm.., it seems I need to prepare 32bit box so that the java client works.

ib...@googlecode.com

unread,
Oct 30, 2012, 12:03:19 PM10/30/12
to ibus-...@googlegroups.com

Comment #4 on issue 1539 by damage3...@gmail.com: IBus Prevents Minecraft
My Fedora 17 box is 64bit.

ib...@googlecode.com

unread,
Oct 30, 2012, 10:43:44 PM10/30/12
to ibus-...@googlegroups.com

Comment #5 on issue 1539 by takao.fujiwara1: IBus Prevents Minecraft from
OK, I could reproduce the problem.
I'd think this is a minecraft bug since the minecraft source codes need to
be investigated.

It seems if XIM is opened, the keyboard does not work.

Workaround #1.
% env XMODIFIERS= firefox

Workaround #2.
Run minecraft, Press Control+Space, show the "Game menu", restart ibus,
continue the game.

Workaround #3.
Run ibus-daemon without '--xim' option.



ib...@googlecode.com

unread,
Oct 31, 2012, 5:36:53 PM10/31/12
to ibus-...@googlegroups.com

Comment #6 on issue 1539 by damage3...@gmail.com: IBus Prevents Minecraft
Is it possible possible to add an option about XIM to ibus-setup?

Since the workarounds are too hard for GUI-only people.
And I doubt whether #2 works on Ubuntu and other 1.4 environments.

ib...@googlecode.com

unread,
Oct 31, 2012, 10:04:39 PM10/31/12
to ibus-...@googlegroups.com

Comment #7 on issue 1539 by takao.fujiwara1: IBus Prevents Minecraft from
Getting Keyboard Input
http://code.google.com/p/ibus/issues/detail?id=1539

> Is it possible possible to add an option about XIM to ibus-setup?

Probably I don't think that ibus-setup will provide the option to
disable '--xim' for ibus-daemon.
I think it depends on how you run ibus-daemon when you log into the desktop.
E.g. Fedora provides 'im-chooser' command and when you choose ibus,
$HOME/.xinputrc will be saved.
And you could customize the line "XIM_ARGS="-r --xim" in the .xinputrc to
change the symlink to the real file.

> And I doubt whether #2 works on Ubuntu and other 1.4 environments.

Right. I think the #2 works in ibus 1.4.99 or later.

ib...@googlecode.com

unread,
Oct 31, 2012, 10:11:30 PM10/31/12
to ibus-...@googlegroups.com

Comment #8 on issue 1539 by damage3...@gmail.com: IBus Prevents Minecraft
I know it's entirely possible but such configuration method is still a
bit awkward from a uninformed user's point of view.

ib...@googlecode.com

unread,
Oct 31, 2012, 10:16:03 PM10/31/12
to ibus-...@googlegroups.com

Comment #9 on issue 1539 by takao.fujiwara1: IBus Prevents Minecraft from
OK. Maybe I think it's better to enhance im-chooser instead of ibus and
disabling '--xim' would be a workaround for minecraft only and the options
is needed to use ibus on xterm.

ib...@googlecode.com

unread,
Oct 31, 2012, 10:26:34 PM10/31/12
to ibus-...@googlegroups.com

Comment #10 on issue 1539 by takao.fujiwara1: IBus Prevents Minecraft from
I think adding "alias firefox 'env XMODIFIERS= firefox'" in .bashrc is an
easy workaround.

ib...@googlecode.com

unread,
Oct 31, 2012, 10:39:08 PM10/31/12
to ibus-...@googlegroups.com

Comment #11 on issue 1539 by damage3...@gmail.com: IBus Prevents Minecraft
Yeah, it's just a workaround.
So we let the user make the choice according to her need.
And we better make the options easily accessible.

For alias workaround, I don't think Shell knowledge is that common these
days.

ib...@googlecode.com

unread,
Apr 22, 2013, 4:01:05 AM4/22/13
to ibus-...@googlegroups.com

Comment #12 on issue 1539 by j26733...@gmail.com: IBus Prevents Minecraft
fedora18 integrate ibus into gnome
how to let it work?

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

ib...@googlecode.com

unread,
Jan 7, 2014, 11:13:18 AM1/7/14
to ibus-...@googlegroups.com

Comment #13 on issue 1539 by trespass...@gmail.com: IBus Prevents Minecraft
Have this problem with other Java Swing apps (most notably IntelliJ IDEA)
in Ubuntu 13.10 with IBus 1.5.3. Feels like IBus starts intercepting key
codes. Restarting ibus-daemon helps.

Is there a way to somehow debug the daemon while it's in in such a state,
or at least enable some logging?

ib...@googlecode.com

unread,
Jan 8, 2014, 2:11:45 AM1/8/14
to ibus-...@googlegroups.com
Updates:
Status: Notabug

Comment #14 on issue 1539 by takao.fujiwara1: IBus Prevents Minecraft from
> Is there a way to somehow debug the daemon while it's in in such a state,
> or at least enable some logging?

If you provide a sample code of Java, I can test it.
Or ibus source code is available for you in git.
Reply all
Reply to author
Forward
0 new messages