Skip to content

🐛 Resizer in frameOutput fails on Samsung Galaxy Z Flip7 #3829

@rudolfmedula

Description

@rudolfmedula

Prerequisites

Reproduction

https://github.com/rudolfmedula/react-native-vision-camera/pull/1/changes

Steps to reproduce

on Android Samsung Galaxy Z Flip7 F766B

  • run sample app with changes from the linked repro repo

What did you expect to happen?

resizer.resize(frame) returns resized frame

What actually happened?

Resizer crashes with Failed to allocate Vulkan memory for the imported AHardwareBuffer image. (VkResult -13).', {}

Affected platforms

Android (device)

Device(s) affected

Samsung Galaxy Z Flip7 F766B

VisionCamera version

5.0.4

React Native version

0.84.0

React Native architecture

New Architecture (Fabric / bridgeless)

Features being used

  • Preview
  • Photo capture
  • Video capture
  • Frame Processors (worklets)
  • Skia Frame Processors
  • Code/Barcode Scanner
  • Location metadata
  • Multi-cam
  • Depth data
  • HDR / custom dynamic range
  • Custom format / FPS / resolution

Relevant logs / stack trace

2026-04-30 11:39:38.719   991-20949 [[@]]CameraProperty     ven...re.camera.provider-service_64  I  [setImageSize:828] CaptureSize[0] : 4080 3060
2026-04-30 11:39:38.719   991-20949 [[@]]CameraProperty     ven...re.camera.provider-service_64  I  [setImageSize:839] MaxCaptureSize[0] : 4080 3060
2026-04-30 11:39:38.719   991-20949 [[@]]CameraProperty     ven...re.camera.provider-service_64  I  [setImageSize:828] CaptureSize[1] : 4000 3000
2026-04-30 11:39:38.719   991-20949 [[@]]CameraProperty     ven...re.camera.provider-service_64  I  [setImageSize:839] MaxCaptureSize[1] : 4080 3060
2026-04-30 11:39:39.302 20739-20832 ReactNativeJS           com...o.nitro.camera.example.simple  E  'Resizer.resize(...): Failed to allocate Vulkan memory for the imported AHardwareBuffer image. (VkResult -13).', {}

Additional context

No response

Submission

  • The reproduction I linked is either (preferred) a PR against this repo that adds a failing harness test following the harness-tests README, or (fallback) a public repo that reproduces the bug on a fresh clone. I understand the issue will be closed without one.
  • I pasted logs as text (not screenshots).
  • I wrote this report in my own words. I did not paste AI-generated descriptions of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions