Skip to content

Crash in libtensorflowlite_jni.so with 16 KB alignment #1006

@8f2688ba47b2

Description

@8f2688ba47b2

System information

  • Stripe CardScan SDK version: com.stripe:stripecardscan:21.24.3
  • Device/ABI: x86_64 (crash observed in libtensorflowlite_jni.so)

Issue
After updating our Android build to support 16 KB native library alignment, our app crashes when interacting with UI that triggers TFLite via the CardScan SDK.

Steps to reproduce

  1. Integrate Stripe’s CardScan SDK (version 21.24.3).
  2. Enable 16 KB native library alignment in the Android build.
  3. Run the app and perform a card scan.
  4. Trigger one of the following:
    • Click the Close button in the upper-left corner, OR
    • Use the “<” back navigation button in the bottom navigation bar.

Observed behavior
The app crashes with a native crash inside:

  • We reported this issue on Stripe’s CardScan GitHub repo, but based on the crash logs the root cause appears to be in the TensorFlow Lite JNI shared object.

Please let us know if you need more information on this.

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