android-gpuimage-plus icon indicating copy to clipboard operation
android-gpuimage-plus copied to clipboard

AndroidBitmap_lockPixels() failed ! error=-1

Open nb312 opened this issue 6 years ago • 3 comments

Call Location

When I call the CGEImageHandler.getResultBitmap() ,It has an error here.

CGEImageHandler{ public Bitmap getResultBitmap() { return nativeGetResultBitmap(mNativeAddress); } }

ERROR

java.lang.IllegalArgumentException: width and height must be > 0 android.graphics.Bitmap.createBitmap(Bitmap.java:1015) android.graphics.Bitmap.createBitmap(Bitmap.java:982) android.graphics.Bitmap.createBitmap(Bitmap.java:932) android.graphics.Bitmap.createBitmap(Bitmap.java:893) org.wysaid.nativePort.CGEImageHandler.nativeGetResultBitmap(Native Method) org.wysaid.nativePort.CGEImageHandler.getResultBitmap(CGEImageHandler.java:41) org.wysaid.view.ImageGLSurfaceView$5.run(ImageGLSurfaceView.java:215) android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1500) android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)

Thanks

I have take a few day to solve this error, but do not solve it. Hope someone help me solve this.

nb312 avatar Jun 20 '19 07:06 nb312

please produce the problem with the demo, and paste your link here

wysaid avatar Jun 21 '19 09:06 wysaid

please produce the problem with the demo, and paste your link here

thanks for your reply, I had solved this problem. That is because of the surface view in the android.

nb312 avatar Jun 21 '19 15:06 nb312

please produce the problem with the demo, and paste your link here

thanks for your reply, I had solved this problem. That is because of the surface view in the android.

Can you suggest where the changes needed to be made. Thank you

Mr-Ramzan avatar Mar 28 '22 06:03 Mr-Ramzan