g_volume_get_mount returns NULL value after g_volume_mount_finish is called with no error
In Ubuntu this is one of the most recurring crashes, this is the downstream bug, and while it happens in nautilus, the actual affected component is GtkPlaces.
Stack trace is here. Howeve what's intresting here is that we arrive at https://gitlab.gnome.org/GNOME/gtk/blob/e08e15b/gtk/gtkplacesview.c#L1311 and this fails because mount
is actually NULL
.
While gtk could be protect by this case, it's quite weird that it happens, as basically we can't reach that line if any GError is emitted (a part from the non-error G_IO_ERROR_ALREADY_MOUNTED
).
However, from journalctl errors, there's this line showing that might be somewhat interesting:
Apr 17 16:45:29 hostname udisksd[1014]: Failed to setup systemd-based mount point cleanup: Process reported exit code 5: Failed to start clean-mount-point@media-username-12F6CC77F6CC5D1B.service: Unit media-username-12F6CC77F6CC5D1B.mount not found.
Apr 17 16:45:29 hostname nautilus[11486]: g_mount_get_default_location: assertion 'G_IS_MOUNT (mount)' failed
Apr 17 16:45:29 hostname org.gnome.Nautilus[2775]: **
Apr 17 16:45:29 hostname org.gnome.Nautilus[2775]: ERROR:../src/nautilus-file.c:721:nautilus_file_get_internal: assertion failed: (location != NULL)
So, I'm not quite sure what's going on. As per the user report the location is actually mounted, although maybe with some delay.