Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Crash in Image.kt #6116

Closed
SirLordPouya opened this issue Jan 24, 2023 · 4 comments
Closed

[BUG] Crash in Image.kt #6116

SirLordPouya opened this issue Jan 24, 2023 · 4 comments
Assignees

Comments

@SirLordPouya
Copy link

Summary

We are facing a fresh crash in our crashlytics related to the cardscanner:

java.lang.IllegalArgumentException: View finder Rect(0, 0 - 1440, 2919) is outside preview image bounds Rect(-10, 0 - 1450, 2918) at com.stripe.android.camera.framework.image.ImageKt.cropCameraPreviewToViewFinder(Image.kt:77) at com.stripe.android.stripecardscan.payment.ml.SSDOcr$Companion.cameraPreviewToInput(SSDOcr.kt:123) at com.stripe.android.stripecardscan.cardscan.CardScanFlow$startFlow$1$invokeSuspend$lambda$2$lambda$1$$inlined$map$1$2.emit(Emitters.kt:224) at kotlinx.coroutines.flow.FlowKt__ChannelsKt.emitAllImpl$FlowKt__ChannelsKt(Channels.kt:62) at kotlinx.coroutines.flow.FlowKt__ChannelsKt.access$emitAllImpl$FlowKt__ChannelsKt(Channels.kt:1) at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(Unknown Source:14) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@e47bdbc, Dispatchers.Main]

Android version

Android versions: 11, 12, 13

Impacted devices

Google, Samsung and Xiaomi till now.

Installation method

gradle dependency

Dependency Versions

kotlin: 1.7.20
stripe-android: 20.16.0
Android Gradle Plugin: 7.3.0
Gradle: 7.4.2

SDK classes

Image.kt

@nikhilmiddha
Copy link

same issue with many apps just reported the bug

@awush-stripe
Copy link
Collaborator

Hi @nikhilmiddha and @SirLordPouya , apologies for the slow response here!

Are you seeing this as part of the stripe payment method collection in the stripe payments SDK? I believe this is the same bug we identified internally recently. I'm working on a fix presently.

@awush-stripe
Copy link
Collaborator

This should be addressed by this PR #6253

@awush-stripe
Copy link
Collaborator

Closing this as fixed. Please feel free to re-open if you continue to see this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants