google-research / CVD-paper-mobile-camera-example

Apache License 2.0
36 stars 9 forks source link

Camera is null in Pixel 4 API 30 #3

Open MJ1998 opened 1 year ago

MJ1998 commented 1 year ago

Error:- Camera LensFacing verification failed, existing cameras: [Camera@83bbb42[id=1]] Retry init. Start time 989213 current time 991368 androidx.camera.core.impl.CameraValidator$CameraIdListIncorrectException: Expected camera missing from device. at androidx.camera.core.impl.CameraValidator.validateCameras(CameraValidator.java:97) at androidx.camera.core.CameraX.lambda$initAndRetryRecursively$2$androidx-camera-core-CameraX(CameraX.java:342) at androidx.camera.core.CameraX$$ExternalSyntheticLambda2.run(Unknown Source:10) 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:923) Caused by: java.lang.IllegalArgumentException: No available camera can be found at androidx.camera.core.CameraSelector.select(CameraSelector.java:82) at androidx.camera.core.impl.CameraValidator.validateCameras(CameraValidator.java:83) at androidx.camera.core.CameraX.lambda$initAndRetryRecursively$2$androidx-camera-core-CameraX(CameraX.java:342)  at androidx.camera.core.CameraX$$ExternalSyntheticLambda2.run(Unknown Source:10)  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:923)  FATAL EXCEPTION: Timer-0 Process: com.google.android.sensory, PID: 9442 java.lang.NullPointerException at com.google.android.sensory.sensing_sdk.capture.CaptureFragment.lockExposure(CaptureFragment.kt:277) at com.google.android.sensory.sensing_sdk.capture.CaptureFragment.access$lockExposure(CaptureFragment.kt:69) at com.google.android.sensory.sensing_sdk.capture.CaptureFragment$setupObservers$1$1.run(CaptureFragment.kt:221) at java.util.TimerThread.mainLoop(Timer.java:562) at java.util.TimerThread.run(Timer.java:512)