Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7734 Reply

    YOUNG KIL KIM

    Hi
    Sometimes, occured a Fatal Exception error.
    Could you fix tihs OutofMemoryError issue?

    05-13 11:11:45.410: E/AndroidRuntime(3060): FATAL EXCEPTION: main
    05-13 11:11:45.410: E/AndroidRuntime(3060): Process: com.tomato.xxx.xxxx, PID: 3060
    05-13 11:11:45.410: E/AndroidRuntime(3060): java.lang.OutOfMemoryError
    05-13 11:11:45.410: E/AndroidRuntime(3060): at android.graphics.Bitmap.nativeCreate(Native Method)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at android.graphics.Bitmap.createBitmap(Bitmap.java:809)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at android.graphics.Bitmap.createBitmap(Bitmap.java:786)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at android.graphics.Bitmap.createBitmap(Bitmap.java:753)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at com.epapyrus.plugpdf.core.viewer.PageView.adjustPatch(PageView.java:449)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay.onUserInteractionComplete(SinglePageDisplay.java:157)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay$2.run(SinglePageDisplay.java:283)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at android.os.Handler.handleCallback(Handler.java:733)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at android.os.Handler.dispatchMessage(Handler.java:95)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at android.os.Looper.loop(Looper.java:136)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at android.app.ActivityThread.main(ActivityThread.java:5094)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at java.lang.reflect.Method.invokeNative(Native Method)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at java.lang.reflect.Method.invoke(Method.java:515)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
    05-13 11:11:45.410: E/AndroidRuntime(3060): at dalvik.system.NativeStart.main(Native Method)

    #7735 Reply

    Dr. Plug
    Moderator

    Hi YOUNG KIL KIM,

    Sorry for your inconvenience. I am investigating about OOM from the past. There are various reasons for the OOM problem, but among them, problem do not call ‘clear()’ when closing document is occupy a greater proportion. Also, our SDK steadily updated. So, your problem might have been solved. Please download again our SDK of latest version at http://plugpdf.com/sdkfile/PlugPDF_Android.zip.
    If you have any way can reproduce OOM exception, please let me know. Then I’ll fix it by all means.

    Best Regards,
    Dr.Plug

    #7738 Reply

    YOUNG KIL KIM

    Hi.
    below FATAL exception is also fixed?

    05-13 17:23:30.364: D/AndroidRuntime(11381): Shutting down VM
    05-13 17:23:30.364: W/dalvikvm(11381): threadid=1: thread exiting with uncaught exception (group=0x41fd7d58)
    05-13 17:23:30.374: E/AndroidRuntime(11381): FATAL EXCEPTION: main
    05-13 17:23:30.374: E/AndroidRuntime(11381): Process: com.tomato.solution.newstong, PID: 11381
    05-13 17:23:30.374: E/AndroidRuntime(11381): java.lang.NullPointerException
    05-13 17:23:30.374: E/AndroidRuntime(11381): at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay.layout(SinglePageDisplay.java:334)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay.onLayout(SinglePageDisplay.java:609)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.View.layout(View.java:14984)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewGroup.layout(ViewGroup.java:4679)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at com.epapyrus.plugpdf.core.viewer.ReaderView.onLayout(ReaderView.java:844)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.View.layout(View.java:14984)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewGroup.layout(ViewGroup.java:4679)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.View.layout(View.java:14984)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewGroup.layout(ViewGroup.java:4679)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.View.layout(View.java:14984)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewGroup.layout(ViewGroup.java:4679)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:374)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.View.layout(View.java:14984)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewGroup.layout(ViewGroup.java:4679)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.View.layout(View.java:14984)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewGroup.layout(ViewGroup.java:4679)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2149)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1894)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1121)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6030)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.Choreographer.doFrame(Choreographer.java:544)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.os.Handler.handleCallback(Handler.java:733)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.os.Handler.dispatchMessage(Handler.java:95)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.os.Looper.loop(Looper.java:136)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at android.app.ActivityThread.main(ActivityThread.java:5094)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at java.lang.reflect.Method.invokeNative(Native Method)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at java.lang.reflect.Method.invoke(Method.java:515)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
    05-13 17:23:30.374: E/AndroidRuntime(11381): at dalvik.system.NativeStart.main(Native Method)

    #7740 Reply

    YOUNG KIL KIM

    HI
    latest version is occured Fatal Exception below log.
    Could you release fixed version?

    05-13 17:53:04.454: E/AndroidRuntime(22322): FATAL EXCEPTION: AsyncTask #1
    05-13 17:53:04.454: E/AndroidRuntime(22322): Process: com.tomato.solution.newstong, PID: 22322
    05-13 17:53:04.454: E/AndroidRuntime(22322): java.lang.RuntimeException: An error occured while executing doInBackground()
    05-13 17:53:04.454: E/AndroidRuntime(22322): at android.os.AsyncTask$3.done(AsyncTask.java:304)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at java.util.concurrent.FutureTask.run(FutureTask.java:242)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:235)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at java.lang.Thread.run(Thread.java:841)
    05-13 17:53:04.454: E/AndroidRuntime(22322): Caused by: java.lang.RuntimeException: this document was released.
    05-13 17:53:04.454: E/AndroidRuntime(22322): at com.epapyrus.plugpdf.core.PDFDocument.getPDFHandle(PDFDocument.java:78)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at com.epapyrus.plugpdf.core.PDFDocument.getPageSize(PDFDocument.java:274)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at com.epapyrus.plugpdf.core.viewer.ReaderView.getPageSize(ReaderView.java:1410)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at com.epapyrus.plugpdf.SimpleReaderControlView$17.doInBackground(SimpleReaderControlView.java:459)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at com.epapyrus.plugpdf.SimpleReaderControlView$17.doInBackground(SimpleReaderControlView.java:1)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at android.os.AsyncTask$2.call(AsyncTask.java:292)
    05-13 17:53:04.454: E/AndroidRuntime(22322): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    05-13 17:53:04.454: E/AndroidRuntime(22322): … 4 more

    #7754 Reply

    Dr. Plug
    Moderator

    Hi YOUNG KIL KIM,

    Thank you for your feedback. I tried reproducing the crash as you said. But, I can’t see any crash.

    Concerning NullPointerException, I can just avoid this problem by refer to your log. But, we needs to fix a fundamental problem. So, could you please tell me how to reproduce it? such as: crash on which display(Vertical, Horizontal…).

    Concerning RuntimeException, this error will thrown when using released document. Actually your log said ‘RuntimeException: this document was released.’. You should not use released document. Please check it.

    Best Regards,
    Dr. Plug

    #9644 Reply

    ei phyu phwe

    I also found the Fatal Exception error. I have downloaded plugPDF sdk again and put in my project .But when I open pdf after 4 times later, I got this error again. please help me this issue

    #9650 Reply

    Dr. Plug
    Moderator

    Hi YOUNG KIL KIM,

    Thank you for the inquiry.
    You mean in latest version (v.2.5.112), Fatal exception error comes out and program die after opening a PDF more than 4 times or later?
    We tested that problem you said, Fatal exception doesn’t come out.
    I think that’s the problem of your project. so could you give us a sample project that problem happens?

    Best Regards,
    Dr.Plug

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: java.lang.OutOfMemoryError issue
Your information: