flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.61k stars 27.34k forks source link

App crashes with java.lang.IllegalStateException: No current tap-and-pay account #20038

Closed techyrajeev closed 5 years ago

techyrajeev commented 6 years ago

Steps to Reproduce

  1. Run the project either in debug or run mode
  2. When app loads tap on Google Login button
  3. Google login happens successfully and user object is returned from server
  4. Waiting for user to redirect from login screen to home screen
  5. App gets crashed after few seconds

Logs

07-31 21:16:07.216 25702-26371/? E/SeTransactionSyncTask: Error retrieving account
    java.lang.IllegalStateException: No current tap-and-pay account
        at anbe.b(:com.google.android.gms@12874026@12.8.74 (040700-204998136):3)
        at anbe.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at anvc.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):28)
        at com.google.android.gms.tapandpay.gcmtask.TapAndPayGcmTaskChimeraService.b(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at com.google.android.gms.tapandpay.gcmtask.TapAndPayGcmTaskChimeraService.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at com.google.android.gms.tapandpay.phenotype.PhenotypeCommitIntentOperation.onHandleIntent(:com.google.android.gms@12874026@12.8.74 (040700-204998136):47)
        at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@12874026@12.8.74 (040700-204998136):2)
        at dfm.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):8)
        at npz.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):9)
        at dfr.run(:com.google.android.gms@12874026@12.8.74 (040700-204998136):10)
        at dfo.run(:com.google.android.gms@12874026@12.8.74 (040700-204998136):9)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)
