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

Show crash in Crashlytics #99

Closed
dzungpv opened this issue Sep 5, 2023 · 2 comments
Closed

Show crash in Crashlytics #99

dzungpv opened this issue Sep 5, 2023 · 2 comments

Comments

@dzungpv
Copy link
Contributor

dzungpv commented Sep 5, 2023

App not crash but I see many error log in Google Play and Crashlytics.
This occur with latest version but not with 2.x version. Seem it cause by RxJava lib.
Logs:

The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/

And

Exception o.sj0:
  at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java)
  at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept (Functions.java)
  at io.reactivex.internal.observers.LambdaObserver.onError (LambdaObserver.java:77)
  at io.reactivex.internal.observers.LambdaObserver.onNext (LambdaObserver.java:67)
  at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal (ObservableObserveOn.java:201)
  at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run (ObservableObserveOn.java:255)
  at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run (HandlerScheduler.java:124)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:346)
  at android.os.Looper.loop (Looper.java:475)
  at android.app.ActivityThread.main (ActivityThread.java:7889)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1009)
Caused by java.lang.IllegalArgumentException:
  at retrofit2.Utils.methodError (Utils.java:54)
  at retrofit2.HttpServiceMethod.createCallAdapter (HttpServiceMethod.java:116)
  at retrofit2.HttpServiceMethod.parseAnnotations (HttpServiceMethod.java:67)
  at retrofit2.ServiceMethod.parseAnnotations (ServiceMethod.java:39)
  at retrofit2.Retrofit.loadServiceMethod (Retrofit.java:202)
  at retrofit2.Retrofit$1.invoke (Retrofit.java:160)
  at java.lang.reflect.Proxy.invoke (Proxy.java:1006)
  at $Proxy2.ˊ
  at com.rtchagas.pingplacepicker.repository.googlemaps.GoogleMapsAPI$DefaultImpls.findByLocation$default (GoogleMapsAPI.kt:19)
  at com.rtchagas.pingplacepicker.repository.googlemaps.GoogleMapsRepository.getPlaceByLocation (GoogleMapsRepository.kt:111)
  at com.rtchagas.pingplacepicker.viewmodel.PlacePickerViewModel.getPlaceByLocation (PlacePickerViewModel.kt:56)
  at com.rtchagas.pingplacepicker.ui.activity.PlacePickerActivity.selectThisPlace (PlacePickerActivity.kt:556)
  at com.rtchagas.pingplacepicker.ui.activity.PlacePickerActivity.access$handlePlaceByLocation (PlacePickerActivity.kt)
  at com.rtchagas.pingplacepicker.ui.activity.PlacePickerActivity.access$selectThisPlace (PlacePickerActivity.kt)
  at com.rtchagas.pingplacepicker.ui.activity.PlacePickerActivity$initializeUi$1$4.invoke (PlacePickerActivity.kt:411)
  at com.rtchagas.pingplacepicker.ui.activity.PlacePickerActivity$initializeUi$1$4.invoke (PlacePickerActivity.kt:411)
  at com.rtchagas.pingplacepicker.ui.UiExtensionsKt$onclick$1.invoke (UiExtensions.kt)
  at com.rtchagas.pingplacepicker.ui.UiExtensionsKt$onclick$1.invoke (UiExtensions.kt)
  at com.rtchagas.pingplacepicker.ui.UiExtensionsKt.onclick$lambda$0 (UiExtensions.kt:15)
  at io.reactivex.internal.observers.LambdaObserver.onNext (LambdaObserver.java:63)
Caused by java.lang.IllegalStateException: Single return type must be parameterized as Single<Foo> or Single<? extends Foo>
  at retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory.get (RxJava2CallAdapterFactory.java:118)
  at retrofit2.Retrofit.nextCallAdapter (Retrofit.java:253)
  at retrofit2.Retrofit.callAdapter (Retrofit.java)
  at retrofit2.HttpServiceMethod.createCallAdapter (HttpServiceMethod.java:114)
@rtchagas
Copy link
Owner

This is a R8 issue.
Please check the release https://github.com/rtchagas/pingplacepicker/releases/tag/3.0.1
You can also add these rules to you project as well.

@dzungpv
Copy link
Contributor Author

dzungpv commented Sep 23, 2023

This is a R8 issue. Please check the release https://github.com/rtchagas/pingplacepicker/releases/tag/3.0.1 You can also add these rules to you project as well.

Thank you for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants