Skip to content

infinoted will hang after config reload because the types cannot be registered after plugin reload #31

@pkern

Description

@pkern

When infinoted receives a SIGHUP it will reload its configuration. This involves unloading and subsequently reloading all plugins. Unfortunately if note-text had been in use before and you reload the plugin, it will attempt to re-register the type the next time someone opens a document:

[Thu Jan 12 10:44:32 2023] WARNING: GLib-GObject: cannot register existing type 'InfTextBuffer'
[Thu Jan 12 10:44:32 2023]   ERROR: GLib-GObject: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
[Thu Jan 12 10:44:32 2023]   ERROR: GLib: g_once_init_leave: assertion 'result != 0' failed
[Thu Jan 12 10:44:32 2023] WARNING: GLib-GObject: cannot register existing type 'InfTextDefaultBuffer'
[Thu Jan 12 10:44:32 2023] WARNING: GLib-GObject: cannot add private field to invalid (non-instantiatable) type '<invalid>'
[Thu Jan 12 10:44:32 2023]   ERROR: GLib-GObject: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

This hangs the I/O loop completely and no client can connect anymore and SIGTERM does not work anymore either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions