android-pdfview icon indicating copy to clipboard operation
android-pdfview copied to clipboard

error loading page

Open githubityu opened this issue 9 years ago • 8 comments

02-22 16:02:31.688: E/AndroidRuntime(5700): java.lang.RuntimeException: error loading page 02-22 16:02:31.688: E/AndroidRuntime(5700): at org.vudroid.pdfdroid.codec.PdfPage.open(Native Method) 02-22 16:02:31.688: E/AndroidRuntime(5700): at org.vudroid.pdfdroid.codec.PdfPage.createPage(PdfPage.java:55) 02-22 16:02:31.688: E/AndroidRuntime(5700): at org.vudroid.pdfdroid.codec.PdfDocument.getPage(PdfDocument.java:18) 02-22 16:02:31.688: E/AndroidRuntime(5700): at org.vudroid.core.DecodeServiceBase.getPage(DecodeServiceBase.java:175) 02-22 16:02:31.688: E/AndroidRuntime(5700): at org.vudroid.core.DecodeServiceBase.getPageWidth(DecodeServiceBase.java:214) 02-22 16:02:31.688: E/AndroidRuntime(5700): at com.joanzapata.pdfview.PDFView.loadComplete(PDFView.java:656) 02-22 16:02:31.688: E/AndroidRuntime(5700): at com.joanzapata.pdfview.DecodingAsyncTask.onPostExecute(DecodingAsyncTask.java:55) 02-22 16:02:31.688: E/AndroidRuntime(5700): at com.joanzapata.pdfview.DecodingAsyncTask.onPostExecute(DecodingAsyncTask.java:1) 02-22 16:02:31.688: E/AndroidRuntime(5700): at android.os.AsyncTask.finish(AsyncTask.java:632) 02-22 16:02:31.688: E/AndroidRuntime(5700): at android.os.AsyncTask.access$600(AsyncTask.java:177) 02-22 16:02:31.688: E/AndroidRuntime(5700): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645) 02-22 16:02:31.688: E/AndroidRuntime(5700): at android.os.Handler.dispatchMessage(Handler.java:102) 02-22 16:02:31.688: E/AndroidRuntime(5700): at android.os.Looper.loop(Looper.java:136) 02-22 16:02:31.688: E/AndroidRuntime(5700): at android.app.ActivityThread.main(ActivityThread.java:5072) 02-22 16:02:31.688: E/AndroidRuntime(5700): at java.lang.reflect.Method.invokeNative(Native Method) 02-22 16:02:31.688: E/AndroidRuntime(5700): at java.lang.reflect.Method.invoke(Method.java:515) 02-22 16:02:31.688: E/AndroidRuntime(5700): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 02-22 16:02:31.688: E/AndroidRuntime(5700): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 02-22 16:02:31.688: E/AndroidRuntime(5700): at dalvik.system.NativeStart.main(Native Method)

githubityu avatar Feb 22 '16 08:02 githubityu

i have same problem too, how to resolved it ?

derohimat avatar Feb 23 '16 17:02 derohimat

java.lang.RuntimeException: error loading page at org.vudroid.pdfdroid.codec.PdfPage.open(Native Method) at org.vudroid.pdfdroid.codec.PdfPage.createPage(PdfPage.java:55) at org.vudroid.pdfdroid.codec.PdfDocument.getPage(PdfDocument.java:18) at org.vudroid.core.DecodeServiceBase.getPage(DecodeServiceBase.java:175)

derohimat avatar Feb 23 '16 17:02 derohimat

Some PDF files can be read normally, but some can not read, do not know why.

githubityu avatar Feb 24 '16 03:02 githubityu

I have the same problem only if I perform one loading after another one, several times (each one waits the previous to finish),

An "onErrorListener" will be great in order to avoid the RuntimeException.

eaceto avatar Feb 24 '16 17:02 eaceto

https://github.com/muennich/mupdf Use this library

githubityu avatar Mar 02 '16 03:03 githubityu

i have the same problem,some PDF files can be read,but some can not read,why?

491129830 avatar Mar 03 '16 06:03 491129830

java.lang.RuntimeException: error loading page??????????????why???????????????

xiaominglei001 avatar Mar 25 '16 03:03 xiaominglei001

Is there a solution for this error or not? Actually its very frustrating because application crashes for random pdf files and can not even handle this exception through try catch block.

sarfarazr1406 avatar May 06 '16 05:05 sarfarazr1406