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 scientific notation bug in interpolation #102

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

Conversation

drcmda
Copy link
Contributor

@drcmda drcmda commented May 8, 2018

There is currently a bug in animated that is causing deeply nested side-effects.

This line will in some situations return a scientific number, which stringShapeRegex can't track, it thereby creates a wrong outputShape (for instance: [-7]) which causes trouble later on. Basically it starts adding Nan to the interpolated result, so output can look like this: 1-e7NaNNaNNaNNaNNaNNaNdeg - and it's adding up, blowing up memory.

I am not sure if the new regexp is covering all cases, but it fixed the problems i've had (an AnimatedValue visually stopped working).

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.

None yet

1 participant