slapperwan / gh4a

Github client for Android
Apache License 2.0
1.71k stars 221 forks source link

Broke while opening the detail page #1413

Closed mitch000001 closed 3 hours ago

mitch000001 commented 3 hours ago

Error stack trace

com.squareup.moshi.JsonDataException: com.squareup.moshi.JsonDataException: Expected an int but was 2303144338 at path $.items[29].payload.comment.pull_request_review_id at $.items[29].payload.comment.pull_request_review_id
    at com.squareup.moshi.AdapterMethodsFactory$1.fromJson(AdapterMethodsFactory.java:101)
    at com.squareup.moshi.CollectionJsonAdapter.fromJson(CollectionJsonAdapter.java:81)
    at com.squareup.moshi.CollectionJsonAdapter$2.fromJson(CollectionJsonAdapter.java:55)
    at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
    at com.squareup.moshi.internal.NonNullJsonAdapter.fromJson(NonNullJsonAdapter.java:43)
    at com.meisolsson.githubsdk.model.AutoValue_Page$MoshiJsonAdapter.fromJson(AutoValue_Page.java:61)
    at com.meisolsson.githubsdk.model.AutoValue_Page$MoshiJsonAdapter.fromJson(AutoValue_Page.java:23)
    at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
    at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:45)
    at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:27)
    at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:225)
    at retrofit2.OkHttpCall.execute(OkHttpCall.java:188)
    at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:45)
    at io.reactivex.Observable.subscribe(Observable.java:12284)
    at io.reactivex.internal.operators.observable.ObservableSingleSingle.subscribeActual(ObservableSingleSingle.java:35)
    at io.reactivex.Single.subscribe(Single.java:3666)
    at com.tspoon.traceur.SingleOnAssembly.subscribeActual(SingleOnAssembly.java:43)
    at io.reactivex.Single.subscribe(Single.java:3666)
    at io.reactivex.internal.operators.single.SingleMap.subscribeActual(SingleMap.java:34)
    at io.reactivex.Single.subscribe(Single.java:3666)
    at com.tspoon.traceur.SingleOnAssembly.subscribeActual(SingleOnAssembly.java:43)
    at io.reactivex.Single.subscribe(Single.java:3666)
    at io.reactivex.internal.operators.single.SingleMap.subscribeActual(SingleMap.java:34)
    at io.reactivex.Single.subscribe(Single.java:3666)
    at com.tspoon.traceur.SingleOnAssembly.subscribeActual(SingleOnAssembly.java:43)
    at io.reactivex.Single.subscribe(Single.java:3666)
    at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)
    at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:608)
    at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
    at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)
