handleMemoryPressure crashes apps on IOS with EXC_BAD_ACCESS #2675
Unanswered
dev-john-nguyen
asked this question in
Q&A
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Noticed every time I mount the component there's a spike in memory, but when I unmount it doesn't release. I tried to trigger gc on unmount, but no luck in releasing the memory. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I believe this issue might be related to this discussion facebook/hermes#1518.
I'm working on an application that uses the react-native-vision-camera library (https://github.com/mrousavy/react-native-vision-camera) along with the useSkiaFrameProcessor hook to render drawings on camera frames. I'm encountering random crashes exclusively on iOS. The issue is difficult to reproduce in a another project, but it consistently occurs in this one, possibly due to the larger project size. The app works fine with useFrameProcessor, but we need the ability to draw on the frames. I tried using Skia Pictures to draw on the canvas to check if the issue was related to useSkiaFrameProcessor hook itself, but I’m still experiencing crashes. Any advice would be greatly appreciated!
Error log below.
Here's some code:
Project Dependencies
[email protected]
[email protected]
@shopify/[email protected]
[email protected]
Beta Was this translation helpful? Give feedback.
All reactions