Closed itanbp closed 6 years ago
That looks like it should be valid. We're investigating.
We can reproduce this failure. Thank you for the report.
Whoops, looks like our close() method is not idempotent, so your code:
try (final Image image = frame.acquireCameraImage()) {
if (image.getFormat() == ImageFormat.YUV_420_888) {
image.close();
}
}
Will end up closing the image twice: once at the literal image.close() call and once when the try-with-resources block exits.
Remove the inner call and it should stop crashing.
@inio thanks for the detailed answer
Sounds like this is resolved. Feel free to reopen if I'm not reading your response correctly.
Image.close()
is now idempotent, as of version 1.3.0.
Hi, I added the following code to ARCore sample app. When the app loads it Immediately crashes.
When commenting out
image.close();
the app loads and works.logs: