You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash when starting the app on branch start_kotlin using xxhdpi device #257
I just started the app as proposed in codelab and this happened:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.background, PID: 24751
java.lang.RuntimeException: Canvas: trying to draw too large(118054944bytes) bitmap.
at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:229)
at android.view.RecordingCanvas.drawBitmap(RecordingCanvas.java:97)
at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:529)
...
When an image that is only in drawable/folder is used on xxhdpi device, the potentially already big image is upscaled by a factor of 3, which can then in some cases cause the image's memory footprint to explode.
In the case of this project the error is happening due to the drawable android_cupcake.png
changed the title [-]Crash when starting the app on branch `start_kotlin`[/-][+]Crash when starting the app on branch `start_kotlin` using xxhdpi device[/+]on Nov 1, 2021
Activity
[-]Crash when starting the app on branch `start_kotlin`[/-][+]Crash when starting the app on branch `start_kotlin` using xxhdpi device[/+]