mihonapp / mihon

Free and open source manga reader for Android
Apache License 2.0
9.19k stars 404 forks source link

Crash when removing items from library #93

Open THElegend5 opened 7 months ago

THElegend5 commented 7 months ago

Steps to reproduce

  1. Open tachiyomi.
  2. Open any category.
  3. Remove multiple items from this category.

Expected behavior

Nothing happens.

Actual behavior

Tachiyomi crashes.

Crash logs

09-19 02:11:20.146 19324 19492 E CursorWindow: Failed to read row 613, column 0 from a CursorWindow which has 613 rows, 21 columns. 09-19 02:11:20.187 19324 19555 E ACRA : ACRA caught a NullPointerException for eu.kanade.tachiyomi.debug 09-19 02:11:20.187 19324 19555 E ACRA : java.lang.NullPointerException 09-19 02:11:20.187 19324 19555 E ACRA : at eu.kanade.tachiyomi.app.CategoriesQueriesImpl$getCategories$1$$ExternalSyntheticOutline0.m(R8$$SyntheticClass:1) 09-19 02:11:20.187 19324 19555 E ACRA : at eu.kanade.tachiyomi.app.MangasQueriesImpl$getLibrary$1.invoke(DatabaseImpl.kt:20) 09-19 02:11:20.187 19324 19555 E ACRA : at com.squareup.sqldelight.Query.executeAsList(Query.kt:18) 09-19 02:11:20.187 19324 19555 E ACRA : at com.squareup.sqldelight.runtime.coroutines.FlowQuery$mapToList$1$1.invokeSuspend(FlowExtensions.kt:6) 09-19 02:11:20.187 19324 19555 E ACRA : at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:12) 09-19 02:11:20.187 19324 19555 E ACRA : at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:107) 09-19 02:11:20.187 19324 19555 E ACRA : at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:13) 09-19 02:11:20.187 19324 19555 E ACRA : at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3) 09-19 02:11:20.187 19324 19555 E ACRA : at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:1) 09-19 02:11:20.187 19324 19555 E ACRA : at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:66) 09-19 02:11:20.187 19324 19555 E ACRA : Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@2c9dded, Dispatchers.IO]

Mihon version

0.16.0

Android version

Android 14

Device

Samsung S21 FE

Other details

https://private-user-images.githubusercontent.com/63903377/189610647-81e213fb-debd-412c-a62b-e5feab33b89f.mp4?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDU1MTkyMDksIm5iZiI6MTcwNTUxODkwOSwicGF0aCI6Ii82MzkwMzM3Ny8xODk2MTA2NDctODFlMjEzZmItZGViZC00MTJjLWE2MmItZTVmZWFiMzNiODlmLm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTE3VDE5MTUwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE3YWY5OWIyMTgyYTZkZWY5OGMzY2MyYzkyN2E5YzNlNzg1MDhhMzdhYjU1ODgxNzJjMWRiYTZiMDIyZjVkNzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.py8kV9h53gz-iRn6CR0PCW2lTEeD9a0faa7TyPzj50I

The crash still happens in mihon.

~Reference: https://github.com/tachiyomiorg/tachiyomi/issues/7997~ Reference: http://web.archive.org/web/20240130145643/https://git.mihon.dev/tachiyomi/tachiyomi/issues/7997

Acknowledgements

samanta-widjaja commented 7 months ago

this bug already here is tachiyomi. hope it can be fixed

trancephormer commented 1 month ago

Happening with me as well

https://github.com/user-attachments/assets/b344bd02-f385-4704-8ecf-9013dbe00fd0

mihon_crash_logs.txt