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

FAILED BINDER TRANSACTION #113427

Closed
AnukirtiYadav opened this issue Oct 14, 2022 · 22 comments
Closed

FAILED BINDER TRANSACTION #113427

AnukirtiYadav opened this issue Oct 14, 2022 · 22 comments
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@AnukirtiYadav
Copy link

Steps to Reproduce

  1. Execute flutter run --flavor development --target lib/main_development.dart

Expected results:
App should run.

Actual results:

E/JavaBinder(15182): !!! FAILED BINDER TRANSACTION !!!  (parcel size = 340)
W/GmsClient(15182): IGmsServiceBroker.getService failed
W/GmsClient(15182): android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died, but this could also be caused by running out of binder buffe
W/GmsClient(15182): 	at android.os.BinderProxy.transactNative(Native Method)
W/GmsClient(15182): 	at android.os.BinderProxy.transact(BinderProxy.java:584)
W/GmsClient(15182): 	at WE.b(chromium-TrichromeWebViewGoogle6432.apk-stable-495157437:288)
W/GmsClient(15182): 	at com.google.android.gms.common.internal.BaseGmsClient.p(chromium-TrichromeWebViewGoogle6432.apk-stable-495157437:53)
W/GmsClient(15182): 	at BB.run(chromium-TrichromeWebViewGoogle6432.apk-stable-495157437:1849)
W/GmsClient(15182): 	at android.os.Handler.handleCallback(Handler.java:942)
W/GmsClient(15182): 	at android.os.Handler.dispatchMessage(Handler.java:99)
W/GmsClient(15182): 	at Sp0.dispatchMessage(chromium-TrichromeWebViewGoogle6432.apk-stable-495157437:223)
W/GmsClient(15182): 	at android.os.Looper.loopOnce(Looper.java:201)
W/GmsClient(15182): 	at android.os.Looper.loop(Looper.java:288)
W/GmsClient(15182): 	at android.os.HandlerThread.run(HandlerThread.java:67)
Code sample
Logs
@huycozy huycozy added the in triage Presently being triaged by the triage team label Oct 14, 2022
@huycozy
Copy link
Member

huycozy commented Oct 14, 2022

Hi @AnukirtiYadav, please provide a completed and minimal reproducible code sample so that we may verify this. Also, please provide the output of flutter doctor -v as well. Thank you!

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Oct 14, 2022
@naveenkmavoor
Copy link

naveenkmavoor commented Oct 14, 2022

Hi @AnukirtiYadav, I've faced this issue before. It's mainly causing on my mac m1 by the android emulator. Can be resolved by quitting the emulator and run again.

@neri4488
Copy link

I have the same on m1 but tried this option and nothing has changed, how do you quit the emulator.
I just clicked the 'x' and that emulator tab closed but the issue persisted.

@mihaita-tinta
Copy link

after

I have the same on m1 but tried this option and nothing has changed, how do you quit the emulator. I just clicked the 'x' and that emulator tab closed but the issue persisted.

Try to use Cold Boot Now to start the emulator again.

@Sebastian1808
Copy link

I get the same error on a MacBook Pro but with intel, is it a mac error?

I tried restarting the emulator, closing it and reopening it but the error remains.

@binaryjc
Copy link

I get the same error. i'm trying to add google ad banner on my app. currently just using the test AdMob app and ad units. ad is not showing.

@mihaita-tinta
Copy link

I get the same error on a MacBook Pro but with intel, is it a mac error?

I tried restarting the emulator, closing it and reopening it but the error remains.

In my case, I reverted to Pixel 2 API 30 emulator on my mac and it works fine compared to latest version (33)

@ramoenariel
Copy link

I've the same problem in the emulator, BUT not in physical phone.

@melihhakanpektas
Copy link

melihhakanpektas commented Nov 3, 2022

I've the same problem in the google play api 33 emulator.

@Wegi
Copy link

Wegi commented Nov 3, 2022

I encounter the same error, when trying to use the Google One Tap button with Jetpack Compose. Restarting the Emulator seems to help most of the time.

Emulator:
Pixel 5 API 33

@dmitry-kotorov
Copy link

I've the same issue on Pixel XL API 33 emulator

@huycozy
Copy link
Member

huycozy commented Nov 8, 2022

