Closed mlilienberg closed 1 month ago
Thanks! I've noticed a similar OutOfMemoryError
issue was discussed in Issue #272. It might be helpful to consider some of the approaches mentioned there.
Additionally, it might be worth trying to run your tests with VisualVM to monitor memory usage and identify potential leaks.
Thanks a lot. I was not aware that unit tests require extra declaration for heap space definition. I was wondering why the changes in gradle.properties had no effect. Never stop learning. Setting the heap space might be something worth to mention in the documentation.
Many thanks for creating and maintaining this library. I came across a few issues and one is that the test fails with out of memory exception when i include too many view interactions in the
captureRoboGif
block or when i use the rule. TheThis is the stacktrace:
I had a look at
com.github.takahirom.roborazzi.RoborazziKt.capture(Roborazzi.kt:621)
where the app is crashing and i am wondering if it could help to recycle the bitmaps after usage. I tried to call it from the debugger , which had no effect. I also tried to callSystem.gc
at different places in my test but this did not help either. Only reducing the amount of screens wrapped by the call helped as interim workaround.