Desktop (please complete the following information):
OS: MacOS
Version 11.2.1
Target Android Device (please complete the following information):
Device: Pixel 2
Physical or Virtual: Android Virtual Device (Emulator)
API Level: 29
Testify Key: 29-1080x1920@441dp-en_US
Testify version 1.1.0-alpha1
Additional context
java.lang.IndexOutOfBoundsException: index=315250 out of bounds (limit=315250)
at java.nio.Buffer.checkIndex(Buffer.java:556)
at java.nio.HeapIntBuffer.get(HeapIntBuffer.java:114)
at com.shopify.testify.internal.processor.ParallelPixelProcessor$transform$1.invoke(ParallelPixelProcessor.kt:90)
at com.shopify.testify.internal.processor.ParallelPixelProcessor$transform$1.invoke(ParallelPixelProcessor.kt:13)
at com.shopify.testify.internal.processor.ParallelPixelProcessor$runBlockingInChunks$1$1$invokeSuspend$$inlined$map$lambda$1.invokeSuspend(ParallelPixelProcessor.kt:58)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Describe the bug
Crash in the ParallelPixelProcessor when using setScreenshotViewProvider and PixelCopyCapture together.
This issue relates to:
To Reproduce
Expected behavior
Should not crash
Desktop (please complete the following information):
Target Android Device (please complete the following information):
Additional context