max-kammerer / orion-viewer

Orion Viewer is pdf, djvu, xps, cbz and tiff file viewer for Android devices based on mupdf and DjVuLibre libraries
Other
173 stars 54 forks source link

Error on file opening analyze #38

Closed boosie74 closed 3 years ago

boosie74 commented 3 years ago

[Please provide additional details and/or attach file]

Android Version: 10(29)

Intent { act=android.intent.action.VIEW dat=content://com.corproxy.files.file_provider/file%3A%2F%2F%2Fstorage%2Femulated%2F0%2FDownload%2FGmail%2520-%2520Tell%2520me%2520you%2520saw%2520this....pdf typ=application/pdf flg=0x13000003 cmp=universe.constellation.orion.viewer/.OrionViewerActivity (has extras) }

java.lang.RuntimeException: cannot tell in file
    at com.artifex.mupdf.fitz.Document.openNativeWithPath(Native Method)
    at com.artifex.mupdf.fitz.Document.openDocument(Document.java:32)
    at com.artifex.mupdf.viewer.MuPDFCore.<init>(MuPDFCore.java:35)
    at universe.constellation.orion.viewer.pdf.PdfDocument.<init>(PdfDocument.kt:34)
    at universe.constellation.orion.viewer.FileUtil.openFile(FileUtil.kt:27)
    at universe.constellation.orion.viewer.OrionViewerActivity$openFile$1$newDocument$1.invokeSuspend(OrionViewerActivity.kt:309)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
boosie74 commented 3 years ago

Thank you Sir