mrousavy / react-native-vision-camera

πŸ“Έ A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.56k stars 1.1k forks source link

πŸ› Frame Processor Error: offscreenTextures.value.push is not a function (it is undefined) #3277

Closed tomerh2001 closed 1 week ago

tomerh2001 commented 1 week ago

What's happening?

I am trying to open the camera, but I am getting this error:

 (NOBRIDGE) ERROR  [Frame Processor Error: offscreenTextures.value.push is not a function (it is undefined)]

Reproduceable Code

const {hasPermission, requestPermission} = useCameraPermission();
const device = useCameraDevice('back');
const format = useCameraFormat(device, Templates.FrameProcessing);

    const frameProcessor = useSkiaFrameProcessor(frame => {
        'worklet';
    },
    [
    ]);

return <Camera
                ref={camera}
                photo
                isActive={isCameraActive}
                style={styles.camera}
                device={device}
                pixelFormat='yuv'
                frameProcessor={frameProcessor}
                format={format}
                resizeMode='contain'
                outputOrientation='landscape-right'
                {...properties}
                onLayout={event => setCameraLayout(event.nativeEvent.layout)}
                onInitialized={() => setIsCameraInitialized(true)}
            />

Relevant log output

(NOBRIDGE) ERROR  [Frame Processor Error: offscreenTextures.value.push is not a function (it is undefined)]
 (NOBRIDGE) WARN  ImmutableStateInvariantMiddleware took 503ms, which is more than the warning threshold of 32ms. 
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
It is disabled in production builds, so you don't need to worry about that.
 (NOBRIDGE) ERROR  [Frame Processor Error: offscreenTextures.value.push is not a function (it is undefined)]

Camera Device

(NOBRIDGE) LOG  {
  "formats": [],
  "sensorOrientation": "landscape-left",
  "hardwareLevel": "full",
  "maxZoom": 30,
  "minZoom": 0.5563247799873352,
  "maxExposure": 24,
  "supportsLowLightBoost": true,
  "neutralZoom": 1,
  "physicalDevices": [
    "wide-angle-camera",
    "wide-angle-camera",
    "ultra-wide-angle-camera",
    "telephoto-camera",
    "telephoto-camera",
    "telephoto-camera"
  ],
  "supportsFocus": true,
  "supportsRawCapture": false,
  "isMultiCam": true,
  "minFocusDistance": 10.500000100135805,
  "minExposure": -24,
  "name": "0 (BACK) androidx.camera.camera2",
  "hasFlash": true,
  "hasTorch": true,
  "position": "back",
  "id": "0"
}

Device

Pixel 7 Pro

VisionCamera Version

4.6.0

Can you reproduce this issue in the VisionCamera Example app?

No, I cannot reproduce the issue in the Example app

Additional information

maintenance-hans[bot] commented 1 week ago

Guten Tag, Hans here! This issue does not provide enough information for us to investigate further. It seems like you may be dealing with a potential bug, but please include the relevant logs from adb logcat to help mrousavy troubleshoot this error effectively. Remember, if you want to help support the project, consider becoming a sponsor here. Thank you!

Note: If you think I made a mistake by closing this issue, please ping @mrousavy to take a look.