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

CGEImageHandler.nativeGetResultBitmap #524

Open
epegasus opened this issue Nov 16, 2023 · 2 comments
Open

CGEImageHandler.nativeGetResultBitmap #524

epegasus opened this issue Nov 16, 2023 · 2 comments

Comments

@epegasus
Copy link

I'm facing this crash, reported via firebase-crashlytics.

Device Details

android 12 11 10
samsung, oppo, xiaomi, transsion

Trace

java.lang.IllegalArgumentException - width and height must be > 0

Fatal Exception: java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:1237)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1204)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1154)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1115)
at org.wysaid.nativePort.CGEImageHandler.nativeGetResultBitmap(CGEImageHandler.java)
at org.wysaid.nativePort.CGEImageHandler.getResultBitmap(CGEImageHandler.java:41)
at org.wysaid.view.ImageGLSurfaceView$7.run(ImageGLSurfaceView.java:271)
at com.google.android.gms.common.api.internal.zao.run(com.google.android.gms:play-services-base@@18.0.0:15)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1510)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1280)

wysaid added a commit that referenced this issue Nov 21, 2023
@wysaid
Copy link
Owner

wysaid commented Nov 21, 2023

Get. You're calling getResultBitmap with a 0x0 resolution.
Add a check here: #526

wysaid added a commit that referenced this issue Nov 21, 2023
wysaid added a commit that referenced this issue Nov 21, 2023
@wysaid
Copy link
Owner

wysaid commented Nov 22, 2023

Please try the latest version of the source.

wysaid added a commit that referenced this issue Apr 9, 2024
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