Skip to content

Different Issues (Android and iOS) with useSkiaFrameProcessor #2964

Open
@maxximee

Description

@maxximee

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:
Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions