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

Camera is null in Pixel 4 API 30

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
44
Forks
9
PR merge metrics
No merged PRs in 30d

Description

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)`

Contributor guide

Open the contributing guide

Research direction

Start with CaptureFragment.kt:277 and the observer at line 221, then compare that path with the CameraX validation failure in the trace. The issue does not specify the intended change or a test, so confirm expected handling of a missing camera and define completion criteria before editing.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.