-
Notifications
You must be signed in to change notification settings - Fork 690
Description
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
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.