ponewheel / android-ponewheel

pOneWheel Android app
MIT License
71 stars 25 forks source link

App falls over w/ exception "grpc failed" #18

Closed kwatkins closed 6 years ago

kwatkins commented 6 years ago

Almost there for the Map, getting the exception below w/ and w/out having the location option checked. I also think it'll be fine if we we do location tracking by default when the app starts and make this a default feature (and maybe adding to manifest)

I started to look into it thinking it might be something w/ the environment (Pixel running Android N and a bit on the modified side) - could still be, but looks to be other things according to https://stackoverflow.com/questions/45384803/grpc-failed-while-working-with-maps-and-location

io.reactivex.exceptions.OnErrorNotImplementedException: grpc failed at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704) at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701) at io.reactivex.internal.observers.LambdaObserver.onError(LambdaObserver.java:77) at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.checkTerminated(ObservableObserveOn.java:276) at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:172) at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:252) at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:61) at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:52) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761) Caused by: java.io.IOException: grpc failed at android.location.Geocoder.getFromLocation(Geocoder.java:136) at com.patloew.rxlocation.Geocoding.lambda$fromLocation$1(Geocoding.java:62) at com.patloew.rxlocation.Geocoding$$Lambda$1.call(Unknown Source) at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:35) at io.reactivex.Single.subscribe(Single.java:2779) at io.reactivex.internal.operators.single.SingleFlatMapMaybe.subscribeActual(SingleFlatMapMaybe.java:41) at io.reactivex.Maybe.subscribe(Maybe.java:3727) at io.reactivex.internal.operators.maybe.MaybeToObservable.subscribeActual(MaybeToObservable.java:43) at io.reactivex.Observable.subscribe(Observable.java:10910) at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.subscribeInner(ObservableFlatMap.java:162) at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.onNext(ObservableFlatMap.java:139) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onNext(ObservableSubscribeOn.java:58) at io.reactivex.internal.operators.observable.ObservableFromPublisher$PublisherSubscriber.onNext(ObservableFromPublisher.java:56) at io.reactivex.internal.operators.flowable.FlowableCreate$MissingEmitter.onNext(FlowableCreate.java:359) at com.patloew.rxlocation.LocationUpdatesFlowableOnSubscribe$RxLocationListener.onLocationChanged(LocationUpdatesFlowableOnSubscribe.java:73) at com.google.android.gms.internal.zzasg$zzb$1.zza(Unknown Source) at com.google.android.gms.internal.zzasg$zzb$1.zzs(Unknown Source) at com.google.android.gms.internal.zzabh.zzb(Unknown Source) at com.google.android.gms.internal.zzabh$zza.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6171) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)

ebabel commented 6 years ago

@kwatkins Were you using the emulator? https://stackoverflow.com/a/5206936/247325

kwatkins commented 6 years ago

Nah ran it directly off my phone. It was a full build/compile from Android Studio 2, release mode, might be something to do with that.

On Thu, Nov 16, 2017 at 11:03 AM, Erik Babel notifications@github.com wrote:

Were you using the emulator? https://stackoverflow.com/a/5206936/247325

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ponewheel/android-ponewheel/issues/18#issuecomment-345028879, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0LrdkxTdE4NfgdtdNKy4X553QAOe_sks5s3IbtgaJpZM4QgztB .

--

Kevin Watkins l Co-founder

kwatkins@appthority.com l M 415.683.0929 l appthority.com http://www.appthority.com/ [image: appthority.com] https://www.appthority.com/

ebabel commented 6 years ago

@kwatkins Maybe fixed now that I synced up and upgraded versions?

ebabel commented 6 years ago

Android Studio 2

tbh I'm surprised this still works in Android Studio 2. Maybe try AS3?

kwatkins commented 6 years ago

fixed!