Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choreography plugins: Only call update_ui() in Capture #1928

Merged
merged 4 commits into from
Jun 25, 2020

Conversation

papr
Copy link
Contributor

@papr papr commented Jun 24, 2020

Fixes HMD3DChoreographyPlugin crash in Service, as Service does not initialize any plugin UI. See dedicated change commit: e2d5170

papr added 2 commits June 24, 2020 17:53
Fixes HMD3DChoreographyPlugin crash in Service, as Service does not initialize any plugin UI.
@papr papr added the type: bug label Jun 24, 2020
@papr papr requested review from romanroibu and pfaion June 24, 2020 15:56
@papr papr self-assigned this Jun 24, 2020
Copy link
Contributor

@pfaion pfaion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting logspams with

service - [DEBUG] calibration_choreography.hmd_plugin: Disregarding notification: notify.service_process.ui.should_update

Maybe we should remove this debug message from all choreo plugins? It's in base_plugin and hmd_plugin.
It doesn't really tell us anything.

def on_notify(self, note_dict):
    # ...
    try:
        note = ChoreographyNotification.from_dict(note_dict)
    except ValueError:
        note_name = note_dict.get("topic", None) or note_dict.get("subject", None)
        logger.debug(f"Disregarding notification: {note_name}")
        return
    # ...

papr added 2 commits June 25, 2020 10:25
Given that every plugin receives every notification, this debug message results in a lot of unwanted log messages. Therefore, the plugin will simply ignore unknown/unexpected notifications.
Given that every plugin receives every notification, this debug message results in a lot of unwanted log messages. Therefore, the plugin will simply ignore unknown/unexpected notifications.
@papr papr merged commit f9db20b into master Jun 25, 2020
@pfaion pfaion deleted the fix_hmd3d_choreo_in_service branch June 25, 2020 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants