Shopify / Shopify/react-native-skia
Different Issues (Android and iOS) with useSkiaFrameProcessor
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 8.6k
- Forks
- 647
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 35
Description
Description
Android
Samsung S8 with android 9:
Exception:
ERROR Frame Processor Error: Exception in HostFunction: Failed to convert NativeBuffer to SkImage!, js engine: VisionCamera
Some other devices, for example Pixel 9 with android 15:
Black Screen:
iOS
Memory Leak, memory increase until app crashes:
https://youtube.com/shorts/kShery3nVW0
React Native Skia Version
1.11.7
React Native Version
0.76.7
Using New Architecture
- Enabled
Steps to Reproduce
Start sample app linked below, just add useSkiaFrameProcessor to vision-camera.
Relevant dependencies:
"react-native-vision-camera": "4.6.3"
"react-native-worklets-core": "1.5.0"
Snack, Code Example, Screenshot, or Link to Repository
https://github.com/maxximee/skiaIssues
const frameProcessor = useSkiaFrameProcessor((frame) => {
'worklet';
frame.render();
}, []);
return (
<Camera
style={StyleSheet.absoluteFill}
device={device}
isActive={true}
frameProcessor={frameProcessor}
/>
);
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked skiaIssues sample app and its useSkiaFrameProcessor callback, using the listed React Native Skia, VisionCamera, and Worklets Core versions. Reproduce the Android NativeBuffer exception or black screen and the iOS memory increase, then verify that the affected behavior is resolved on the reported devices and platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- computer-graphics, mobile
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100