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

Fix infinite recursion in SoBaseKit #85 #86

Merged
merged 1 commit into from
Oct 1, 2021
Merged

Conversation

sebjf
Copy link
Contributor

@sebjf sebjf commented Oct 1, 2021

This PR detects when the 'this' attribute is requested from SoBaseKit and returns the SoNode implementation.

Currently SoBaseKit.__getattr__() calls SoBaseKit_getNodekitCatalog() unconditionally, however SoBaseKit_getNodekitCatalog itself results in a request for the 'this' attribute, leading to infinite recursion. At the moment this error is handled silently upstream, but can present an issue when using debuggers such as debugpy (#85). This fix handles the 'this' attribute before this happens.

@looooo looooo merged commit 23ef3e6 into coin3d:master Oct 1, 2021
@looooo
Copy link
Collaborator

looooo commented Oct 1, 2021

thanks @sebjf

@sebjf sebjf deleted the ISSUE_85 branch October 1, 2021 10:29
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