The ffi.load_enum function uses GObject.TypeClass.ref:
|
local type_class = GObject.TypeClass.ref(gtype) |
According to the glib documentation, the ref function has been deprecated since glib 2.84, and apparently removed in glib 2.86. The documentation instructs to use TypeClass.get instead.
Just changing ref to get fixes the issue for me, but such a change would mean glib >= 2.84 is required.