GNOME Bugzilla – Bug 795191
g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed
Last modified: 2018-04-13 08:15:11 UTC
When you are in the home directory through Thunar File Manager, journalctl reports every second: % sudo journalctl -f Апр 12 11:18:07 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:07 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:07 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Апр 12 11:18:10 archlabs gvfsd-metadata[2806]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed
Hmm, that was probably caused by the commit c2d8564, but I wonder what is wrong here...
It happens e.g. for tmpfs, so e.g. "gio info /run" triggers this on Fedora. Old udev code just silently returned NULL, the new one returns those assertions...
Created attachment 370853 [details] [review] metadata: Prevent usage of NULL if GUdevDevice is not found Code to determine tree name from device has been recently ported from udev to gudev by commit c2d8564. Unfortunately, the gudev code floods logs by the following messages if device is not found (it can happen e.g. for tmpfs): g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed Udev code silently returned if NULL device was used, however, corresponding gudev code prints the mentioned messages. Let's prevent usage of NULL device in order to prevent those messages.
Created attachment 370855 [details] [review] metadata: Prevent usage of NULL if GUdevDevice is not found
Attachment 370855 [details] pushed as d7e1397 - metadata: Prevent usage of NULL if GUdevDevice is not found Going to push into stable as well...