Ubuntu 上 Android Studio 的键盘问题 [英] Keyboard issues with Android Studio on Ubuntu

查看:56
本文介绍了Ubuntu 上 Android Studio 的键盘问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Ubuntu 上使用 Android Studio 时,IDE 会停止响应键盘输入或开始输入随机字符?

如何解决这个问题?或者可能的解决方法.

解决方案

这是一个已知问题

一个>:

<块引用>

该错误似乎是由IBus(服务器)和 Xlib + AWT(客户端 JVM),由快速连续按键和客户的组合较慢的事件处理.

对我有帮助的 2 个解决方法是:

<块引用>

解决方法 #1:强制 ibus 处于同步模式

$ IBUS_ENABLE_SYNC_MODE=1 ibus-daemon -xrd

最好在启动 Studio 之前执行此操作.这个解决方法是建议在 https://code.google.com/p/ibus/issues/detail?id=1733 对于面临相同问题的不同 Java 应用程序.

解决方法 #2:在 Studio 中禁用 IBus 输入

$ XMODIFIERS= ./bin/studio.sh

这只会禁用 Studio 的输入法,而不是其他应用程序.在 Studio 运行时重新启动守护程序(‘ibus-daemon -rd’) 有效地禁用所有输入法其他应用程序,也可以使用以下命令使 Studio 的 JVM 崩溃分段错误.

While using Android Studio on Ubuntu there are scenarios where the IDE will stop responding to keyboard input or start inputting random characters?

How to fix this? Or possible workarounds.

解决方案

This is a known issue with:

The bug seems to be triggered by some missing synchronization between IBus (the server) and Xlib + AWT (the client JVM), exposed by a combination of a quick succession of key presses and the client’s slower event handling.

The 2 workarounds that helped me were:

Workaround #1: Force ibus in synchronous mode

$ IBUS_ENABLE_SYNC_MODE=1 ibus-daemon -xrd

Do this preferably before starting Studio. This workaround was suggested in https://code.google.com/p/ibus/issues/detail?id=1733 for a different Java application facing the same problems.

Workaround #2: Disable IBus input in Studio

$ XMODIFIERS= ./bin/studio.sh

This will only disable input methods for Studio, not the other applications. Restarting the daemon while Studio is running (‘ibus-daemon -rd’) effectively disables the input methods for all other applications, and can also crash Studio's JVM with a segmentation fault.

这篇关于Ubuntu 上 Android Studio 的键盘问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