Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[BUG] [P1] Native Crash when closing "Card Scan" #11577

Copy link
Copy link
@sonrohan

Description

@sonrohan
Issue body actions

Summary

When clicking "x" within the card scan camera x activity, sometimes a crash will occur.

What is blocked by this issue?

If my application crashes because a user canceled card scan, they are not able to check out.

Code to reproduce

We are just using a standard issue Stripe-Android 21.26.1, using implementation for the base sdk and card scan (using the same version).

The only note worthy thing here is that we exclude compose navigation dependency

exclude(
    group = "androidx.navigation",
    module = "navigation-compose",
)

because including this causes a navigation shadow conflict with Compose Destination library that causes its own crash.

https://github.com/raamcosta/compose-destinations

Excluding navigation allows the app to work normally. I am not sure if this is related to the card scan crash or not, because without excluding this I am not able to make it to the checkout at all.

Android version

Android API 35.

Impacted devices

Tried on Emulator, and a physical Samsung device. Both reproduced.

Installation method

Through Android Studio/ADB.

Dependency Versions

kotlin: 2.2.0
stripe-android: 21.26.1
Android Gradle Plugin: 8.11.0
Gradle: 8.14.2

SDK classes

stripecardscan

Video

demo.mp4

Other information

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x118 in tid 22667 (DefaultDispatch), pid 2240

logs.txt

My motivation for upgrading was to support 16kb paging in our app, but I believe this could be a potential camerax issue. It seems that cardscan was migrated to camerax in a timeline that makes it impossible to support 16kb paging without having this issue. Please let me know if I am wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.