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

OpenColorIOTransformBinding : Add missing ScopedGILRelease #5526

Conversation

johnhaddon
Copy link
Member

This was causing hangs when opening old Gaffer files in 1.3.x, if the user's default layout was such that the Viewer would start a compute as soon as the file was opened. In this case, acquireDefaultConfigPlug() was still holding the GIL while creating the plug, and creating the plug would request cancellation of the compute, and the compute couldn't cancel if it was waiting for the GIL.

This was causing hangs when opening old Gaffer files in `1.3.x`, if the user's default layout was such that the Viewer would start a compute as soon as the file was opened. In this case, `acquireDefaultConfigPlug()` was still holding the GIL while creating the plug, and creating the plug would request cancellation of the compute, and the compute couldn't cancel if it was waiting for the GIL.
@johnhaddon johnhaddon requested a review from ericmehl November 3, 2023 10:53
@johnhaddon johnhaddon self-assigned this Nov 3, 2023
Copy link
Collaborator

@ericmehl ericmehl left a comment

Choose a reason for hiding this comment

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

LGTM

@ericmehl ericmehl merged commit 2e26fac into GafferHQ:1.3_maintenance Nov 3, 2023
4 checks passed
@johnhaddon johnhaddon deleted the openColorIOConfigPlugGILRelease branch November 8, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants