hime-ime / hime

HIME Input Method Editor
http://hime-ime.github.io
267 stars 48 forks source link

Changing keyboard input method system to hime cause crashes when pressing buttons in QtCreator #565

Open KKyang opened 7 years ago

KKyang commented 7 years ago

If I change the input method to hime, QtCreator will crash if I press any button that will pop out a dialog window. Since the kernel yet doesn't work perfectly with the Ryzen CPU, I'll post my hardware and the error message below. Thanks.

Operating system: Ubuntu 16.04 Kernel: 4.10.1-041001-generic CPU and motherboard: Ryzen 1700x with B350M-plus

The error message:

(qtcreator:4396): Gtk-WARNING **: Invalid input string

(qtcreator:4396): Gtk-WARNING **: Invalid input string

(qtcreator:4396): GLib-GObject-WARNING **: cannot register existing type 'GtkIMContext'

(qtcreator:4396): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(qtcreator:4396): GLib-GObject-CRITICAL **: g_type_register_dynamic: assertion 'parent_type > 0' failed

(qtcreator:4396): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
^Z
[3]+  Stopped                 ./qtcreator
brchiu commented 7 years ago

Operating system: Ubuntu 17.04 Kernel: 4.10.0-20-generic CPU and motherboard: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz on ASUS X550V

On Ubuntu 17.04 and Lubuntu 17.04, I also encounter this problem when trying to open file dialog in Kolourpaint and Virtualbox. Most applications can safely open file dialog, for example, LibreOffice, Chrome browser, Firefox, Document Viewer ......

This is the gdb backtrace log when trying to open existing file in Kolourpaint.

brchiu commented 7 years ago

OK, I found that the hime version used by Ubuntu 17.04 is 0.9.10+git20150916+dfsg1-8build1~3. I clone this git repository and build hime_0.9.10+git20170509-1_amd64.deb and install it. The crash problem solved.

@KKyang FYI.