Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Here you should submit your bug reports with logcat.

OutOfMemoryError opening files in highend devices

More
9 years 10 months ago #10649 by josalo
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
Code:
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)
More
9 years 10 months ago #10650 by Davide
Hi,
can you please attach your pdf?
More
9 years 10 months ago #10651 by josalo
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.
More
9 years 10 months ago #10652 by josalo
even opening the same. At the 8th time the error happens:
www.gapsego.com/wp-content/uploads/2016/...sas-anexiales-OK.pdf
More
9 years 10 months ago - 9 years 10 months ago #10653 by Davide
Hi,
remember to call
Code:
m_pager.PDFClose();
in the onDestroy() method or when you exit the pdf.

Please look at PDFPagerAct and take it as example..
Last edit: 9 years 10 months ago by Davide.
More
9 years 10 months ago #10656 by josalo
It worked! Thanks!
Time to create page: 0.460 seconds
Powered by Kunena Forum