Native module registration triggers a crash inside Hermes' own compiler during valueUnpacker's eval(), on iOS 26 + New Architecture

Author: Tadeusz-Wodziak-KalwakCreated Sep 21, 2026Updated Sep 24, 2026
LabelsMissing reproPlatform: iOSMissing infoargent-cloud

Title

Native module registration triggers a crash inside Hermes' own compiler during valueUnpacker's eval(), on iOS 26 + New Architecture

Environment

  • expo: 54.0.36
  • react-native: 0.81.5
  • react-native-reanimated: 4.1.7 (also reproduced on the ~4.1.1 range resolving to the same 4.1.7)
  • react-native-worklets: reproduced on both 0.5.1 and 0.8.3 (the newest version this reanimated release's peer range accepts, "react-native-worklets": "0.5 - 0.8") — version is not the variable
  • New Architecture: mandatory for this app ([email protected] refuses to build with newArchEnabled: false — [Reanimated] Reanimated requires the New Architecture to be enabled), so an old-architecture comparison could not be obtained
  • Device: iPhone 15 Pro Max, iOS 26.6.2 (23G90), physical device (not simulator)
  • Engine: Hermes (default)
  • Distribution: EAS Build, internal/ad-hoc, Release configuration

Summary

Our app crashes on launch, every time, only in builds that also link Apple's Expo Calendar module (expo-calendar, unrelated to Reanimated/Worklets). The crash is not inside expo-calendar's own code — it is a memory fault inside Hermes' own bytecode compiler, reached through react-native-worklets' valueUnpacker.js eval() call, which we believe Reanimated's UI-runtime bootstrap triggers at startup.

Reproduction / bisection

  • A build without expo-calendar linked (excluded via expo.autolinking.ios.exclude in package.json) launches cleanly.
  • The identical commit, differing only by re-linking expo-calendar on iOS, crashes on every launch. Confirmed twice independently via a real-device bisection (two separate EAS builds, same result both times).
  • Bumping react-native-worklets from 0.5.1 to 0.8.3 (the newest version our [email protected] accepts) did not change the outcome — identical crash, ruling out an already-fixed point-release bug as the explanation.
  • Toggling newArchEnabled: false to test whether this is New-Architecture- specific was not possible: RNReanimated.podspec refuses to build at all without the New Architecture enabled.
  • The crashing binary's diff, compared to the last known-good build, adds exactly one native module: expo-calendar. Nothing in expo-calendar touches Reanimated, Worklets, or Hermes directly — the only plausible connection is native module registration order/timing at startup.

Crash signature (from the device's own .ips, Hermes frames already

symbolicated by the framework's own embedded symbols)

The JS thread (com.facebook.react.runtime.JavaScript) faults with:

esr: (Data Abort) byte write Translation fault

inside:

hermes::hbc::LowerConstruction::runOnFunction(hermes::Function*)
  <- hermes::PassManager::run(hermes::Module*)
  <- hermes::hbc::generateBytecodeModule(...)
  <- hermes::hbc::BCProviderFromSrc::createBCProviderFromSrcImpl(...)
  <- hermes::hbc::BCProviderFromSrc::createBCProviderFromSrc(...)
  <- hermes::vm::evalInEnvironment(...)
  <- hermes::vm::directEval(...)
  <- hermes::vm::Interpreter::caseDirectEval(...)
  <- hermes::vm::Interpreter::interpretFunction<false,false>(...)
  <- hermes::vm::Runtime::interpretFunctionImpl(...)
  <- hermes::vm::JSFunction::_callImpl(...)
  <- facebook::hermes::HermesRuntimeImpl::call(...)

which we traced to valueUnpacker.js's release-mode path:

javascript
workletFun = eval('(' + initData.code + '\n)')

Immediately around this call, the app-binary frames (unsymbolicated in the raw report, app-side offsets omitted here) show a short repeating cycle, consistent with a chain of nested worklet closures being unpacked recursively rather than a single flat call.

Separately, a second thread aborts via expo.controller.errorRecoveryQueue (abort() after an uncaught NSException) — we believe this is the app's error-recovery mechanism reacting to the primary fault above, not an independent cause.

Why we're filing this here

The crash mechanism (a Data Abort inside Hermes' own IR-lowering pass while compiling eval'd worklet source) looks closely related to two existing open reports that are currently blocked on "Missing repro":

  • #10378 — a race condition where getValueUnpacker is invoked before worklets serialization is fully initialized, matching our own case: something happening earlier (module registration) changing the timing of worklets' own startup enough to expose the bug.
  • #9443 — an iOS-26-specific valueUnpacker/Hermes crash, also without a reliable repro.

We do have a minimal, isolated reproduction. A build stripped down to the bare expo-router template plus exactly these two packages (expo-calendar ~15.0.8 and react-native-reanimated/worklets, nothing else from our app — no Sentry, no other native modules, no business logic) crashes identically on the same device. This rules out an interaction with anything else in our dependency tree; the two packages above are sufficient on their own to reproduce it. We can put together a clean, sanitized standalone repro repo if that would help track this down further.

What we've ruled out

  • A stale/already-fixed Worklets version (reproduced on both 0.5.1 and the newest 0.8.3 release compatible with our reanimated version).
  • A CocoaPods/dependency-resolution mismatch (both the crashing and the clean build compile from the identical node_modules/react-native-worklets and react-native-reanimated source paths, a single RNWorklets pod target in both — no duplicated/divergent copy).
  • expo-calendar's own code being directly on the crashing call stack — it isn't; the fault is entirely inside Hermes/Worklets machinery, which is why we suspect a startup-timing or memory-corruption interaction rather than a direct call-path collision.

Happy to provide more detail (a full, redacted crash log; a sanitized standalone repro repo) on request.

Source: software-mansion/react-native-reanimated