Skip to content

Conversation

@alexandrius
Copy link

@alexandrius alexandrius commented Apr 24, 2025

Summary

Skia has some advanced integration with reanimated. __reanimated_workletCode is somewhere attached to the already UI runtime compatible skia code. Which causes our code misbehave. I added additional check to make sure worklet code is only property in the object.

@kewde will know much better but this trick fixes the problem

auto object = value.asObject(rt);
jsi::PropNameID prop = workletCodePropName(rt);
if (object.hasProperty(rt, prop)) {
if (object.hasProperty(rt, prop) && object.getPropertyNames(rt).length(rt) == 0) {
Copy link
Author

Choose a reason for hiding this comment

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

compare to 0 since Symbol isn't accounted for

Copy link

@kewde kewde left a comment

Choose a reason for hiding this comment

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

utACK

will revisit, still don't understand it a 100% though

@mvayngrib mvayngrib merged commit 54a3454 into exodus-3.16.7 Apr 24, 2025
11 checks passed
@mvayngrib
Copy link
Collaborator

@exodus/[email protected]

@alexandrius
Copy link
Author

@kewde yeah me neither. This is just symptom workaround not the cause. Works perfectly though

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.

4 participants