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
When we do too much, it OOMs - both locally or in CI.
java.lang.OutOfMemoryError: Java heap space
at java.desktop/java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
at java.desktop/java.awt.image.Raster.createPackedRaster(Raster.java:539)
at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:333)
at app.cash.paparazzi.internal.ImageUtils.scale(ImageUtils.kt:286)
at app.cash.paparazzi.Paparazzi.scaleImage(Paparazzi.kt:413)
at app.cash.paparazzi.Paparazzi.access$scaleImage(Paparazzi.kt:83)
at app.cash.paparazzi.Paparazzi$takeSnapshots$1$2.invoke(Paparazzi.kt:326)
at app.cash.paparazzi.Paparazzi$takeSnapshots$1$2.invoke(Paparazzi.kt:313)
at app.cash.paparazzi.Paparazzi.withTime(Paparazzi.kt:361)
at app.cash.paparazzi.Paparazzi.takeSnapshots(Paparazzi.kt:313)
at app.cash.paparazzi.Paparazzi.snapshot(Paparazzi.kt:207)
at app.cash.paparazzi.Paparazzi.snapshot$default(Paparazzi.kt:206)
at app.cash.paparazzi.Paparazzi.snapshot(Paparazzi.kt:202)
at xxx.BaseScreenshotTest.makeSnapshot(BaseScreenshotTest.kt:112)
The text was updated successfully, but these errors were encountered:
hrach
changed the title
OutOfMemery when doing a lot of screenshoting in a single test run
OutOfMemory when doing a lot of screenshoting in a single test run
Sep 15, 2023
Any sort of status on this? We are still running out of memory and the ticket that was supposed to be a duplicate of this is closed, but that seems to be because it's fixed by Google, but there still doesn't seem to be a distribution with that version Google fixed it in included.
I tried to implement the work around mentioned, but it is missing some details.
Description
We get OOM when there is a lot of screenshoting in a single test run. We have our "helper"
aka
That internally iterates over many configurations and screenshots the composable lamba with multiple device confnigurations.
Something like
There are two devices and about 15 languages. Adding a third device easily triggers the OOM for us.
makeSnapshot
is basicallyWhen we do too much, it OOMs - both locally or in CI.
The text was updated successfully, but these errors were encountered: