You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a GLib-GObject-CRITICAL error on main window closing within SimpleAsyncComponent when there is a transient adw::PreferencesWindow within another SimpleAsyncComponent.
There is no error if the root component is SimpleComponent (not async).
There is no error if a child component root is adw::Window (not adw::PreferencesWindow).
There is no error if there is no calling for .transient_for(...) of a child component builder.
Logs and code files:
(relm4-gtk-bug-1:224499): GLib-GObject-CRITICAL **: 15:56:25.340: instance with invalid (NULL) class pointer
(relm4-gtk-bug-1:224499): GLib-GObject-CRITICAL **: 15:56:25.340: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(relm4-gtk-bug-1:224499): GLib-GObject-CRITICAL **: 15:56:25.340: instance with invalid (NULL) class pointer
(relm4-gtk-bug-1:224499): GLib-GObject-CRITICAL **: 15:56:25.340: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(relm4-gtk-bug-1:224499): GLib-GObject-CRITICAL **: 15:56:25.340: instance with invalid (NULL) class pointer
(relm4-gtk-bug-1:224499): GLib-GObject-CRITICAL **: 15:56:25.340: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(relm4-gtk-bug-1:224499): GLib-GObject-CRITICAL **: 15:56:25.340: instance with invalid (NULL) class pointer
(relm4-gtk-bug-1:224499): GLib-GObject-CRITICAL **: 15:56:25.340: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
cargo.toml
[package]
name = "relm4-gtk-bug-1"version = "0.1.0"edition = "2021"
[dependencies]
adw = { version = "0.6.0", package = "libadwaita" }
relm4 = { version = "0.8.1", features = ["all", "libadwaita", "gnome_45"] }
I could narrow the cause down to the shutdown code that shuts down all components when your app quits, called here.
The error shouldn't be problematic though because it's just before the app quits anyway. It's obviously annoying, but I don't know how I can further debug this from the Relm4 side. Our code does nothing unsafe or unexpected but we sometimes use gtk-rs in ways regular gtk-rs apps never do. It wouldn't be the first bug in GTK/gtk-rs we uncovered with Relm4, but I'm not sure how to report this one. But it seems to be related to adw::PreferencesWindow...
There is a
GLib-GObject-CRITICAL
error on main window closing withinSimpleAsyncComponent
when there is a transientadw::PreferencesWindow
within anotherSimpleAsyncComponent
.There is no error if the root component is
SimpleComponent
(not async).There is no error if a child component root is
adw::Window
(notadw::PreferencesWindow
).There is no error if there is no calling for
.transient_for(...)
of a child component builder.Logs and code files:
cargo.toml
preferences.rs
main.rs
The text was updated successfully, but these errors were encountered: