Open
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}
/>
);