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

Corrupted PDF file can crash root opening #381

Open
kirillt opened this issue Sep 7, 2023 · 0 comments
Open

Corrupted PDF file can crash root opening #381

kirillt opened this issue Sep 7, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@kirillt
Copy link
Member

kirillt commented Sep 7, 2023

ACRA caught a IOException for dev.arkbuilders.navigator
java.io.IOException: file not in PDF format or corrupted
        at android.graphics.pdf.PdfRenderer.nativeCreate(Native Method)
        at android.graphics.pdf.PdfRenderer.<init>(PdfRenderer.java:172)
        at space.taran.arklib.domain.meta.generator.DocumentMetadataGenerator.generate-gIAlu-s(DocumentMetadataGenerator.kt:51)
        at space.taran.arklib.domain.meta.MetadataGenerator$Companion.generate-gIAlu-s(MetadataGenerator.kt:40)
        at space.taran.arklib.domain.meta.RootMetadataProcessor$generate$4.invokeSuspend(RootMetadataProcessor.kt:100)
        at space.taran.arklib.domain.meta.RootMetadataProcessor$generate$4.invoke(Unknown Source:8)
        at space.taran.arklib.domain.meta.RootMetadataProcessor$generate$4.invoke(Unknown Source:4)
        at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
        at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:169)
        at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
        at space.taran.arklib.domain.meta.RootMetadataProcessor.generate(RootMetadataProcessor.kt:84)
        at space.taran.arklib.domain.meta.RootMetadataProcessor.access$generate(RootMetadataProcessor.kt:22)
        at space.taran.arklib.domain.meta.RootMetadataProcessor$generate$2$jobs$1$1.invokeSuspend(RootMetadataProcessor.kt:71)
        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:570)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
        Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@29f427d, Dispatchers.Main]
@kirillt kirillt added the bug Something isn't working label Sep 7, 2023
@kirillt kirillt added the good first issue Good for newcomers label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant