Skip to content

Fix rare crash in animation value deallocation / race condition #414

Closed

Description

When an animation value is updated from a clock, the clock delivers the notification on the main thread - and any derived values are updated on the javascript thread.

There is a race condition that we see in the new Path interpolating example if we remove the line in runTiming where we reset the value.animation to undefined in the callback, it crashes.

The reason is that when we are notified on the native thread and then dispatch an update on the JS thread there might be a situation where the object's destructor is called before the JS operation has finished. This will cause a crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions