Crash when a <Drawing /> component is unmounted / re-mounted #1781
Unanswered
RCNNT-Industries
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Drawing is a special component because it calls back into the JS thread, any change you can rewrite your code to not use it? Let us know what you are trying to achieve here. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello people!
I've got a hard time to make a reproducible demo of this, but I get a crash when a Drawing gets mounted, or possibly unmounted.
The results is this iOS simulator stacktrace:
Attempting to update to the next Expo SDK (49), and porting to Reanimated 3, so there are a fair amount of changes in my code 😅
I'm using Reanimated 3
useSharedValue
instead of SkiasuseValue
inside 10-ish<Drawing />
, perhaps that's an issue?The Skia bit is a custom interactive graph with virtualized scrolling, rendering inside a bunch of gesture handlers. The data lives JS-side in redux, but gets useSharedValue'd into a simplified array, then another smaller one that's dependent on the scroll (the virtualized bit).
If I remove the Skia Drawing bits, then it doesn't crash at all, so it feels like that's the culprit. Any ideas? 😅
Beta Was this translation helpful? Give feedback.
All reactions