pull/696/head
Mattia Iavarone 6 years ago
parent a4f958a43d
commit 14c8a4d6b8
  1. 2
      cameraview/src/androidTest/java/com/otaliastudios/cameraview/tools/RetryRule.java
  2. 4
      cameraview/src/main/java/com/otaliastudios/cameraview/engine/CameraEngine.java

@ -33,6 +33,8 @@ public class RetryRule implements TestRule {
base.evaluate();
return;
} catch (Throwable throwable) {
LOG.e("[RETRY] Test failed.", retries.get(),
"retries available...");
caught = throwable;
}
}

@ -367,10 +367,10 @@ public abstract class CameraEngine implements
// This thread is likely stuck. The reason might be deadlock issues in the internal
// camera implementation, at least in emulators: see Camera1Engine and Camera2Engine
// onStopEngine() implementation and comments.
LOG.w("DESTROY: Could not destroy synchronously after 6 seconds.",
LOG.e("DESTROY: Could not destroy synchronously after 6 seconds.",
"Current thread:", Thread.currentThread(),
"Handler thread: ", mHandler.getThread());
// TODO find a solution
// TODO Should we find a solution or is this emulator only?
}
} catch (InterruptedException ignore) {}
}

Loading…
Cancel
Save