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

OutOfMemoryError when generating images on API 23 #48

Open
saket opened this issue May 19, 2023 · 0 comments
Open

OutOfMemoryError when generating images on API 23 #48

saket opened this issue May 19, 2023 · 0 comments

Comments

@saket
Copy link
Contributor

saket commented May 19, 2023

Emulator details:
Device: Pixel 7
System image: Marshmallow 23
RAM: 2536mb
VM heap: 1228mb

Stacktraces:

java.lang.OutOfMemoryError: Failed to allocate a 20736012 byte allocation with 4194304 free bytes and 16MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:831)
at android.graphics.Bitmap.createBitmap(Bitmap.java:808)
at android.graphics.Bitmap.createBitmap(Bitmap.java:775)
at com.dropbox.dropshots.Dropshots.generateDiffImage(Dropshots.kt:206)
at com.dropbox.dropshots.Dropshots.writeThen(Dropshots.kt:170)
at com.dropbox.dropshots.Dropshots.assertSnapshot(Dropshots.kt:119)
at com.dropbox.dropshots.Dropshots.assertSnapshot(Dropshots.kt:88)
java.lang.OutOfMemoryError: Failed to allocate a 10368012 byte allocation with 4194304 free bytes and 8MB until OOM
at com.dropbox.differ.Mask.<init>(Mask.kt:6)
at com.dropbox.dropshots.Dropshots.assertSnapshot(Dropshots.kt:129)
at com.dropbox.dropshots.Dropshots.assertSnapshot(Dropshots.kt:88)
@saket saket changed the title OutOfMemoryError when running tests on API 23 OutOfMemoryError when generating diff images on API 23 May 19, 2023
@saket saket changed the title OutOfMemoryError when generating diff images on API 23 OutOfMemoryError when generating images on API 23 May 19, 2023
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