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

GLib-GObject:ERROR: g_type_register_static: assertion failed: (static_quark_type_flags) #382

Open
aliihsancengiz opened this issue Oct 29, 2024 · 3 comments

Comments

@aliihsancengiz
Copy link

Hey, i am running a flutter app on a snap, thats uses this library to communicate with another app over dbus(plugs and slots are connected), the way we are using is

...
void _setupWatchdog() {
  Timer.periodic(const Duration(seconds: 10), (_) {
    var client = DBusClient.system();
    var object = DBusRemoteObject(client, name: 'org.ssi.app.intercom.outdoor.watchdog', path: DBusObjectPath('/org/ssi/app/intercom/outdoor/watchdog'));
    object.callMethod('org.ssi.app.intercom.outdoor.watchdog', 'Feed', []);
    client.close();
  });
}
...

but I am getting below, when I am running the app and it crashes

2024-10-29T13:48:18Z salto-ssi-outdoor.daemon[25697]: Starting app
2024-10-29T13:48:18Z salto-ssi-outdoor.daemon[25757]: **
2024-10-29T13:48:18Z salto-ssi-outdoor.daemon[25757]: GLib-GObject:ERROR:../../../gobject/gtype.c:2808:g_type_register_static: assertion failed: (static_quark_type_flags)
2024-10-29T13:48:18Z salto-ssi-outdoor.daemon[25757]: Bail out! GLib-GObject:ERROR:../../../gobject/gtype.c:2808:g_type_register_static: assertion failed: (static_quark_type_flags)

Any reason that could trigger this error?
Interesting enough, if I get clean build everytime, this issue disappear, I suspect that library itself uses some build time variables to identify itself on dbus or embedded into app.

Thanks

@robert-ancell
Copy link
Contributor

This is a bug in salto-ssi-outdoor.daemon - it looks like it's not handling the D-Bus requests correctly.

@aliihsancengiz
Copy link
Author

aliihsancengiz commented Oct 29, 2024

In daemon, we use dbus only as above snippet,dbus object is sth present on other service which is not a flutter app indeed, so i am curious, why it is working only on clean builds, do you have any clue or tips to debug, i am not a flutter dev @robert-ancell ?

@p-divita-salto
Copy link

I have the same issue. The only workaround is to use snapcraft clean before creating the new snap.
This is a bit annoying

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

3 participants