Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Caught a RuntimeException from the binder stub implementation

I'm running into this RuntimeException and having a hard time debugging it:

W/Binder﹕ Caught a RuntimeException from the binder stub implementation.
com.google.android.gms.common.internal.safeparcel.zza$zza: Expected object header. Got 0x1 Parcel: pos=136 size=284
        at com.google.android.gms.common.internal.safeparcel.zza.zzJ(Unknown Source)
        at com.google.android.gms.wearable.internal.zzf.zzfv(Unknown Source)
        at com.google.android.gms.wearable.internal.zzf.createFromParcel(Unknown Source)
        at com.google.android.gms.wearable.internal.zzah$zza.onTransact(Unknown Source)
        at android.os.Binder.execTransact(Binder.java:446)

It doesn't seem to specify where the exception is coming from. This is an Android Wear app that periodically records audio and transfers it to the phone.

I would appreciate any ideas on where I should be looking at or how I should be debugging this.

Thank you.

like image 949
isal Avatar asked Jun 22 '15 23:06

isal


1 Answers

I had a similar error using Google Fit History API for data transfer. In that case it was a failed binder Transaction (JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = ...)). It didn't crash the app but the data transfer didn't work. What fixed it for me was reducing the amount of data being sent at once. Sending the data in multiple smaller chunks is what I do now.

For sending large amounts of data from your wearable to your phone you might want to use the Channel API. I use it to transfer MP3 files with sizes from 5 to 10MB without any problems.

like image 84
Emanuel Seidinger Avatar answered Oct 30 '22 13:10

Emanuel Seidinger