darksoftinc / vudroid

Automatically exported from code.google.com/p/vudroid
0 stars 0 forks source link

VuDroid can't open some pdf file. #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a pdf file (file size is 34 MB).

What is the expected output? What do you see instead?
- VuDroid was crashed.

What version of the product are you using? On what operating system?
- Android 2.1 HTC Hero.

Please provide any additional information below.

I can't attach the file.

-- LOG CAT --
12-10 15:34:17.424: ERROR/AndroidRuntime(28238): Uncaught handler: thread main 
exiting due to uncaught exception
12-10 15:34:17.524: ERROR/AndroidRuntime(28238): java.lang.RuntimeException: 
error loading page
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
org.vudroid.pdfdroid.codec.PdfPage.open(Native Method)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
org.vudroid.pdfdroid.codec.PdfPage.createPage(PdfPage.java:54)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
org.vudroid.pdfdroid.codec.PdfDocument.getPage(PdfDocument.java:18)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
org.vudroid.core.DecodeServiceBase.getPage(DecodeServiceBase.java:174)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
org.vudroid.core.DecodeServiceBase.getEffectivePagesWidth(DecodeServiceBase.java
:191)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
org.vudroid.core.DocumentView.init(DocumentView.java:61)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
org.vudroid.core.DocumentView.access$500(DocumentView.java:20)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
org.vudroid.core.DocumentView$2.run(DocumentView.java:148)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
android.os.Handler.handleCallback(Handler.java:609)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
android.os.Handler.dispatchMessage(Handler.java:92)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
android.os.Looper.loop(Looper.java:123)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
android.app.ActivityThread.main(ActivityThread.java:4595)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
java.lang.reflect.Method.invokeNative(Native Method)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
java.lang.reflect.Method.invoke(Method.java:521)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
12-10 15:34:17.524: ERROR/AndroidRuntime(28238):     at 
dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by wangk...@gmail.com on 10 Dec 2010 at 8:56

GoogleCodeExporter commented 9 years ago
Try adding "synchronized" to declaration of function 
org.vudroid.pdfdroid.codec.PdfPage.createPage.

I've ran into such a problem recently. It was due to concurrential access.

Original comment by ouanilo....@gmail.com on 2 Jul 2014 at 12:58