-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applications do not start with "cannot register existing type 'GtkIMContext'" #651
Comments
Hi @SyntevoAlex , thanks for the bug report. I wonder which version/environment the bug occured? In abf244a, noticed that I used I'm personally using HIME build from trunk on Archlinux, just FYI. |
The problem for example occurs on Ubuntu 20.04, which has version 0.9.10+git20170427 Building from sources fails:
I was able to work around that by only building I am myself not a user of HIME, but a developer of a product which fails to start with HIME installed :( |
I see. Thanks for providing the detailed info. |
Thanks! |
Hey @medicalwei ... would you please take a look? 🙏 I'm not familiar with Ubuntu/Debian ecosystems. 😢 |
@SyntevoAlex if all we need is the .deb package, please refer to the CI script: https://github.com/hime-ime/hime/blob/master/distro/debian/ci/entrypoint.sh |
Unfortunately for me it's more complicated - as a developer of other product that gets broken by HIME, I'm interested in having fixed HIME for all other users. This basically means updating it in Ubuntu (and other Linux where necessary). |
I am not actually maintaining hime in Debian. However, as soon as I got my computer back on Thursday I can try building it. Please keep me posted! |
@czchen would you be able to help on Debian side? 🙏 |
@tmssngr FYI |
Hi, Do you plan to release a new version using tag or release? Or, where do you put your release tarball? |
@medicalwei thanks for taking care of this. I just tagged v.0.9.11. |
I will handle the package uploading soon. |
Thank you! |
This problem was mentioned in other issues:
#565
#580
#584
However, none seem to have arrived at solution, and in general strayed in some other direction, so I decided to post a new issue.
When an effected application is started, it prints errors to console and fails to start UI:
I have debugged the problem and found that this is because HIME module for GTK3 is incorrectly linked to GTK2 libraries:
The problem develops as follows:
gtk_im_multicontext_get_type()
orgtk_im_context_get_type()
.gtk_im_context_get_type_once()
, which creates the type and saves "did that" flag in GTK3.gtk_im_context_get_type()
fromgtk_im_context_hime_register_type()
.GLib-Object-WARNING
.When building HIME from sources, the problem is fixed and HIME is linked to GTK3.
I understand that the problem is possibly fixed by the following commit: abf244a
The text was updated successfully, but these errors were encountered: