Skip to content

Conversation

@jhery-rdo
Copy link

Fix subscribe_to_event_group() registering callback on wrong actor

Summary

ModuleBase.subscribe_to_event_group() registers the callback on event_source.remote instead of the retrieved event_group, causing event callbacks to never fire.

The Bug

In module.py line 391:

def subscribe_to_event_group(self, event_source, callback_method):
    event_group = self.connection.request_receive(event_source.remote, get_event_group_atom())[0]
    return self.connection.link.add_message_callback(event_source.remote, callback_method)
    #                                                ^^^^^^^^^^^^^^^^^^^ BUG: should be event_group

The method correctly retrieves the event_group actor but then ignores it, registering the callback on event_source.remote instead.

The Fix

def subscribe_to_event_group(self, event_source, callback_method):
    event_group = self.connection.request_receive(event_source.remote, get_event_group_atom())[0]
    return self.connection.link.add_message_callback(event_group, callback_method)
    #                                                ^^^^^^^^^^^^ FIXED: use event_group

Impact

  • Before: Event subscriptions via subscribe_to_event_group() were non-functional. Callbacks were registered on the wrong actor and events were never delivered.
  • After: Event subscriptions work as intended. Callbacks receive events from the event group.

Discovery

Found while implementing event-driven bookmark detection in a Python plugin. Studio-level session events were not being received despite successful subscription. Tracing the issue revealed the callback was registered on the wrong actor.

kenmcgaugh and others added 30 commits November 26, 2025 06:40
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
…annotation_serialiser.cpp.

Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
…List, and Timecode.

Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
…ed as MS_MISSING. This allows for media_sources to be provided by http(s).

Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
…ore file exists in a thumbnail cache directory.

Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
…sage.

Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
…data value through xstudio's file-path remapping mechanism. Likewise, all the search paths within the config are also passed through file path remapping.

Note that any path set via the OCIO environment variable is left as-is.

Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
…ur management metadata. We use this to set the working_space to "raw" for media we want to remain unmanaged but still allow for the global view to be set without causing error messages.

Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
… Ctrl+1 through Ctrl+9 (linux) and each select the the corresponding view for the current display. Under MacOS these are Cmd+1 through Cmd+9.

Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
Signed-off-by: Thomas Manceau <manceau.thomas19@gmail.com>
Signed-off-by: Thomas Manceau <manceau.thomas19@gmail.com>
Updated version of openimageio from 2.5.19.1 to 2.5.16.0#1.

Signed-off-by: Thomas Manceau <manceau.thomas19@gmail.com>
…ure_remove_media_sources

Add ability to programatically remove media_source's from media items.
…_fixes_additions

Miscellaneous fixes and additions
…_additions

OCIO view hotkeys, working_space, and file-path remapping
…ure_disable_http_ssl_verify

Allow for optionally disabling SSL verification.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 30, 2026

CLA Missing ID CLA Not Signed

tedwaine and others added 2 commits February 2, 2026 11:28
Signed-off-by: Ted Waine <ted.waine@gmail.com>
@tedwaine
Copy link
Contributor

tedwaine commented Feb 4, 2026

Hi @nosmose - thanks for this. Would you be able to do the paperwork on the 'EasyCLA' authorisation? Until you do that I can't run the merge. The other problem is that for some reason github is telling me that you're merging 38 commits and changing 300+ files!! Did you mean to do the PR into the develop branch?

@jhery-rdo jhery-rdo force-pushed the fix/event-subscription-group branch from 6031b2e to c02f0c9 Compare February 5, 2026 15:04
@jhery-rdo
Copy link
Author

Thanks @tedwaine will close this one and make a cleaner one

@jhery-rdo jhery-rdo closed this Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants