Skip to content

[Bug] Watch history crashes when deleting a video #2954

Description

@shishcraft5

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

Deleting a video from watch history sometimes causes error. Everything goes back to normal as soon as you tap "retry" but it's kind of annoying

Exception

  • User Action: something else
  • Request: History Statistics
  • Content Country:
  • Content Language: it-
  • App Language: it
  • Service: none
  • Endpoint: mweb
  • Version: 5.4.0-beta
  • OS: Linux Android 16 - 36
Crash log

java.lang.IllegalStateException: Couldn't read row 1168, col 14 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.
	at android.database.CursorWindow.nativeGetLong(Native Method)
	at android.database.CursorWindow.getLong(CursorWindow.java:573)
	at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:78)
	at androidx.sqlite.driver.SupportSQLiteStatement$RowSQLiteStatement.getLong(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:11)
	at org.schabi.newpipe.database.history.dao.StreamHistoryDAO_Impl$$ExternalSyntheticLambda0.invoke(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:484)
	at androidx.room.util.DBUtil__DBUtil_androidKt$performSuspending$lambda$1$$inlined$internalPerform$1.invokeSuspend(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:213)
	at androidx.room.util.DBUtil__DBUtil_androidKt$performSuspending$lambda$1$$inlined$internalPerform$1.invoke(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:13)
	at androidx.room.coroutines.PassthroughConnectionPool$useConnection$2.invokeSuspend(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:28)
	at androidx.room.coroutines.PassthroughConnectionPool$useConnection$2.invoke(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:13)
	at org.acra.util.StubCreator.startUndispatchedOrReturn(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:16)
	at kotlinx.coroutines.JobKt.withContext(dex-id-299c26f0afa1d517be3532ed004e9f044c1f047e:79)
	at androidx.room.coroutines.PassthroughConnectionPool.useConnection(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:52)
	at androidx.room.RoomDatabase.useConnection(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:7)
	at androidx.room.util.DBUtil__DBUtil_androidKt$performSuspending$$inlined$compatCoroutineExecute$DBUtil__DBUtil_androidKt$1.invokeSuspend(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:38)
	at androidx.room.util.DBUtil__DBUtil_androidKt$performSuspending$$inlined$compatCoroutineExecute$DBUtil__DBUtil_androidKt$1.invoke(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:13)
	at org.acra.util.StubCreator.startUndispatchedOrReturn(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:16)
	at kotlinx.coroutines.JobKt.withContext(dex-id-299c26f0afa1d517be3532ed004e9f044c1f047e:79)
	at androidx.room.util.DBUtil.performSuspending(dex-id-299c26f0afa1d517be3532ed004e9f044c1f047e:167)
	at androidx.room.coroutines.FlowUtil$createFlow$$inlined$map$1$2.emit(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:75)
	at kotlinx.coroutines.flow.FlowKt.emitAllImpl$FlowKt__ChannelsKt(dex-id-299c26f0afa1d517be3532ed004e9f044c1f047e:136)
	at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:12)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:8)
	at kotlinx.coroutines.DispatchedTask.run(r8-map-id-6e2149fa4e08cca9cb00902c0fb26d96734ca48143855f87b7975f55630a1d0d:111)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1100)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:1572)


Version

5.4.0-beta and previous versions

Frequency

Sometimes (40-60% of the time)

Device

Tcl nxtpaper 60 ultra, android 16

Steps to reproduce the bug

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions