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

Occasionally crashed when scrolling to update #1469

Open
Kobayashi-996 opened this issue Jan 2, 2023 · 0 comments
Open

Occasionally crashed when scrolling to update #1469

Kobayashi-996 opened this issue Jan 2, 2023 · 0 comments

Comments

@Kobayashi-996
Copy link

Description

I occasionally met with this bug when I tried to update the top stories by scrolling

Environment

Android: Android 9.0
App Version: 3.3

Logcat

01-01 12:00:25.956 4989 4989 E AndroidRuntime: FATAL EXCEPTION: main
01-01 12:00:25.956 4989 4989 E AndroidRuntime: Process: io.github.hidroh.materialistic, PID: 4989
01-01 12:00:25.956 4989 4989 E AndroidRuntime: java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add onError handling.
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.android.schedulers.LooperScheduler$ScheduledAction.run(LooperScheduler.java:112)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6669)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: Caused by: rx.exceptions.OnErrorNotImplementedException: length=500; index=500
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:386)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:383)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.internal.util.ActionSubscriber.onError(ActionSubscriber.java:44)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:153)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.exceptions.Exceptions.throwOrReport(Exceptions.java:212)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:224)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.android.schedulers.LooperScheduler$ScheduledAction.run(LooperScheduler.java:107)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: ... 7 more
01-01 12:00:25.956 4989 4989 E AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: length=500; index=500
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.widget.StoryRecyclerViewAdapter$4.onInserted(StoryRecyclerViewAdapter.java:399)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at androidx.recyclerview.widget.BatchingListUpdateCallback.dispatchLastEvent(BatchingListUpdateCallback.java:61)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at androidx.recyclerview.widget.BatchingListUpdateCallback.onRemoved(BatchingListUpdateCallback.java:96)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at androidx.recyclerview.widget.DiffUtil$DiffResult.dispatchUpdatesTo(DiffUtil.java:911)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.widget.StoryRecyclerViewAdapter.setUpdated(StoryRecyclerViewAdapter.java:396)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.widget.StoryRecyclerViewAdapter.setItems(StoryRecyclerViewAdapter.java:283)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.ListFragment.onItemsLoaded(ListFragment.java:249)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.ListFragment.lambda$onActivityCreated$4(ListFragment.java:187)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.ListFragment.$r8$lambda$KCbw5lT5IwQLfeH-hTN8C5vik10(Unknown Source:0)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.ListFragment$$ExternalSyntheticLambda2.onChanged(Unknown Source:4)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.StoryListViewModel.setItems(StoryListViewModel.java:47)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.StoryListViewModel.lambda$refreshStories$3(StoryListViewModel.java:42)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.StoryListViewModel.$r8$lambda$yA_bLy3goAa16fjN4fE6mDqYKaM(Unknown Source:0)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at io.github.hidroh.materialistic.StoryListViewModel$$ExternalSyntheticLambda3.call(Unknown Source:4)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:134)
01-01 12:00:25.956 4989 4989 E AndroidRuntime: ... 9 more

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

1 participant