Skip to content

Sentry Hypersdk causing crash in IOS 26 on camera open #5119

@Kartik-tripathi-techtree

Description

What React Native libraries do you use?

RN New Architecture

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

6.20.0

How does your development environment look like?

⬇  Place the `npx react-native@latest info` output here. ⬇

System:
  OS: Linux 6.14 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
  CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
  Memory: 4.16 GB / 15.31 GB
  Shell:
    version: 5.2.21
    path: /bin/bash
Binaries:
  Node:
    version: 22.18.0
    path: /usr/bin/node
  Yarn:
    version: 1.22.22
    path: ~/Desktop/Bitbucket/CHB/CHB_hot_fixes/chb_app_react/node_modules/.bin/yarn
  npm:
    version: 10.9.3
    path: /usr/bin/npm
  Watchman:
    version: 4.9.0
    path: /usr/bin/watchman
SDKs:
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
Languages:
  Java:
    version: 17.0.16
    path: /usr/lib/jvm/java-17-openjdk-amd64/bin/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.78.2
    wanted: 0.78.2
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: false


Sentry.init()

Sentry.init({
  dsn: '<redacted>',
  environment: Config.ENV,
  sendDefaultPii: true,
  replaysSessionSampleRate: 0.1,
  replaysOnErrorSampleRate: 1,
  integrations: [Sentry.mobileReplayIntegration(), Sentry.feedbackIntegration()],
});

Steps to Reproduce

  1. Open camera to capture image on IOS 26 causing a crash.
  2. Library used for opening react-native-image-crop-picker .
    23 Working fine for all other versions

Expected Result

The camera should open and image should be captured and should be uploaded using api .

Actual Result

The app is crashing as soon as camera is opening

Logs-
EXC_BREAKPOINT: Fatal error: Use of unimplemented initializer 'init(layer:)' for class 'CameraUI.ModeLoupeLayer'

system
exception
stack-trace
frame
function-[UIScrollView contentInset]
typeEXC_BREAKPOINT

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions