InfinityLoop1308 / PipePipe

A FLOSS Android app to let you browse YouTube, NicoNico and BiliBili freely.
GNU General Public License v3.0
2.09k stars 44 forks source link

[Bug] feed update causes app to crash while watching videos in 3.7.0 #380

Closed Ananas-Kuchen closed 1 month ago

Ananas-Kuchen commented 2 months ago

Checklist (Your issue will be automatically closed if you delete this part)

Describe the bug

Loading the update feed in the background causes the app to suddenly force close while watching a video (live or not), no crash log appears after opening the app again. This issue did not occur on older versions like 3.6.1

Steps to reproduce the bug

-

Device

redmi 6, android 8.1.0, armeabi-v7a

Error report

-

Additional context

To prevent the interruption with the force close issue, I have to disable the update feed before watching a video, then enable the update feed when I am not watching a video anymore

Ananas-Kuchen commented 2 months ago

just got a bug report. I don't know if it's related to the cause of the force close or something else. Here's the report attachment

## Exception * __User Action:__ new streams notifications * __Request:__ main worker * __Content Country:__ JP * __Content Language:__ en-GB * __App Language:__ en_GB * __Service:__ none * __Version:__ 3.7.0 * __OS:__ Linux Android 8.1.0 - 27
Crash log

``` android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. at android.database.CursorWindow.(CursorWindow.java:108) at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198) at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:140) at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:134) at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:220) at android.database.AbstractCursor.moveToFirst(AbstractCursor.java:265) at org.schabi.newpipe.database.stream.dao.StreamDAO_Impl.exists$PipePipe_3_7_0_release(StreamDAO_Impl.java:871) at org.schabi.newpipe.local.feed.FeedDatabaseManager.doesStreamExist(FeedDatabaseManager.kt:82) at org.schabi.newpipe.local.feed.service.FeedLoadManager$DatabaseConsumer.filterNewStreams(FeedLoadManager.kt:306) at org.schabi.newpipe.local.feed.service.FeedLoadManager$DatabaseConsumer.accept$lambda-1(FeedLoadManager.kt:273) at org.schabi.newpipe.local.feed.service.FeedLoadManager$DatabaseConsumer.$r8$lambda$hQpfvtUlaXQXYQd4-JoOqIM9luo(Unknown Source:0) at org.schabi.newpipe.local.feed.service.FeedLoadManager$DatabaseConsumer$$ExternalSyntheticLambda0.run(Unknown Source:6) at androidx.room.RoomDatabase.runInTransaction(RoomDatabase.java:640) at org.schabi.newpipe.local.feed.service.FeedLoadManager$DatabaseConsumer.accept(FeedLoadManager.kt:267) at org.schabi.newpipe.local.feed.service.FeedLoadManager$DatabaseConsumer.accept(FeedLoadManager.kt:264) at io.reactivex.rxjava3.internal.operators.flowable.FlowableDoOnEach$DoOnEachSubscriber.onNext(FlowableDoOnEach.java:86) at io.reactivex.rxjava3.internal.operators.flowable.FlowableBuffer$PublisherBufferExactSubscriber.onNext(FlowableBuffer.java:124) at io.reactivex.rxjava3.internal.operators.flowable.FlowableObserveOn$ObserveOnSubscriber.runAsync(FlowableObserveOn.java:402) at io.reactivex.rxjava3.internal.operators.flowable.FlowableObserveOn$BaseObserveOnSubscriber.run(FlowableObserveOn.java:176) at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:65) at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:56) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) ```


InfinityLoop1308 commented 2 months ago

How many subscriptions do you have? And does this happen in NewPipe?

Ananas-Kuchen commented 2 months ago

How many subscriptions do you have? And does this happen in NewPipe?

little sir, only 1214.

when scrolling down in the subscribe tab and selecting the subcribe that you want to add to the channel group, it feels often stuttering and slow. faster if I paste the channel name in search bar instead of scrolling down. my phone RAM is small and accept this

scrolling being slow due to many subscriptions also happened last time I used newpipe, so this is not a new thing

out of 1214 only 98 notifications are active. the number is still the same as when I was using version 3.6.1

then I no longer use newpipe or any other fork, except pipepipe

InfinityLoop1308 commented 2 months ago

Have you tried Settings->Content->Fetch Channel tabs-> select videos only?

InfinityLoop1308 commented 1 month ago

I assume your issue is solved by my previous response - if not, feel free to reopen the issue.