Hi everyone facing this issue, I tried running the default Flutter project (counter app) on Pixel 4 API 33 emulator but can not reproduce this issue. It would be nice if you can provide a completed and minimal reproducible code sample so that we may verify this, and along with the output of flutter doctor -v as well. Thanks!

@dhvanit-v-simformsolutions

In my case, after wiping data of emulator works.

@rai-h
Copy link

rai-h commented Nov 14, 2022

It's the issue with emulators on m1. For now the only way out from this issue is cold booting your emulator.

@Cotspheer
Copy link

Cotspheer commented Nov 16, 2022

I had the same issue with a Nexus 5X API 33 Google Play x86_64 emulated device. I did multiple things at once so I'm not sure which one did the trick but I'm leaving my steps here in case it will help someone out:

  • Updated build.gradle to use ext.kotlin_version = '1.7.10'
  • Added <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> to AndroidManifest.xml
  • Updated google_maps_flutter 2.2.1 as I got the exception @AnukirtiYadav mentioned but only recognized after I saw that the google-maps-widget was not working
  • Wipe Data of Emulator as @dhvanit-v-simformsolutions has mentioned and then did a cold boot

But I still get this log error:

E/SurfaceSyncer( 8886): Failed to find sync for id=0
W/Parcel  ( 8886): Expecting binder but got null!

which makes me concerned if it is "stable" to use. I'm currently testing android api 33 and I'm on the master channel of flutter as it has a critical not released fix regarding tree-shaking which caused non related issues on iOS devices.

flutter doctor -v

[√] Flutter (Channel master, 3.6.0-3.0.pre.32, on Microsoft Windows [Version 10.0.19043.2075], locale de-DE)
    • Flutter version 3.6.0-3.0.pre.32 on channel master at D:\Flutter       
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3a298d0b95 (16 hours ago), 2022-11-15 11:26:21 -0500
    • Engine revision eead7b0d86
    • Dart version 2.19.0 (build 2.19.0-401.0.dev)
    • DevTools version 2.19.0

[X] Windows Version (Unable to confirm if installed Windows version is 10 or greater)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc3)
    • Android SDK at D:\AndroidSDK
    • Platform android-33, build-tools 33.0.0-rc3
    • ANDROID_HOME = D:\AndroidSDK
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)   
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.0)       
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community      
    • Visual Studio Community 2022 version 17.4.33103.184
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[√] VS Code (version 1.73.1)
    • VS Code at C:\Users\Nighty\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.52.0

[√] Connected device (5 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • sdk gphone64 x86 64 (mobile) • emulator-5556 • android-x64    • Android 12 (API 31) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.19043.2075]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 107.0.5304.107
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 106.0.1370.52

[√] HTTP Host Availability
    • All required HTTP hosts are available

APP: build.gradle
app_build.gradle.txt

Android: build.gradle
build.gradle.txt

EDIT: Maybe another important side-note, I do not have this issue with API versions 30 and 31. Also the log message does not appear on those API versions.

@thecodepapaya
Copy link

Have faced this issue only when working with API 33 emulator on M1 Mac. The issue gets resolved temporarily after a cold boot of the emulator but it comes back every now and then.

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.

@github-actions github-actions bot closed this as completed Dec 6, 2022
@champcbg
Copy link

champcbg commented Jan 4, 2023

Hi @AnukirtiYadav, I've faced this issue before. It's mainly causing on my mac m1 by the android emulator. Can be resolved by quitting the emulator and run again.

this also worked on my windows machine

@Adam-Langley
Copy link

FYI
I also started receiving this error today, Nexus 10 API 33
My environment is VS Code on 16'' MacBook Pro (Intel).

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.10, on macOS 12.6.2 21G320 darwin-x64, locale
    en-NZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.74.3)
[✓] Connected device (5 available)
[✓] HTTP Host Availability

• No issues found!

Simulator reboot made no difference.
Issue was resolved by simulator cold boot.

@YudhiPrasetyo
Copy link

anyone know how to cool boot on intellij since my emulator doesn't show and i have tried cool boot from android studio still cannot since the emulator still running

@TDuffinNTU
Copy link

Noticed this during a navigation transition while testing on a Windows Android Emulator earlier today. Didn't cause any noticeable issues but though it's worth adding that it wasn't just M1 Macs for me.

@github-actions
Copy link

github-actions bot commented Mar 3, 2023

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests