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

Occasional IllegalStateException when updating repositories #662

Open
gbakeman opened this issue Sep 16, 2024 · 0 comments
Open

Occasional IllegalStateException when updating repositories #662

gbakeman opened this issue Sep 16, 2024 · 0 comments

Comments

@gbakeman
Copy link

Describe the bug
At some point, NeoStore has started crashing with an IllegalStateException error while updating repositories. It also randomly caused another app to crash while I was using it (one that was downloaded through NeoStore.) I was able to verify that the row number is not consistent and changes from error to error, and that clearing the cache did not help.

Full Exception

java.lang.IllegalStateException: Couldn't read row 193, col 0 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:538)
	at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75)
	at com.machiav3lli.fdroid.database.dao.ProductDao_Impl.__entityCursorConverter_comMachiav3lliFdroidDatabaseEntityProduct(SourceFile:186)
	at androidx.work.impl.model.WorkSpecDao_Impl$21.call(SourceFile:186)
	at androidx.room.CoroutinesRoom$Companion$createFlow$1$1$1.invokeSuspend(SourceFile:81)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
	at kotlinx.coroutines.DispatchedTask.run(Unknown Source:94)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)
	Suppressed: java.lang.IllegalStateException: Couldn't read row 193, col 0 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:538)
		at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75)
		at com.machiav3lli.fdroid.database.dao.ProductDao_Impl.__entityCursorConverter_comMachiav3lliFdroidDatabaseEntityProduct(SourceFile:186)
		at com.machiav3lli.fdroid.database.dao.ProductDao_Impl.queryObject(SourceFile:1)
		at com.machiav3lli.fdroid.database.dao.ProductDao_Impl.queryObject(SourceFile:4)
		at com.machiav3lli.fdroid.viewmodels.SingleListVM$products$1$1.invokeSuspend(SourceFile:14)
		at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
		at kotlinx.coroutines.DispatchedTask.run(Unknown Source:94)
		at androidx.work.Worker$2.run(SourceFile:27)
		at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2)
		at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:96)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@6533619, Dispatchers.Main.immediate]

To Reproduce
Steps to reproduce the behavior:

  1. Begin process of updating repositories
  2. NeoStore may or may not crash with the above error

Relevant information:

  • Device: OnePlus 6T
  • Android Version: 9.0
  • ROM: Stock OxygenOS
  • App's Version: 1.0.5
  • Disabled battery optimization for Neo Store? No - left on due to a previous issue
  • What is your selected installer? Root
@gbakeman gbakeman changed the title Occassional IllegalStateException when updating repositories Occasional IllegalStateException when updating repositories Sep 16, 2024
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