Caused by: com.squareup.moshi.JsonDataException: Expected an int but was 2303144338 at path $.items[29].payload.comment.pull_request_review_id
    at com.squareup.moshi.JsonUtf8Reader.nextInt(JsonUtf8Reader.java:926)
    at com.squareup.moshi.StandardJsonAdapters$7.fromJson(StandardJsonAdapters.java:196)
    at com.squareup.moshi.StandardJsonAdapters$7.fromJson(StandardJsonAdapters.java:193)
    at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
    at com.meisolsson.githubsdk.model.$AutoValue_ReviewComment$MoshiJsonAdapter.fromJson($AutoValue_ReviewComment.java:154)
    at com.meisolsson.githubsdk.model.$AutoValue_ReviewComment$MoshiJsonAdapter.fromJson($AutoValue_ReviewComment.java:31)
    at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
    at com.meisolsson.githubsdk.model.payload.$AutoValue_PullRequestReviewCommentPayload$MoshiJsonAdapter.fromJson($AutoValue_PullRequestReviewCommentPayload.java:59)
    at com.meisolsson.githubsdk.model.payload.$AutoValue_PullRequestReviewCommentPayload$MoshiJsonAdapter.fromJson($AutoValue_PullRequestReviewCommentPayload.java:25)
    at com.meisolsson.githubsdk.core.GitHubEventAdapter.readPayload(GitHubEventAdapter.java:193)
    at com.meisolsson.githubsdk.core.GitHubEventAdapter.fromJson(GitHubEventAdapter.java:101)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.squareup.moshi.AdapterMethodsFactory$AdapterMethod.invoke(AdapterMethodsFactory.java:383)
    at com.squareup.moshi.AdapterMethodsFactory$4.fromJson(AdapterMethodsFactory.java:269)
    at com.squareup.moshi.AdapterMethodsFactory$1.fromJson(AdapterMethodsFactory.java:97)
    ... 34 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Observable.singleOrError(Observable.java:11667)
    at retrofit2.adapter.rxjava2.RxJava2CallAdapter.adapt(RxJava2CallAdapter.java:79)
    at retrofit2.HttpServiceMethod$CallAdapted.adapt(HttpServiceMethod.java:148)
    at retrofit2.HttpServiceMethod.invoke(HttpServiceMethod.java:132)
    at retrofit2.Retrofit$1.invoke(Retrofit.java:149)
    at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
    at $Proxy14.getRepositoryEvents(Unknown Source)
    at com.gh4a.fragment.RepositoryEventListFragment.loadPage(RepositoryEventListFragment.java:34)
    at com.gh4a.fragment.PagedDataBaseFragment.lambda$load$1(PagedDataBaseFragment.java:115)
    at com.gh4a.fragment.PagedDataBaseFragment.$r8$lambda$FsLutP86jPFthU7tNzgg7SaI2jg(Unknown Source:0)
    at com.gh4a.fragment.PagedDataBaseFragment$$ExternalSyntheticLambda3.apply(Unknown Source:6)
    at io.reactivex.internal.operators.observable.ObservableFlatMap$MergeObserver.onNext(ObservableFlatMap.java:121)
    at io.reactivex.internal.util.NotificationLite.accept(NotificationLite.java:246)
    at io.reactivex.subjects.BehaviorSubject$BehaviorDisposable.test(BehaviorSubject.java:569)
    at io.reactivex.subjects.BehaviorSubject$BehaviorDisposable.emitFirst(BehaviorSubject.java:530)
    at io.reactivex.subjects.BehaviorSubject.subscribeActual(BehaviorSubject.java:239)
    at io.reactivex.Observable.subscribe(Observable.java:12284)
    at io.reactivex.internal.operators.observable.ObservableFlatMap.subscribeActual(ObservableFlatMap.java:55)
    at io.reactivex.Observable.subscribe(Observable.java:12284)
    at io.reactivex.Observable.subscribe(Observable.java:12284)
    at io.reactivex.internal.operators.observable.ObservableScanSeed.subscribeActual(ObservableScanSeed.java:47)
    at io.reactivex.Observable.subscribe(Observable.java:12284)
    at io.reactivex.Observable.subscribe(Observable.java:12284)
    at io.reactivex.internal.operators.observable.ObservableFilter.subscribeActual(ObservableFilter.java:30)
    at io.reactivex.Observable.subscribe(Observable.java:12284)
    at io.reactivex.Observable.subscribe(Observable.java:12284)
    at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
    ... 8 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Single.map(Single.java:3045)
    at com.gh4a.fragment.PagedDataBaseFragment.lambda$load$1(PagedDataBaseFragment.java:116)
    ... 26 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Single.map(Single.java:3045)
    at com.gh4a.fragment.PagedDataBaseFragment.lambda$load$1(PagedDataBaseFragment.java:122)
    ... 26 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Single.subscribeOn(Single.java:3740)
    at com.gh4a.utils.RxUtils.doInBackground(RxUtils.java:89)
    at com.gh4a.BaseActivity$$ExternalSyntheticLambda9.apply(Unknown Source:0)
    at io.reactivex.Single.compose(Single.java:2078)
    at com.gh4a.fragment.PagedDataBaseFragment.lambda$load$1(PagedDataBaseFragment.java:123)
    ... 26 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Single.observeOn(Single.java:3161)
    at com.gh4a.utils.RxUtils.doInBackground(RxUtils.java:90)
    ... 29 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Single.wrap(Single.java:1491)
    ... 28 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Single.toObservable(Single.java:4075)
    at com.gh4a.fragment.PagedDataBaseFragment.lambda$load$1(PagedDataBaseFragment.java:124)
    ... 26 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Observable.flatMap(Observable.java:8615)
    at io.reactivex.Observable.flatMap(Observable.java:8568)
    at io.reactivex.Observable.flatMap(Observable.java:8535)
    at io.reactivex.Observable.flatMap(Observable.java:8506)
    at com.gh4a.fragment.PagedDataBaseFragment.load(PagedDataBaseFragment.java:115)
    at com.gh4a.fragment.PagedDataBaseFragment.onViewCreated(PagedDataBaseFragment.java:61)
    at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:2987)
    at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:546)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
    at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
    at androidx.fragment.app.FragmentManager.execSingleAction(FragmentManager.java:1971)
    at androidx.fragment.app.BackStackRecord.commitNowAllowingStateLoss(BackStackRecord.java:311)
    at androidx.fragment.app.FragmentStatePagerAdapter.finishUpdate(FragmentStatePagerAdapter.java:274)
    at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1244)
    at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1092)
    at androidx.viewpager.widget.ViewPager.setOffscreenPageLimit(ViewPager.java:856)
    at com.gh4a.BasePagerActivity.updateTabVisibility(BasePagerActivity.java:143)
    at com.gh4a.BasePagerActivity.invalidatePages(BasePagerActivity.java:61)
    at com.gh4a.BaseFragmentPagerActivity.invalidateFragments(BaseFragmentPagerActivity.java:30)
    at com.gh4a.activities.RepositoryActivity.updateTitle(RepositoryActivity.java:158)
    at com.gh4a.activities.RepositoryActivity.lambda$loadRepository$0(RepositoryActivity.java:362)
    at com.gh4a.activities.RepositoryActivity.$r8$lambda$wyQKNlZUAJF7_bdSQQ50oyVxD0c(Unknown Source:0)
    at com.gh4a.activities.RepositoryActivity$$ExternalSyntheticLambda4.accept(Unknown Source:4)
    at io.reactivex.internal.observers.ConsumerSingleObserver.onSuccess(ConsumerSingleObserver.java:62)
    at com.philosophicalhacker.lib.ReactiveLoaders$LoaderSingle$1.onLoadFinished(ReactiveLoaders.java:55)
    at com.philosophicalhacker.lib.RxLoaderCallbacks.onLoadFinished(RxLoaderCallbacks.java:35)
    at androidx.loader.app.LoaderManagerImpl$LoaderObserver.onChanged(LoaderManagerImpl.java:250)
    at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
    at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
    at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
    at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
    at androidx.loader.app.LoaderManagerImpl$LoaderInfo.setValue(LoaderManagerImpl.java:189)
    at androidx.loader.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManagerImpl.java:174)
    at androidx.loader.content.Loader.deliverResult(Loader.java:132)
    at com.philosophicalhacker.lib.RxLoaderCallbacks$RxAndroidLoader.safeDeliverResult(RxLoaderCallbacks.java:109)
    at com.philosophicalhacker.lib.RxLoaderCallbacks$RxAndroidLoader.access$000(RxLoaderCallbacks.java:44)
    at com.philosophicalhacker.lib.RxLoaderCallbacks$RxAndroidLoader$1.accept(RxLoaderCallbacks.java:80)
    at io.reactivex.internal.observers.ConsumerSingleObserver.onSuccess(ConsumerSingleObserver.java:62)
    at io.reactivex.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:81)
    at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
    at android.os.Handler.handleCallback(Handler.java:958)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:205)
    at android.os.Looper.loop(Looper.java:294)
    at android.app.ActivityThread.main(ActivityThread.java:8177)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Observable.scanWith(Observable.java:11555)
    at io.reactivex.Observable.scan(Observable.java:11519)
    at com.gh4a.fragment.PagedDataBaseFragment.load(PagedDataBaseFragment.java:125)
    ... 44 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Observable.filter(Observable.java:8421)
    at com.gh4a.fragment.PagedDataBaseFragment.load(PagedDataBaseFragment.java:130)
    ... 44 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Observable.subscribeOn(Observable.java:12361)
    at com.philosophicalhacker.lib.ReactiveType$Observable.subscribeOn(ReactiveType.java:49)
    at com.philosophicalhacker.lib.RxLoaderCallbacks$RxAndroidLoader.onForceLoad(RxLoaderCallbacks.java:76)
    at androidx.loader.content.Loader.forceLoad(Loader.java:347)
    at com.philosophicalhacker.lib.RxLoaderCallbacks$RxAndroidLoader.onStartLoading(RxLoaderCallbacks.java:65)
    at androidx.loader.content.Loader.startLoading(Loader.java:285)
    at androidx.loader.app.LoaderManagerImpl$LoaderInfo.onActive(LoaderManagerImpl.java:77)
    at androidx.lifecycle.LiveData.changeActiveCounter(LiveData.java:390)
    at androidx.lifecycle.LiveData$ObserverWrapper.activeStateChanged(LiveData.java:466)
    at androidx.lifecycle.LiveData$LifecycleBoundObserver.onStateChanged(LiveData.java:425)
    at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:354)
    at androidx.lifecycle.LifecycleRegistry.forwardPass(LifecycleRegistry.java:265)
    at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:307)
    at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:148)
    at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:134)
    at androidx.fragment.app.Fragment.performStart(Fragment.java:3026)
    at androidx.fragment.app.FragmentStateManager.start(FragmentStateManager.java:589)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:300)
    ... 40 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Observable.observeOn(Observable.java:10009)
    at io.reactivex.Observable.observeOn(Observable.java:9930)
    at com.philosophicalhacker.lib.ReactiveType$Observable.observeOn(ReactiveType.java:58)
    at com.philosophicalhacker.lib.RxLoaderCallbacks$RxAndroidLoader.onForceLoad(RxLoaderCallbacks.java:77)
    ... 55 more
Caused by: com.tspoon.traceur.TraceurException: Debug Exception generated at call site
    at dalvik.system.VMStack.getThreadStackTrace(Native Method)
    at java.lang.Thread.getStackTrace(Thread.java:1841)
    at io.reactivex.Observable.wrap(Observable.java:4087)
    at io.reactivex.Observable.compose(Observable.java:6417)
    at com.gh4a.fragment.PagedDataBaseFragment.load(PagedDataBaseFragment.java:131)
    at com.gh4a.fragment.PagedDataBaseFragment.onViewCreated(PagedDataBaseFragment.java:61)
    at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:2987)
    at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:546)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
    ... 40 more
maniac103 commented 3 hours ago

Dupe of #1332 (hint: update via F-Droid)