FCL-Team / FoldCraftLauncher

Fold Craft Launcher, an Android Minecraft : Java Edition launcher.
GNU General Public License v3.0
1.56k stars 158 forks source link

当设置的背景过大时导致游戏崩溃,且重启后仍然崩溃 #375

Open Morlinnn opened 5 months ago

Morlinnn commented 5 months ago

Launcher Version

1.1.6.1

Device Information

Xiaomi Pad 5 Pro

Problem Description

在启动器设置背景图时,选用体积大的图时,导致抛出异常,且在重启后仍然抛出这个异常

Java

No response

Renderer

No response

Game Version

No response

Modifications Made to the Game

No response

Game Crash Report

No response

Launcher Crash Report

Build version: 1.1.6.1 Current date: 2024-05-14 22:17:43 Device: Xiaomi 22081281AC OS version: Android 13 (SDK 33)

Stack trace:
java.lang.RuntimeException: Canvas: trying to draw too large(130482720bytes) 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.view.View.getDrawableRenderNode(View.java:23662) at android.view.View.drawBackground(View.java:23583) at android.view.View.draw(View.java:23341) 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.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:9471) 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:8294) 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)

Launcher Log File

No response

root-S7 commented 5 months ago

java.lang.RuntimeException: Canvas: trying to draw too large(130482720bytes) bitmap.