ARK-Builders / ARK-Navigator

Android app for navigation through your data
MIT License
15 stars 15 forks source link

Crash during Link opening (Zip-archive of wrong format) #279

Closed kirillt closed 2 years ago

kirillt commented 2 years ago

We should handle this exception:

java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:238)
    at java.util.zip.ZipFile.<init>(ZipFile.java:152)
    at java.util.zip.ZipFile.<init>(ZipFile.java:166)
    at space.taran.arknavigator.mvp.model.repo.kind.LinkKindFactory.fromPath(LinkKindFactory.kt:19)
    at space.taran.arknavigator.mvp.model.repo.kind.LinkKindFactory.fromPath(LinkKindFactory.kt:10)
    at space.taran.arknavigator.mvp.model.repo.kind.GeneralKindFactory.fromPath(ResourceKindFactory.kt:34)
    at space.taran.arknavigator.mvp.model.repo.index.ResourceMeta$Companion.fromPath(ResourceMeta.kt:29)
    at space.taran.arknavigator.mvp.model.repo.index.PlainResourcesIndex$reindexRoot$2.invokeSuspend(PlainResourcesIndex.kt:137)
    at space.taran.arknavigator.mvp.model.repo.index.PlainResourcesIndex$reindexRoot$2.invoke(Unknown Source:8)
    at space.taran.arknavigator.mvp.model.repo.index.PlainResourcesIndex$reindexRoot$2.invoke(Unknown Source:4)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
    at space.taran.arknavigator.mvp.model.repo.index.PlainResourcesIndex.reindexRoot$app_release(PlainResourcesIndex.kt:108)
    at space.taran.arknavigator.mvp.model.repo.index.PlainResourcesIndex$reindex$2.invokeSuspend(PlainResourcesIndex.kt:72)
    at space.taran.arknavigator.mvp.model.repo.index.PlainResourcesIndex$reindex$2.invoke(Unknown Source:8)
    at space.taran.arknavigator.mvp.model.repo.index.PlainResourcesIndex$reindex$2.invoke(Unknown Source:4)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
    at space.taran.arknavigator.mvp.model.repo.index.PlainResourcesIndex.reindex(PlainResourcesIndex.kt:71)
    at space.taran.arknavigator.mvp.model.repo.index.ResourcesIndexRepo$loadFromDatabase$2.invokeSuspend(ResourcesIndexRepo.kt:42)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)