Skip to content
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

Fail to start with error: cannot register existing type 'GtkIMContext' #2161

Open
Lafudoci opened this issue May 5, 2019 · 9 comments
Open

Comments

@Lafudoci
Copy link
Contributor

Lafudoci commented May 5, 2019

OS: elementary os juno (based on ubuntu 18.04)
Wallet version: v0.14.0.0
IM: HIME

(monero-wallet-gui:6557): GLib-GObject-WARNING **: 19:44:00.522: cannot register existing type 'GtkIMContext'

(monero-wallet-gui:6557): GLib-CRITICAL **: 19:44:00.522: g_once_init_leave: assertion 'result != 0' failed

(monero-wallet-gui:6557): GLib-GObject-CRITICAL **: 19:44:00.522: g_type_register_dynamic: assertion 'parent_type > 0' failed

(monero-wallet-gui:6557): GLib-GObject-CRITICAL **: 19:44:00.522: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

It seems related to the input method, but I haven't figured out.

@Lafudoci
Copy link
Contributor Author

I found it works if I build from master
v0.14.0.0-110-ge81cb7e (Qt 5.9.5)

@sanderfoobar
Copy link
Contributor

To confirm; you downloaded latest release binary and it error'd with GtkIMContext ?

@sanderfoobar
Copy link
Contributor

Do you have a QT_STYLE_OVERRIDE set in your environment?

@Lafudoci
Copy link
Contributor Author

To confirm; you downloaded latest release binary and it error'd with GtkIMContext ?

Oh, the official build could start without such error, but I still can't enable my input method to type Chinese characters in app though.

The error reported in this issue is from my build with tag v0.14, Qt 5.95

Do you have a QT_STYLE_OVERRIDE set in your environment?

Yes, it is QT_STYLE_OVERRIDE=adwaita

Also provide all others QT env FYI

QT_STYLE_OVERRIDE=adwaita
QT4_IM_MODULE=hime
QT_QPA_PLATFORMTHEME=gtk3
QT_ACCESSIBILITY=1
QT_IM_MODULE=hime

@sanderfoobar
Copy link
Contributor

Thanks for the information. Ill see if I can test in a virtual machine at a later point in time.

@Lafudoci
Copy link
Contributor Author

Lafudoci commented May 11, 2019

Thank you @xmrdsc. But I guess if it works fine with master build, then it should be resolved in next release as well?

@sanderfoobar
Copy link
Contributor

sanderfoobar commented May 11, 2019

Release builds are statically compiled (./build.sh release-static). It will use an embedded Qt. In your case, you most likely compiled with just ./build.sh or ./build.sh debug. This will use your local Qt, that may or may not differ from ours.

In any case ill try out a VM. I take it you installed Qt dependencies via apt ?

@Lafudoci
Copy link
Contributor Author

Yes, you're right. I built with QT_SELECT=5 ./build.sh which is described in readme. And indeed my Qt is from apt.

@Lafudoci
Copy link
Contributor Author

Lafudoci commented May 15, 2019

I found the same issue still appears in master build, but not at launch, instead, it occurs when I click Browse filesystem button in open wallet from file

(monero-wallet-gui:7542): GLib-GObject-WARNING **: 22:46:25.527: cannot register existing type 'GtkIMContext'

(monero-wallet-gui:7542): GLib-CRITICAL **: 22:46:25.527: g_once_init_leave: assertion 'result != 0' failed

(monero-wallet-gui:7542): GLib-GObject-CRITICAL **: 22:46:25.527: g_type_register_dynamic: assertion 'parent_type > 0' failed

(monero-wallet-gui:7542): GLib-GObject-CRITICAL **: 22:46:25.527: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants