Skip to content

Workaround floating object test failures in minimal-meson build

Arjan Molenaar requested to merge fix-floating-tests into main

GLib gives an error in debug mode when a floating object is unref'd and finalized.

GLib raises the following error:

(moo:4633): GLib-GObject-CRITICAL **: 17:50:19.992: A floating object 
GInitiallyUnowned 0x56079e9548b0 was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().

I haven't found a way to safely sink the gobject instance without breaking the tests.

Maybe the best way is to just ignore those for the minimal-meson build for now?

Edited by Arjan Molenaar

Merge request reports