Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Exception: java.lang.OutOfMemoryErro #508

Open
ahmadbajwa8282 opened this issue Sep 22, 2022 · 1 comment
Open

Fatal Exception: java.lang.OutOfMemoryErro #508

ahmadbajwa8282 opened this issue Sep 22, 2022 · 1 comment

Comments

@ahmadbajwa8282
Copy link

ahmadbajwa8282 commented Sep 22, 2022

Android 7.0

implementation 'org.wysaid:gpuimage-plus:2.4.6'

gLSurfaceView?.getResultBitmap { bitmap ->
                        BitmapCompanion.addBitmap(bitmap)
}



Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 20155404 byte allocation with 5162336 free bytes and 4MB until OOM
       at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)
       at android.graphics.Bitmap.nativeCreate(Bitmap.java)
       at android.graphics.Bitmap.createBitmap(Bitmap.java:905)
       at android.graphics.Bitmap.createBitmap(Bitmap.java:882)
       at android.graphics.Bitmap.createBitmap(Bitmap.java:849)
       at org.wysaid.nativePort.CGEImageHandler.nativeGetResultBitmap(CGEImageHandler.java)
       at org.wysaid.nativePort.CGEImageHandler.getResultBitmap(CGEImageHandler.java)
       at org.wysaid.view.ImageGLSurfaceView$5.run(ImageGLSurfaceView.java)
       at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1481)
       at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1253)
@wysaid
Copy link
Owner

wysaid commented Dec 27, 2022

Did this happen with the builtin demo?
Can you provide a show case or step to see this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants