flutter-stripe / flutter_stripe

Flutter SDK for Stripe.
https://pub.dev/packages/flutter_stripe
927 stars 511 forks source link

App crashes on using backspace in the card field #1519

Closed vishal-kumar-paswan closed 9 months ago

vishal-kumar-paswan commented 9 months ago

I've been working on an project where I'm using the latest version of flutter_stripe, i.e. 9.6.0. I've followed all the steps as mentioned in here for the android. Now suppose if I input a wrong digit into the card, date or CVV field and try to click backspace from the keyboard, the app automatically crashes. I tried to find a solution but didn't get any. Tried on multiple devices as well but the result is same. I've added the logs below so you can refer to it. Hoping to get a response soon.

Additional Contexts
$ flutter --version
Flutter 3.16.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7f20e5d18c (5 days ago) • 2023-11-27 09:47:30 -0800
Engine • revision 22b600f240
Tools • Dart 3.2.1 • DevTools 2.28.3
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.1, on Microsoft Windows [Version 10.0.22621.2715], locale en-IN)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.1)
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

Logs

W/OnBackInvokedCallback(10408): OnBackInvokedCallback is not enabled for the application.
W/OnBackInvokedCallback(10408): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
[log] Intent: {id: pi_XXXXXXXX, object: payment_intent, amount: 1000000, amount_capturable: 0, amount_details: {tip: {}}, amount_received: 0, application: null, application_fee_amount: null, automatic_payment_methods: null, canceled_at: null, cancellation_reason: null, capture_method: automatic, client_secret: pi_XXXXXXXX, confirmation_method: automatic, created: 1701529278, currency: inr, customer: null, description: null, invoice: null, last_payment_error: null, latest_charge: null, livemode: false, metadata: {}, next_action: null, on_behalf_of: null, payment_method: null, payment_method_configuration_details: null, payment_method_options: {card: {installments: null, mandate_options: null, network: null, request_three_d_secure: automatic}}, payment_method_types: [card], processing: null, receipt_email: null, review: null, setup_future_usage: null, shipping: null, source: null, statement_descriptor: null, statement_descriptor_suffix: null, status: requires_payment_method, transfer_data: null, transfer_group: null}
D/libMEOW (10408): meow new tls: 0xb4000072811ea2c0
D/libMEOW (10408): applied 1 plugins for [com.example.ecommerce]:
D/libMEOW (10408):   plugin 1: [libMEOW_gift.so]:
D/libMEOW (10408): meow delete tls: 0xb4000072811ea2c0
D/MiuiMultiWindowAdapter(10408): MiuiMultiWindowAdapter::getFreeformVideoWhiteListInSystem::LIST_ABOUT_SUPPORT_LANDSCAPE_VIDEO = [com.hunantv.imgo.activity, com.tencent.qqlive, com.qiyi.video, com.hunantv.imgo.activity.inter, com.tencent.qqlivei18n, com.iqiyi.i18n, tv.danmaku.bili]
E/gralloc4(10408): Empty SMPTE 2094-40 data
D/AppCompatDelegate(10408): Checking for metadata for AppLocalesMetadataHolderService : Service not found
W/OnBackInvokedCallback(10408): OnBackInvokedCallback is not enabled for the application.
W/OnBackInvokedCallback(10408): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
D/IS_CTS_MODE(10408): false
D/MULTI_WINDOW_ENABLED(10408): false
D/DecorView[](10408): getWindowModeFromSystem  windowmode is 1
D/TrafficStats(10408): tagSocket(192) with statsTag=0xffffffff, statsUid=-1
W/eulas.ecommerce(10408): Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
W/eulas.ecommerce(10408): Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
I/ForceDarkHelperStubImpl(10408): setViewRootImplForceDark: false for com.stripe.android.paymentsheet.PaymentSheetActivity@eed62a, reason: AppDarkModeEnable
D/VRI[PaymentSheetActivity](10408): hardware acceleration = true, forceHwAccelerated = false
D/TrafficStats(10408): tagSocket(239) with statsTag=0xffffffff, statsUid=-1
D/TrafficStats(10408): tagSocket(171) with statsTag=0xffffffff, statsUid=-1
W/eulas.ecommerce(10408): Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateMap.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
W/eulas.ecommerce(10408): Common causes for lock verification issues are non-optimized dex code
W/eulas.ecommerce(10408): and incorrect proguard optimizations.
W/eulas.ecommerce(10408): Method void androidx.compose.runtime.snapshots.SnapshotStateMap.update(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
W/eulas.ecommerce(10408): Method boolean androidx.compose.runtime.snapshots.SnapshotStateMap.removeIf$runtime_release(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
D/CompatibilityChangeReporter(10408): Compat change id reported: 171228096; UID 10662; state: ENABLED
W/eulas.ecommerce(10408): Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
W/eulas.ecommerce(10408): Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateList.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
W/eulas.ecommerce(10408): Method void androidx.compose.runtime.snapshots.SnapshotStateList.update(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
D/BufferQueueConsumer(10408): [](id:28a800000002,api:0,p:-1,c:10408) connect: controlledByApp=false
D/VRI[PaymentSheetActivity](10408): vri.reportNextDraw android.view.ViewRootImpl.performTraversals:3852 android.view.ViewRootImpl.doTraversal:2587 android.view.ViewRootImpl$TraversalRunnable.run:9716 android.view.Choreographer$CallbackRecord.run:1386 android.view.Choreographer$CallbackRecord.run:1394 
D/VRI[PaymentSheetActivity](10408): vri.Setup new sync id=0 syncSeqId=0
E/gralloc4(10408): Empty SMPTE 2094-40 data
D/BLASTBufferQueue(10408): [VRI[PaymentSheetActivity]#2](f:0,a:1) acquireNextBufferLocked size=1080x2400 mFrameNumber=1 applyTransaction=true mTimestamp=73157746826206(auto) mPendingTransactions.size=0 graphicBufferId=44702019616785 transform=0
W/Parcel  (10408): Expecting binder but got null!
W/Looper  (10408): PerfMonitor doFrame : time=488ms vsyncFrame=0 latency=5ms procState=-1 historyMsgCount=7 (msgIndex=1 wall=167ms seq=1427 late=1ms h=android.app.ActivityThread$H w=159)
D/VRI[PaymentSheetActivity](10408): vri.reportDrawFinished syncSeqId=0 android.view.ViewRootImpl.lambda$createSyncIfNeeded$4$android-view-ViewRootImpl:3920 android.view.ViewRootImpl$$ExternalSyntheticLambda1.run:6 android.os.Handler.handleCallback:942 android.os.Handler.dispatchMessage:99 android.os.Looper.loopOnce:211 
D/DecorView[](10408): onWindowFocusChanged hasWindowFocus false
I/Choreographer(10408): Skipped 46 frames!  The application may be doing too much work on its main thread.
D/TrafficStats(10408): tagSocket(163) with statsTag=0xffffffff, statsUid=-1
W/Looper  (10408): PerfMonitor doFrame : time=54ms vsyncFrame=0 latency=512ms procState=-1 historyMsgCount=7 (msgIndex=1 wall=488ms seq=1434 late=5ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver)
E/gralloc4(10408): Empty SMPTE 2094-40 data
D/DecorView[](10408): onWindowFocusChanged hasWindowFocus true
I/HandWritingStubImpl(10408): refreshLastKeyboardType: 1
I/HandWritingStubImpl(10408): getCurrentKeyboardType: 1
E/gralloc4(10408): Empty SMPTE 2094-40 data
D/TrafficStats(10408): tagSocket(182) with statsTag=0xffffffff, statsUid=-1
W/Looper  (10408): PerfMonitor doFrame : time=998ms vsyncFrame=0 latency=56ms procState=-1 historyMsgCount=7
E/gralloc4(10408): Empty SMPTE 2094-40 data
I/OpenGLRenderer(10408): Davey! duration=1099ms; Flags=0, FrameTimelineVsyncId=35951940, IntendedVsync=73157867705898, Vsync=73157912136642, InputEventId=0, HandleInputStart=73157923254821, AnimationStart=73157923262206, PerformTraversalsStart=73158867106821, DrawStart=73158911811821, FrameDeadline=73157898813584, FrameInterval=73157923131821, FrameStartTime=11107686, SyncQueued=73158921075513, SyncStart=73158921208129, IssueDrawCommandsStart=73158921332129, SwapBuffers=73158964827513, FrameCompleted=73158967603821, DequeueBufferDuration=14693, QueueBufferDuration=185231, GpuCompleted=73158967603821, SwapBuffersCompleted=73158966624667, DisplayPresentTime=492531047904, CommandSubmissionCompleted=73158964827513, 
I/Choreographer(10408): Skipped 100 frames!  The application may be doing too much work on its main thread.
W/Looper  (10408): PerfMonitor doFrame : time=280ms vsyncFrame=0 latency=1120ms procState=-1 historyMsgCount=15 (msgIndex=2 wall=998ms seq=1473 late=56ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver) (msgIndex=15 wall=120ms seq=1486 late=1000ms h=android.os.Handler c=androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1)
E/gralloc4(10408): Empty SMPTE 2094-40 data
I/OpenGLRenderer(10408): Davey! duration=1411ms; Flags=0, FrameTimelineVsyncId=35951994, IntendedVsync=73157923962898, Vsync=73159034729098, InputEventId=0, HandleInputStart=73159043837898, AnimationStart=73159043846513, PerformTraversalsStart=73159275726898, DrawStart=73159314811744, FrameDeadline=73157955070560, FrameInterval=73159043661975, FrameStartTime=11107662, SyncQueued=73159323288436, SyncStart=73159323423436, IssueDrawCommandsStart=73159323516975, SwapBuffers=73159332661359, FrameCompleted=73159335986513, DequeueBufferDuration=14077, QueueBufferDuration=192231, GpuCompleted=73159335986513, SwapBuffersCompleted=73159334921052, DisplayPresentTime=485331337345, CommandSubmissionCompleted=73159332661359, 
I/Choreographer(10408): Skipped 31 frames!  The application may be doing too much work on its main thread.
W/Looper  (10408): PerfMonitor doFrame : time=278ms vsyncFrame=0 latency=352ms procState=-1 historyMsgCount=4 (msgIndex=1 wall=280ms seq=1487 late=1120ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver) (msgIndex=4 wall=72ms seq=1490 late=280ms h=android.os.Handler c=androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1)
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
D/Compose Focus(10408): Owner FocusChanged(true)
I/HandWritingStubImpl(10408): refreshLastKeyboardType: 1
I/HandWritingStubImpl(10408): getCurrentKeyboardType: 1
I/HandWritingStubImpl(10408): getCurrentKeyboardType: 1
D/InsetsController(10408): show(ime(), fromIme=false)
D/InputMethodManager(10408): showSoftInput() view=androidx.compose.ui.platform.AndroidComposeView{4eac773 VFED..... .F....ID 0,0-1080,2400 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT_BY_INSETS_API
I/AssistStructure(10408): Flattened final assist data: 980 bytes, containing 1 windows, 7 views
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
W/RecordingIC(10408): requestCursorUpdates is not supported
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
W/OnBackInvokedCallback(10408): OnBackInvokedCallback is not enabled for the application.
W/OnBackInvokedCallback(10408): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
E/gralloc4(10408): Empty SMPTE 2094-40 data
D/InsetsController(10408): show(ime(), fromIme=true)
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
D/Autofill Status(10408): Autofill popup was shown.
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
W/RenderInspector(10408): QueueBuffer time out on com.example.ecommerce/com.stripe.android.paymentsheet.PaymentSheetActivity, count=1, avg=13 ms, max=13 ms.
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
W/RenderInspector(10408): QueueBuffer time out on com.example.ecommerce/com.stripe.android.paymentsheet.PaymentSheetActivity, count=1, avg=12 ms, max=12 ms.
E/gralloc4(10408): Empty SMPTE 2094-40 data
V/VRI[PaymentSheetActivity](10408): [ANR Warning]Input routeing takes more than 6000ms since 1970-01-01 05:30:00.000, this = com.mediatek.view.impl.ViewDebugManagerImpl@8905827
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$EarlyPostImeInputStage@c72bd5e at 2023-12-02 20:31:24.537
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$NativePostImeInputStage@741753f at 2023-12-02 20:31:24.537
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$ViewPostImeInputStage@6524e0c at 2023-12-02 20:31:24.537
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$SyntheticInputStage@e1b1355 at 2023-12-02 20:31:24.546
V/VRI[PaymentSheetActivity](10408): [ANR Warning]Input routeing takes more than 6000ms since 1970-01-01 05:30:00.000, this = com.mediatek.view.impl.ViewDebugManagerImpl@8905827
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$EarlyPostImeInputStage@c72bd5e at 2023-12-02 20:31:24.551
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$NativePostImeInputStage@741753f at 2023-12-02 20:31:24.551
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$ViewPostImeInputStage@6524e0c at 2023-12-02 20:31:24.551
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$SyntheticInputStage@e1b1355 at 2023-12-02 20:31:24.553
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
V/VRI[PaymentSheetActivity](10408): [ANR Warning]Input routeing takes more than 6000ms since 1970-01-01 05:30:00.000, this = com.mediatek.view.impl.ViewDebugManagerImpl@8905827
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$EarlyPostImeInputStage@c72bd5e at 2023-12-02 20:31:24.713
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$NativePostImeInputStage@741753f at 2023-12-02 20:31:24.713
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$ViewPostImeInputStage@6524e0c at 2023-12-02 20:31:24.713
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$SyntheticInputStage@e1b1355 at 2023-12-02 20:31:24.716
V/VRI[PaymentSheetActivity](10408): [ANR Warning]Input routeing takes more than 6000ms since 1970-01-01 05:30:00.000, this = com.mediatek.view.impl.ViewDebugManagerImpl@8905827
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$EarlyPostImeInputStage@c72bd5e at 2023-12-02 20:31:24.719
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$NativePostImeInputStage@741753f at 2023-12-02 20:31:24.719
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$ViewPostImeInputStage@6524e0c at 2023-12-02 20:31:24.719
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$SyntheticInputStage@e1b1355 at 2023-12-02 20:31:24.719
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
V/VRI[PaymentSheetActivity](10408): [ANR Warning]Input routeing takes more than 6000ms since 1970-01-01 05:30:00.000, this = com.mediatek.view.impl.ViewDebugManagerImpl@8905827
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$EarlyPostImeInputStage@c72bd5e at 2023-12-02 20:31:24.903
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$NativePostImeInputStage@741753f at 2023-12-02 20:31:24.903
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$ViewPostImeInputStage@6524e0c at 2023-12-02 20:31:24.903
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$SyntheticInputStage@e1b1355 at 2023-12-02 20:31:24.908
V/VRI[PaymentSheetActivity](10408): [ANR Warning]Input routeing takes more than 6000ms since 1970-01-01 05:30:00.000, this = com.mediatek.view.impl.ViewDebugManagerImpl@8905827
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$EarlyPostImeInputStage@c72bd5e at 2023-12-02 20:31:24.911
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$NativePostImeInputStage@741753f at 2023-12-02 20:31:24.911
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$ViewPostImeInputStage@6524e0c at 2023-12-02 20:31:24.911
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$SyntheticInputStage@e1b1355 at 2023-12-02 20:31:24.912
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
V/VRI[PaymentSheetActivity](10408): [ANR Warning]Input routeing takes more than 6000ms since 1970-01-01 05:30:00.000, this = com.mediatek.view.impl.ViewDebugManagerImpl@8905827
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$EarlyPostImeInputStage@c72bd5e at 2023-12-02 20:31:25.010
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$NativePostImeInputStage@741753f at 2023-12-02 20:31:25.010
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$ViewPostImeInputStage@6524e0c at 2023-12-02 20:31:25.010
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$SyntheticInputStage@e1b1355 at 2023-12-02 20:31:25.013
V/VRI[PaymentSheetActivity](10408): [ANR Warning]Input routeing takes more than 6000ms since 1970-01-01 05:30:00.000, this = com.mediatek.view.impl.ViewDebugManagerImpl@8905827
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$EarlyPostImeInputStage@c72bd5e at 2023-12-02 20:31:25.016
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$NativePostImeInputStage@741753f at 2023-12-02 20:31:25.016
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$ViewPostImeInputStage@6524e0c at 2023-12-02 20:31:25.016
V/VRI[PaymentSheetActivity](10408): Input event delivered to android.view.ViewRootImpl$SyntheticInputStage@e1b1355 at 2023-12-02 20:31:25.017
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
E/gralloc4(10408): Empty SMPTE 2094-40 data
D/AndroidRuntime(10408): Shutting down VM
E/AndroidRuntime(10408): FATAL EXCEPTION: main
E/AndroidRuntime(10408): Process: com.example.ecommerce, PID: 10408
E/AndroidRuntime(10408): java.lang.NoSuchMethodError: No virtual method getEmojiStart(Ljava/lang/CharSequence;I)I in class Landroidx/emoji2/text/EmojiCompat; or its super classes (declaration of 'androidx.emoji2.text.EmojiCompat' appears in /data/app/~~IAimeXyRb8hivEhh2ZqoHQ==/com.example.ecommerce-5MNRZ1M05fqzuldnFMRrLg==/base.apk!classes5.dex)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.StringHelpers_androidKt.findPrecedingBreak(StringHelpers.android.kt:24)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.selection.BaseTextPreparedSelection.getPrecedingCharacterIndex(TextPreparedSelection.kt:150)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.TextFieldKeyInput$process$2$3.invoke(TextFieldKeyInput.kt:131)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.TextFieldKeyInput$process$2$3.invoke(TextFieldKeyInput.kt:129)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.selection.TextFieldPreparedSelection.deleteIfSelectedOr(TextPreparedSelection.kt:397)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.TextFieldKeyInput$process$2.invoke(TextFieldKeyInput.kt:129)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.TextFieldKeyInput$process$2.invoke(TextFieldKeyInput.kt:106)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.TextFieldKeyInput.commandExecutionContext(TextFieldKeyInput.kt:226)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.TextFieldKeyInput.process-ZmokQxo(TextFieldKeyInput.kt:106)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.TextFieldKeyInputKt$textFieldKeyInput$2$1.invoke-ZmokQxo(TextFieldKeyInput.kt:261)
E/AndroidRuntime(10408):    at androidx.compose.foundation.text.TextFieldKeyInputKt$textFieldKeyInput$2$1.invoke(TextFieldKeyInput.kt:261)
E/AndroidRuntime(10408):    at androidx.compose.ui.input.key.KeyInputNode.onKeyEvent-ZmokQxo(KeyInputModifier.kt:80)
E/AndroidRuntime(10408):    at androidx.compose.ui.focus.FocusOwnerImpl.dispatchKeyEvent-ZmokQxo(FocusOwnerImpl.kt:193)
E/AndroidRuntime(10408):    at androidx.compose.ui.platform.AndroidComposeView.dispatchKeyEvent(AndroidComposeView.android.kt:647)
E/AndroidRuntime(10408):    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1979)
E/AndroidRuntime(10408):    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1979)
E/AndroidRuntime(10408):    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1979)
E/AndroidRuntime(10408):    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1979)
E/AndroidRuntime(10408):    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1979)
E/AndroidRuntime(10408):    at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1979)
E/AndroidRuntime(10408):    at com.android.internal.policy.DecorView.superDispatchKeyEvent(DecorView.java:559)
E/AndroidRuntime(10408):    at com.android.internal.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1889)
E/AndroidRuntime(10408):    at android.app.Activity.dispatchKeyEvent(Activity.java:4371)
E/AndroidRuntime(10408):    at androidx.core.app.ComponentActivity.superDispatchKeyEvent(ComponentActivity.java:126)
E/AndroidRuntime(10408):    at androidx.core.view.KeyEventDispatcher.dispatchKeyEvent(KeyEventDispatcher.java:86)
E/AndroidRuntime(10408):    at androidx.core.app.ComponentActivity.dispatchKeyEvent(ComponentActivity.java:144)
E/AndroidRuntime(10408):    at androidx.appcompat.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:604)
E/AndroidRuntime(10408):    at androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:60)
E/AndroidRuntime(10408):    at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(AppCompatDelegateImpl.java:3413)
E/AndroidRuntime(10408):    at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:425)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:7060)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6903)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6334)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6391)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6357)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6522)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6365)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6579)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6338)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6391)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6357)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6365)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6338)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:9613)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:9564)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:9519)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$ViewRootHandler.handleMessageImpl(ViewRootImpl.java:6095)
E/AndroidRuntime(10408):    at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:5955)
E/AndroidRuntime(10408):    at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(10408):    at android.os.Looper.loopOnce(Looper.java:211)
E/AndroidRuntime(10408):    at android.os.Looper.loop(Looper.java:300)
E/AndroidRuntime(10408):    at android.app.ActivityThread.main(ActivityThread.java:8294)
E/AndroidRuntime(10408):    at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(10408):    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
E/AndroidRuntime(10408):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
W/eulas.ecommerce(10408): type=1400 audit(0.0:478560): avc: denied { search } for name="miuilog" dev="dm-40" ino=794928 scontext=u:r:untrusted_app_30:s0:c150,c258,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=com.example.ecommerce
W/eulas.ecommerce(10408): type=1400 audit(0.0:478561): avc: denied { search } for name="miuilog" dev="dm-40" ino=794928 scontext=u:r:untrusted_app_30:s0:c150,c258,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=com.example.ecommerce
W/eulas.ecommerce(10408): type=1400 audit(0.0:478562): avc: denied { search } for name="miuilog" dev="dm-40" ino=794928 scontext=u:r:untrusted_app_30:s0:c150,c258,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=com.example.ecommerce
W/eulas.ecommerce(10408): type=1400 audit(0.0:478563): avc: denied { search } for name="miuilog" dev="dm-40" ino=794928 scontext=u:r:untrusted_app_30:s0:c150,c258,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=com.example.ecommerce
W/eulas.ecommerce(10408): type=1400 audit(0.0:478564): avc: denied { search } for name="miuilog" dev="dm-40" ino=794928 scontext=u:r:untrusted_app_30:s0:c150,c258,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=com.example.ecommerce
W/eulas.ecommerce(10408): type=1400 audit(0.0:478565): avc: denied { search } for name="miuilog" dev="dm-40" ino=794928 scontext=u:r:untrusted_app_30:s0:c150,c258,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=com.example.ecommerce
W/OOMEventManagerFK(10408): Failed to mkdir /data/miuilog/stability/memleak/heapdump/
I/Process (10408): Process is going to kill itself!
I/Process (10408): java.lang.Exception
I/Process (10408):  at android.os.Process.killProcess(Process.java:1330)
I/Process (10408):  at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:202)
I/Process (10408):  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1071)
I/Process (10408):  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1066)
I/Process (10408):  at java.lang.Thread.dispatchUncaughtException(Thread.java:2306)
I/Process (10408): Sending signal. PID: 10408 SIG: 9
MFahadMateen commented 9 months ago

Include these lines within the dependencies block in your app's build.gradle file. This addition will import the necessary EmojiCompat dependencies to address the issue you're encountering.

dependencies { def emoji2_version = "1.4.0"

implementation("androidx.emoji2:emoji2:$emoji2_version")
implementation("androidx.emoji2:emoji2-views:$emoji2_version")
implementation("androidx.emoji2:emoji2-views-helper:$emoji2_version")

}

vishal-kumar-paswan commented 9 months ago

Thank you @MFahadMateen . The issue is resolved now. :)

guilherme-v commented 9 months ago

For those that are still using sdk 33, try to use the version 1.3.0