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

查看过大尺寸条目图片时Crash #23

Open
TkzcM opened this issue Aug 8, 2021 · 0 comments
Open

查看过大尺寸条目图片时Crash #23

TkzcM opened this issue Aug 8, 2021 · 0 comments

Comments

@TkzcM
Copy link

TkzcM commented Aug 8, 2021

如:https://bgm.tv/subject/340277

Logcat:

FATAL EXCEPTION: main
Process: soko.ekibun.bangumi, PID: 17204
java.lang.RuntimeException: Canvas: trying to draw too large(144000000bytes) bitmap.
	at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:229)
	at android.view.RecordingCanvas.drawBitmap(RecordingCanvas.java:98)
	at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:545)
	at android.widget.ImageView.onDraw(ImageView.java:1360)
	at soko.ekibun.bangumi.ui.view.DragPhotoView.onDraw(DragPhotoView.kt:155)
	at android.view.View.draw(View.java:20234)
	at android.view.View.updateDisplayListIfDirty(View.java:19109)
	at android.view.View.draw(View.java:19962)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4337)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4114)
	at android.view.View.draw(View.java:20237)
	at androidx.viewpager.widget.ViewPager.draw(ViewPager.java:2426)
	at android.view.View.updateDisplayListIfDirty(View.java:19109)
	at android.view.View.draw(View.java:19962)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4337)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4114)
	at android.view.View.updateDisplayListIfDirty(View.java:19100)
	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:695)
	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:701)
	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:810)
	at android.view.ViewRootImpl.draw(ViewRootImpl.java:3405)
	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3189)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2558)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1529)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7412)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1044)
	at android.view.Choreographer.doCallbacks(Choreographer.java:839)
	at android.view.Choreographer.doFrame(Choreographer.java:774)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1030)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:207)
	at android.app.ActivityThread.main(ActivityThread.java:6878)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876)
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