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

MultimediaActivity: Canvas: trying to draw too large(192000000bytes) bitmap #17378

Closed
Tracked by #17370
david-allison opened this issue Nov 7, 2024 · 3 comments
Closed
Tracked by #17370

Comments

@david-allison
Copy link
Member

david-allison commented Nov 7, 2024

https://ankidroid.org/acra/app/1/bug/254079/report/8394c29e-bae5-4c6a-9684-09600daff226

java.lang.RuntimeException: Canvas: trying to draw too large(192000000bytes) bitmap.
	at android.graphics.RecordingCanvas.throwIfCannotDraw(RecordingCanvas.java:266)
	at android.graphics.BaseRecordingCanvas.drawBitmap(BaseRecordingCanvas.java:94)
	at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:549)
	at android.widget.ImageView.onDraw(ImageView.java:1449)
	at android.view.View.draw(View.java:23351)
	at android.view.View.updateDisplayListIfDirty(View.java:22210)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at android.view.View.draw(View.java:23356)
	at android.view.View.updateDisplayListIfDirty(View.java:22210)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1994)
	at android.view.View.updateDisplayListIfDirty(View.java:22199)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at androidx.coordinatorlayout.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1277)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at android.view.View.updateDisplayListIfDirty(View.java:22199)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at androidx.fragment.app.FragmentContainerView.drawChild(FragmentContainerView.kt:232)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at androidx.fragment.app.FragmentContainerView.dispatchDraw(FragmentContainerView.kt:222)
	at android.view.View.updateDisplayListIfDirty(View.java:22199)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1994)
	at android.view.View.updateDisplayListIfDirty(View.java:22199)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at androidx.coordinatorlayout.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1277)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at android.view.View.updateDisplayListIfDirty(View.java:22199)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at android.view.View.updateDisplayListIfDirty(View.java:22199)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at android.view.View.updateDisplayListIfDirty(View.java:22199)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at android.view.View.updateDisplayListIfDirty(View.java:22199)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at android.view.View.updateDisplayListIfDirty(View.java:22199)
	at android.view.View.draw(View.java:23076)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4544)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4302)
	at android.view.View.draw(View.java:23356)
	at com.android.internal.policy.DecorView.draw(DecorView.java:896)
	at android.view.View.updateDisplayListIfDirty(View.java:22210)
	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:682)
	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:690)
	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:795)
	at android.view.ViewRootImpl.draw(ViewRootImpl.java:4924)
	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:4625)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3813)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2543)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9465)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1451)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1459)
	at android.view.Choreographer.doCallbacks(Choreographer.java:1089)
	at android.view.Choreographer.doFrame(Choreographer.java:1003)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1431)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:211)
	at android.os.Looper.loop(Looper.java:300)
	at android.app.ActivityThread.main(ActivityThread.java:8289)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
@david-allison david-allison changed the title https://ankidroid.org/acra/app/1/bug/254079/report/8394c29e-bae5-4c6a-9684-09600daff226 MultimediaActivity: Canvas: trying to draw too large(192000000bytes) bitmap Nov 7, 2024
@david-allison
Copy link
Member Author

@criticalAY FYI

@criticalAY criticalAY self-assigned this Nov 7, 2024
@david-allison david-allison added this to the 2.19.2 release milestone Nov 7, 2024
@criticalAY
Copy link
Contributor

ImageView related issue, the code is being migrated to webview we can wait for the next release after

is merged this should be fixed hopefully

@mikehardy
Copy link
Member

I posted a PR that actually fixes this, using WebView does not really fix it (noted same in that PR, with repro)

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

No branches or pull requests

3 participants