facebook / screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests
http://facebook.github.io/screenshot-tests-for-android
Apache License 2.0
1.74k stars 229 forks source link

java.lang.OutOfMemoryError: Failed to allocate a 8781536 byte allocation with 4981712 free bytes and 4MB until OOM, max allowed footprint 536870912, growth limit 536870912 at java.util.Arrays.copyOf(Arrays.java:3260) #299

Open Wang-miao-miao opened 2 years ago

Wang-miao-miao commented 2 years ago

when I record abount hundreds of screenshots, it will OOM,how should I to avoid it ?

Wang-miao-miao commented 2 years ago

@xiphirx can you give me a favor?

xiphirx commented 2 years ago

Without a full stack trace I'm not sure how I can help further. However I would generally advise against screenshotting such a large quantity in a single test case.