Skip to content

Pixel 8 (16KB page size mode) crash on startup: libBulletSoftBody.so program alignment (8192) < system page size (16384) → 16KB test fails #418

@reyee33

Description

@reyee33

Pixel 8 (16KB page size mode) crash on startup: libBulletSoftBody.so alignment (8192) < page size (16384) → 16KB test fails

Summary

On Pixel 8 with 16KB page size mode enabled, the app crashes during startup while loading a native library. The linker reports the ELF program alignment is 8192 (8KB), which is smaller than the system page size 16384 (16KB). This causes dlopen to fail and the 16KB compatibility test to fail.

Environment

  • Device: Pixel 8
  • Mode: 16KB page size enabled
  • App package: com.arproject
  • Dependency: @reactvision/react-viro: ^2.50.1 react-native": "0.83.1"
  • ABI: arm64-v8a
  • Observed time: 2026-01-05 13:53 (logcat local time)

Steps to Reproduce

  1. Enable 16KB page size mode on Pixel 8.
  2. Install and launch the app (com.arproject).
  3. App crashes during startup when loading native modules.

Expected Behavior

The app should launch normally on 16KB page size devices/environments and the 16KB compatibility test should pass.

Actual Behavior

The app crashes on launch with UnsatisfiedLinkError due to dlopen failure.

Key Logs / Root Cause

2026-01-05 13:53:22.518  8962-8984  linker  com.arproject  E  "/data/app/.../base.apk!/lib/arm64-v8a/libBulletSoftBody.so" program alignment (8192) cannot be smaller than system page size (16384)
2026-01-05 13:53:22.519  8962-8984  AndroidRuntime  com.arproject  E  FATAL EXCEPTION: pool-3-thread-1 (Ask Gemini)
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/.../base.apk!/lib/arm64-v8a/libBulletSoftBody.so" program alignment (8192) cannot be smaller than system page size (16384)
    at java.lang.Runtime.loadLibrary0(Runtime.java:1090)
    at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
    at java.lang.System.loadLibrary(System.java:1765)
    at com.viromedia.bridge.module.MaterialManager.<clinit>(MaterialManager.java:58)
    at com.viromedia.bridge.ReactViroPackage.createNativeModules(ReactViroPackage.java:111)
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions