Moving to g_return_val_if_fail might avoid the crash, but only hides the bug. The bug is clearly somewhere else, which is calling `box_remove_all_children (NULL)`.
If the same bug was present in the latest version, you would still see the warning message; but you do not, so the latest version is properly fixed. I've looked into the bug, and it turned out to be happening because the disposal code when closing the window with the non-last tab selected would try to change the active tab mid-destruction. I've proposed an actual fix here: https://salsa.debian.org/gnome-team/nautilus/-/merge_requests/34 The bug is not present in the Gtk4 version because: * It uses AdwTabView instead of GtkNotebook * Even if it still used GtkNotebook, that was changed in a way that wouldn't trigger this bug anymore. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2011350 Title: ERROR:../src/nautilus-gtk4-helpers.c:116:gtk_widget_get_first_child: assertion failed: (GTK_IS_CONTAINER (widget)) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/2011350/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