07-31 21:16:07.249 25702-25874/? E/SeTransactionSyncTask: Error retrieving account
    java.lang.IllegalStateException: No current tap-and-pay account
        at anbe.b(:com.google.android.gms@12874026@12.8.74 (040700-204998136):3)
        at anbe.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at anvc.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):28)
        at com.google.android.gms.tapandpay.gcmtask.TapAndPayGcmTaskChimeraService.b(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at com.google.android.gms.tapandpay.gcmtask.TapAndPayGcmTaskChimeraService.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at ankq.i(:com.google.android.gms@12874026@12.8.74 (040700-204998136):8)
        at ankq.d(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at anyo.a(:com.google.android.gms@12874026@12.8.74 (040700-204998136):1)
        at pir.run(:com.google.android.gms@12874026@12.8.74 (040700-204998136):38)
        a

Output of flutter doctor -v

flutter doctor -v                
[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.6 17G65, locale en-IN)
    • Flutter version 0.5.1 at /private/var/www/flutter
    • Framework revision c7ea3ca377 (9 weeks ago), 2018-05-29 21:07:33 +0200
    • Engine revision 1ed25ca7b7
    • Dart version 2.0.0-dev.58.0.flutter-f981f09760

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/rajeev/Library/Android/sdk/
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /Users/rajeev/Library/Android/sdk/
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.4.1, Build version 9F2000
    ✗ Brew not installed; use this to install tools for iOS device development.
      Download brew at https://brew.sh/.

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 26.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[!] IntelliJ IDEA Ultimate Edition (version 2018.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.25.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

! Doctor found issues in 3 categories.
zoechi commented 6 years ago

Are you using an in-app payment plugin?

techyrajeev commented 6 years ago

@zoechi No I am not using any of it. I am just using google_signin plugin

zoechi commented 6 years ago

Seems not to be Flutter specific https://stackoverflow.com/questions/50652370/setransactionsynctask-error-retrieving-account-java-lang-illegalstateexception but no answer yet :-/

techyrajeev commented 6 years ago

In debug mode I see this - and app gets crashed after few moment

The GMS server connection has been suspended (1)
Application finished.

I restarted android studio and emulator but still same issue.

techyrajeev commented 6 years ago

I have following dependencies in android/build.gradle

   dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath 'com.google.gms:google-services:3.2.1'
    }
techyrajeev commented 6 years ago

Some more stack-traces

F/libc    (27028): Fatal signal 11 (SIGSEGV), code 2, fault addr 0x90b4bffc in tid 27052 (Thread-3), pid 27028 (AppName)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.007/4586646:user/release-keys'
Revision: '0'
ABI: 'x86'
pid: 27028, tid: 27052, name: Thread-3  >>> com.appName <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x90b4bffc
    eax 8f574e9c  ebx 91ca4aac  ecx 91ece800  edx 91c8a834
    esi 9127fc79  edi 90b4c128
    xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000003b  xss 0000007b
    eip 913b6eac  ebp 90b4c028  esp 90b4c000  flags 00010286
backtrace:
    #00 pc 0076feac  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #01 pc 007724db  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #02 pc 007705e1  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #03 pc 007712ea  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #04 pc 007fdfcc  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #05 pc 0001ec4f  /system/lib/libc.so
    #06 pc 0007234a  /system/lib/libc.so (pthread_mutex_unlock+58)
    #07 pc 0008ba19  /system/lib/libc.so (je_arena_tcache_fill_small+857)
    #08 pc 000b2e53  /system/lib/libc.so (je_tcache_alloc_small_hard+51)
    #09 pc 000a1e78  /system/lib/libc.so (je_malloc+904)
    #10 pc 000152fa  /system/lib/libc.so (malloc+42)
    #11 pc 00a28ca9  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #12 pc 006430c4  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #13 pc 006ef396  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #14 pc 00638c78  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #15 pc 0063a202  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #16 pc 00639cef  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #17 pc 007c2622  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #18 pc 0000056b  <anonymous:8f300000>
    #19 pc 0000518e  <anonymous:7bf80000>
    #20 pc 0000094f  <anonymous:8f300000>
    #21 pc 0061e86b  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #22 pc 0061e5ac  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #23 pc 00935831  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #24 pc 006b573d  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #25 pc 007c480a  /data/app/com.appName-KoWz2lZVczYKh83aGcbEcw==/lib/x86/libflutter.so
    #26 pc 0000056b  <anonymous:8f300000>
    #27 pc 00009847  <anonymous:85400000>
    #28 pc 00014e84  <anonymous:7ba00000>
    #29 pc 00010898  <anonymous:7ba00000>
    #30 pc 000226f9  <anonymous:7ba00000>
    #31 pc 0001b66d  <anonymous:7ba00000>
    #32 pc 00016824  <anonymous:7ba00000>
    #33 pc 00020b77  <anonymous:7ba00000>
    #34 pc 0001a65c  <anonymous:7ba00000>
    #35 pc 00016840  <anonymous:7ba00000>
    #36 pc 00020b77  <anonymous:7ba00000>
    #37 pc 0001a65c  <anonymous:7ba00000>
    #38 pc 00016840  <anonymous:7ba00000>
    #39 pc 00020b77  <anonymous:7ba00000>
    #40 pc 0001a65c  <anonymous:7ba00000>
    #41 pc 00016840  <anonymous:7ba00000>
    #42 pc 00020b77  <anonymous:7ba00000>
    #43 pc 0001a65c  <anonymous:7ba00000>
    #44 pc 00016840  <anonymous:7ba00000>
    #45 pc 00020b77  <anonymous:7ba00000>
    #46 pc 00014a74  <anonymous:7ba00000>
    #47 pc 00010898  <anonymous:7ba00000>
    #48 pc 0001b683  <anonymous:7ba00000>
    #49 pc 00016824  <anonymous:7ba00000>
    #50 pc 00020b77  <anonymous:7ba00000>
    #51 pc 00014a74  <anonymous:7ba00000>
    #52 pc 00010898  <anonymous:7ba00000>
    #53 pc 000226f9  <anonymous:7ba00000>
    #54 pc 0001b66d  <anonymous:7ba00000>
    #55 pc 00016824  <anonymous:7ba00000>
    #56 pc 00020b77  <anonymous:7ba00000>
    #57 pc 00014a74  <anonymous:7ba00000>
    #58 pc 00010898  <anonymous:7ba00000>
    #59 pc 000226f9  <anonymous:7ba00000>
    #60 pc 0001b66d  <anonymous:7ba00000>
    #61 pc 00016824  <anonymous:7ba00000>
    #62 pc 00020b77  <anonymous:7ba00000>
    #63 pc 00014a74  <anonymous:7ba00000>
Lost connection to device.
zoechi commented 6 years ago

This stack trace looks unrelated. If you get this consistently, you might want to switch to the dev channel version of Flutter.

zoechi commented 5 years ago

This doesn't look Flutter-specific.

Did you turn on tap & pay? https://support.google.com/nexus/answer/3470787?hl=en

no-response[bot] commented 5 years ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.