RadaeePDF.com :: Topic: OutOfMemoryError opening files in highend devices (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Here you should submit your bug reports with logcat.

TOPIC: OutOfMemoryError opening files in highend devices

OutOfMemoryError opening files in highend devices 1 year 5 months ago #10649

  • josalo
  • josalo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
When i try to open one file after another it crashes (error below). It happens specially in devices with higher resolution. Any idea what is happening? Thanks
05-25 11:51:50.814 19224-19224/? E/art: Throwing OutOfMemoryError "Failed to allocate a 6389292 byte allocation with 3574040 free bytes and 3MB until OOM"
05-25 11:51:50.881 19224-19224/? E/art: Throwing OutOfMemoryError "Failed to allocate a 6389292 byte allocation with 3738976 free bytes and 3MB until OOM"
05-25 11:51:50.893 19224-19224/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: com.gapsego, PID: 19224
                                                   java.lang.OutOfMemoryError: Failed to allocate a 6389292 byte allocation with 3738976 free bytes and 3MB until OOM
                                                       at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
                                                       at android.graphics.Bitmap.nativeCreate(Native Method)
                                                       at android.graphics.Bitmap.createBitmap(Bitmap.java:812)
                                                       at android.graphics.Bitmap.createBitmap(Bitmap.java:789)
                                                       at android.graphics.Bitmap.createBitmap(Bitmap.java:756)
                                                       at com.radaee.view.PDFLayout.vResize(PDFLayout.java:127)
                                                       at com.radaee.reader.PDFLayoutView.onSizeChanged(PDFLayoutView.java:368)
                                                       at android.view.View.sizeChange(View.java:15830)
                                                       at android.view.View.setFrame(View.java:15795)
                                                       at android.view.View.layout(View.java:15711)
                                                       at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077)
                                                       at android.view.View.layout(View.java:15715)
                                                       at android.view.ViewGroup.layout(ViewGroup.java:5046)
                                                       at com.facebook.react.uimanager.NativeViewHierarchyManager.updateLayout(NativeViewHierarchyManager.java:185)
                                                       at com.facebook.react.uimanager.NativeViewHierarchyManager.updateLayout(NativeViewHierarchyManager.java:170)
                                                       at com.facebook.react.uimanager.UIViewOperationQueue$UpdateLayoutOperation.execute(UIViewOperationQueue.java:122)
                                                       at com.facebook.react.uimanager.UIViewOperationQueue$2.run(UIViewOperationQueue.java:713)
                                                       at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:767)
                                                       at com.facebook.react.uimanager.GuardedChoreographerFrameCallback.doFrame(GuardedChoreographerFrameCallback.java:32)
                                                       at com.facebook.react.uimanager.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:120)
                                                       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:765)
                                                       at android.view.Choreographer.doCallbacks(Choreographer.java:580)
                                                       at android.view.Choreographer.doFrame(Choreographer.java:549)
                                                       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
                                                       at android.os.Handler.handleCallback(Handler.java:739)
                                                       at android.os.Handler.dispatchMessage(Handler.java:95)
                                                       at android.os.Looper.loop(Looper.java:139)
                                                       at android.app.ActivityThread.main(ActivityThread.java:5298)
                                                       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:950)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
The administrator has disabled public write access.

OutOfMemoryError opening files in highend devices 1 year 5 months ago #10650

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 699
  • Thank you received: 53
  • Karma: 15
Hi,
can you please attach your pdf?
The administrator has disabled public write access.

OutOfMemoryError opening files in highend devices 1 year 5 months ago #10651

  • josalo
  • josalo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Its not one PDF in particular, i have loads of them. It happens when opening one after another. Depending on the device i happens in the 7th or the 20th, its random. Tested in a OnePlus X and a Samsung S6.
The administrator has disabled public write access.

OutOfMemoryError opening files in highend devices 1 year 5 months ago #10652

  • josalo
  • josalo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
even opening the same. At the 8th time the error happens:
www.gapsego.com/wp-content/uploads/2016/...sas-anexiales-OK.pdf
The administrator has disabled public write access.

OutOfMemoryError opening files in highend devices 1 year 5 months ago #10653

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 699
  • Thank you received: 53
  • Karma: 15
Hi,
remember to call
m_pager.PDFClose();
in the onDestroy() method or when you exit the pdf.

Please look at PDFPagerAct and take it as example..
Last Edit: 1 year 5 months ago by Davide.
The administrator has disabled public write access.

OutOfMemoryError opening files in highend devices 1 year 5 months ago #10656

  • josalo
  • josalo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
It worked! Thanks!
The administrator has disabled public write access.
Powered by Kunena Forum