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

Fixed random crash when creating client #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mattbeghin
Copy link

@mattbeghin mattbeghin commented Sep 26, 2022

In MadMapper, when creating / deleting the syphon client multiple times per second for 5 minutes while server is pushing frames at 60 FPS, I generally get a crash because we get a new frame from server before "SyphonClientBase::_handler" variable is initialized.
This patch solved the issue.

Set handler before initializing connection connection would get a frame before "_handler" is valid
@bangnoise
Copy link
Member

Hey - thanks for this. I don't see how the handler can be being invoked before the call further down to -addInfoClient:isFrameClient:. I will try to recreate the issue.

@bangnoise bangnoise self-assigned this Sep 27, 2022
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.

2 participants