J-Lentz / iwgtk

Lightweight wireless networking GUI (front-end for iwd)
GNU General Public License v3.0
223 stars 15 forks source link

Segmentation fault after disconnecting from network #26

Closed J-Lentz closed 2 years ago

J-Lentz commented 2 years ago

This only happened once, after clicking "Disconnect", and I haven't been able to reproduce it.

(iwgtk:23485): GLib-GIO-CRITICAL **: 06:45:31.028: g_dbus_proxy_get_cached_property: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(iwgtk:23485): GLib-CRITICAL **: 06:45:31.028: g_variant_get_string: assertion 'value != NULL' failed

(iwgtk:23485): GLib-GObject-WARNING **: 06:45:31.028: invalid uninstantiatable type '<invalid>' in cast to 'GtkLabel'

(iwgtk:23485): Gtk-CRITICAL **: 06:45:31.028: gtk_label_set_text: assertion 'GTK_IS_LABEL (self)' failed

(iwgtk:23485): GLib-CRITICAL **: 06:45:31.028: g_variant_unref: assertion 'value != NULL' failed

(iwgtk:23485): GLib-GIO-CRITICAL **: 06:45:31.029: g_dbus_proxy_get_cached_property: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(iwgtk:23485): GLib-CRITICAL **: 06:45:31.029: g_variant_get_string: assertion 'value != NULL' failed
Segmentation fault (core dumped)

My suspicion is that these errors were generated in network_set(), which implies that network_set() had been called on a freed Network object. I'm not exactly sure how that could happen, but perhaps clearing the network table as each network proxy goes down (as opposed to when the "scanning" property changes) might be more robust.

J-Lentz commented 2 years ago

Most likely fixed by 59f957b7a625e3b052ed47d9a937776c1335af8c. Will re-open if this segfault is ever observed again.