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

App abnormally close on splash screen #1

Closed
hanjoongcho opened this issue Mar 16, 2018 · 0 comments
Closed

App abnormally close on splash screen #1

hanjoongcho opened this issue Mar 16, 2018 · 0 comments

Comments

@hanjoongcho
Copy link
Contributor

Hi there :)
The following problems occurred in G-Trending.


java.lang.RuntimeException: Canvas: trying to draw too large(132710400bytes) bitmap. at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:260) at android.graphics.Canvas.drawBitmap(Canvas.java:1420) at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:545) at android.view.View.getDrawableRenderNode(View.java:18591) at android.view.View.drawBackground(View.java:18527) at android.view.View.draw(View.java:18315) at com.android.internal.policy.DecorView.draw(DecorView.java:919) at android.view.View.updateDisplayListIfDirty(View.java:17302) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:692) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:698) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:806) at android.view.ViewRootImpl.draw(ViewRootImpl.java:3139) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2935) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2527) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1526) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7102) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:927) at android.view.Choreographer.doCallbacks(Choreographer.java:702) at android.view.Choreographer.doFrame(Choreographer.java:638) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:913) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6682) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
This seems to be solved by moving the splash.png image to the drawable-xxhdpi folder. https://stackoverflow.com/questions/40835514/android-studio-canvas-drawing-too-large-bitmap

I will send a pull request.

werbhelius added a commit that referenced this issue Mar 25, 2018
Fixed #1 App abnormally close on splash screen
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