Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #5841 Reply

    Khaled Alqasrawi

    When I swipe fast and change the page multiple time in a row, the app crashes because of an OutOfMemoryError, this is the crash report :

    FATAL EXCEPTION: main
    java.lang.OutOfMemoryError
    android.graphics.Bitmap.nativeCreate(Native Method)
    android.graphics.Bitmap.createBitmap(Bitmap.java:689)
    android.graphics.Bitmap.createBitmap(Bitmap.java:666)
    android.graphics.Bitmap.createBitmap(Bitmap.java:633)
    com.epapyrus.plugpdf.core.viewer.PageView.createEntireBitmap(PageView.java:563)
    com.epapyrus.plugpdf.core.viewer.PageView.drawEntire(PageView.java:215)
    com.epapyrus.plugpdf.core.viewer.PageView.setPage(PageView.java:194)
    com.epapyrus.plugpdf.core.viewer.PageAdapter$PageLoaderTask.onPostExecute(PageAdapter.java:89)
    com.epapyrus.plugpdf.core.viewer.PageAdapter$PageLoaderTask.onPostExecute(PageAdapter.java:70)
    android.os.AsyncTask.finish(AsyncTask.java:631)
    android.os.AsyncTask.access$600(AsyncTask.java:177)
    android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
    android.os.Handler.dispatchMessage(Handler.java:99)
    android.os.Looper.loop(Looper.java:137)
    android.app.ActivityThread.main(ActivityThread.java:5041)
    java.lang.reflect.Method.invokeNative(Native Method)
    java.lang.reflect.Method.invoke(Method.java:511)
    com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    dalvik.system.NativeStart.main(Native Method)

    #5843 Reply

    Dr. Plug
    Moderator

    Hi Khaled,

    Sorry for your inconvenience. I found that crash. I will fix the issue and notice as soon as possible.

    Thanks.

    Dr.Plug

    • This reply was modified 1 year, 11 months ago by  Dr. Plug.
    #5858 Reply

    Khaled Alqasrawi

    Thank you,

    I have another OutOfMemoryError, please check it:

    java.lang.OutOfMemoryError
    at android.graphics.Bitmap.nativeCreate(Bitmap.java)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:791)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:768)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:735)
    at com.epapyrus.plugpdf.core.viewer.PageView.adjustPatch(PageView.java:411)
    at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay.onUserInteractionComplete(SinglePageDisplay.java:160)
    at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay$2.run(SinglePageDisplay.java:275)
    at android.os.Handler.handleCallback(Handler.java:730)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5450)
    at java.lang.reflect.Method.invokeNative(Method.java)
    at java.lang.reflect.Method.invoke(Method.java:525)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
    at dalvik.system.NativeStart.main(NativeStart.java)

    #5871 Reply

    Dr. Plug
    Moderator

    Hi Khaled,

    It seems that the memory management feature of our sdk needs to be revised. But, it takes a little time to fix it because we are fixing some additional issues within our sdk.  However, due to the important nature, we are also working on this fix, now.

    Thanks a lot.

    #5897 Reply

    Dr. Plug
    Moderator

    Hi Khaled,

    With your inquiry, we’ve fixed the memory bug. We have just updated the fixed PlugPDF SDK at http://plugpdf.com/sdkfile/PlugPDF_Android.zip.
    Thanks for your inquiry. I hope that you can make an excellent app with the PlugPDF SDK.

     

    Cheers,

     

    Dr. Plug

    #6284 Reply

    Khaled Alqasrawi

    I got another OutOfMemoryError when swiping fast, this is crash log I get:

    java.lang.OutOfMemoryError
    at android.graphics.Bitmap.nativeCreate(Bitmap.java)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:924)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:901)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:868)
    at com.epapyrus.plugpdf.core.viewer.PageView.adjustPatch(PageView.java:416)
    at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay.onUserInteractionComplete(SinglePageDisplay.java:160)
    at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay$2.run(SinglePageDisplay.java:273)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5586)
    at java.lang.reflect.Method.invokeNative(Method.java)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    at dalvik.system.NativeStart.main(NativeStart.java)

    #6285 Reply

    Khaled Alqasrawi

    also I got another OutOfMemoryError:

    java.lang.OutOfMemoryError: Failed to allocate a 2794468 byte allocation with 1107556 free bytes and 1081KB until OOM
    at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    at android.graphics.Bitmap.nativeCreate(Native Method)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:817)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:794)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:761)
    at com.epapyrus.plugpdf.core.viewer.PageView.createEntireBitmap(PageView.java:576)
    at com.epapyrus.plugpdf.core.viewer.PageView.drawEntire(PageView.java:220)
    at com.epapyrus.plugpdf.core.viewer.PageView.setPage(PageView.java:199)
    at com.epapyrus.plugpdf.core.viewer.PageAdapter$PageLoaderTask.onPostExecute(PageAdapter.java:93)
    at com.epapyrus.plugpdf.core.viewer.PageAdapter$PageLoaderTask.onPostExecute(PageAdapter.java:65)
    at android.os.AsyncTask.finish(AsyncTask.java:632)
    at android.os.AsyncTask.access$600(AsyncTask.java:177)
    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5221)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

    #6292 Reply

    Dr. Plug
    Moderator

    Hi Khaled,

    Did you still the crash, despite update? Then, I need your APK, and PDF file. So, Could you please email me at ‘support@plugpdf.com’ to continue this discussion instead of using the forum?

    Cheers.

    Dr.Plug

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: OutOfMemoryError when swiping fast a relatively big file
Your information: