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)