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 a hang due to limits! being called recursively #3570

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

Sagnac
Copy link
Contributor

@Sagnac Sagnac commented Jan 27, 2024

Description

Fixes #3564

Restricting the sans axis arguments to the expected types prevents the method from being called in a non-terminating loop which was the case if, for example, the function was called with an indexed Figure instead of an Axis; calling limits! without a current axis also resulted in a stack overflow.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Added unit tests for new algorithms, conversion methods, etc.

Fixes MakieOrg#3564

Restricting the sans axis arguments to the expected types prevents the
method from being called in a non-terminating loop which was the case
if, for example, the function was called with an indexed Figure instead
of an Axis; calling limits! without a current axis also resulted in a
stack overflow.
Copy link
Member

@jkrumbiegel jkrumbiegel left a comment

Choose a reason for hiding this comment

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

Thanks!

@jkrumbiegel jkrumbiegel merged commit 6bba224 into MakieOrg:master Jan 27, 2024
16 checks passed
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.

limits! hangs when being passed a an indexed Figure, not an Axis
2 participants