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

Canvas: trying to draw too large(192000000bytes) bitmap. #134

Open
AlShahzaib opened this issue Oct 7, 2022 · 0 comments
Open

Canvas: trying to draw too large(192000000bytes) bitmap. #134

AlShahzaib opened this issue Oct 7, 2022 · 0 comments

Comments

@AlShahzaib
Copy link

Exception java.lang.RuntimeException: Canvas: trying to draw too large(192000000bytes) bitmap.
at android.graphics.RecordingCanvas.throwIfCannotDraw (RecordingCanvas.java:280)
at android.graphics.BaseRecordingCanvas.drawBitmap (BaseRecordingCanvas.java:88)
at android.graphics.drawable.BitmapDrawable.draw (BitmapDrawable.java:548)
at android.widget.ImageView.onDraw (ImageView.java:1434)
at me.pqpo.smartcropperlib.view.CropImageView.onDrawMask (CropImageView.java)
at android.view.View.draw (View.java:21551)
at android.view.View.updateDisplayListIfDirty (View.java:20420)
at android.view.View.draw (View.java:21280)
at android.view.ViewGroup.drawChild (ViewGroup.java:4417)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4177)
at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw (ConstraintLayout.java)
at android.view.View.updateDisplayListIfDirty (View.java:20411)
at android.view.View.draw (View.java:21280)
at android.view.ViewGroup.drawChild (ViewGroup.java:4417)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4177)
at android.view.View.updateDisplayListIfDirty (View.java:20411)
at android.view.View.draw (View.java:21280)
at android.view.ViewGroup.drawChild (ViewGroup.java:4417)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4177)
at android.view.View.updateDisplayListIfDirty (View.java:20411)
at android.view.View.draw (View.java:21280)
at android.view.ViewGroup.drawChild (ViewGroup.java:4417)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4177)
at android.view.View.updateDisplayListIfDirty (View.java:20411)
at android.view.View.draw (View.java:21280)
at android.view.ViewGroup.drawChild (ViewGroup.java:4417)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4177)
at android.view.View.updateDisplayListIfDirty (View.java:20411)
at android.view.View.draw (View.java:21280)
at android.view.ViewGroup.drawChild (ViewGroup.java:4417)
at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4177)
at android.view.View.draw (View.java:21554)
at com.android.internal.policy.DecorView.draw (DecorView.java:842)
at android.view.View.updateDisplayListIfDirty (View.java:20420)
at android.view.ThreadedRenderer.updateViewTreeDisplayList (ThreadedRenderer.java:575)
at android.view.ThreadedRenderer.updateRootDisplayList (ThreadedRenderer.java:581)
at android.view.ThreadedRenderer.draw (ThreadedRenderer.java:654)
at android.view.ViewRootImpl.draw (ViewRootImpl.java:3715)
at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:3510)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2847)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1800)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7762)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1031)
at android.view.Choreographer.doCallbacks (Choreographer.java:854)
at android.view.Choreographer.doFrame (Choreographer.java:789)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1016)
at android.os.Handler.handleCallback (Handler.java:883)
at android.os.Handler.dispatchMessage (Handler.java:100)
at android.os.Looper.loop (Looper.java:224)
at android.app.ActivityThread.main (ActivityThread.java:7592)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:950)

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

1 participant