android / android/camera-samples

Does not work on Emulator API 31 and 32

Open
#472 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
5.5k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

The call backs are never called for this, apparently its an issue with the camera but it same works on API 29 emulator.

`android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): cancelRequest:507: Camera 0: Error clearing streaming request: Function not implemented
`
I was getting the above error and now I am getting this too.

```
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The camera device has encountered a serious error
at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:2350)

```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the report on Android emulator API 31 and 32 and compare it with API 29, focusing on the android.hardware.camera2 callback path and the logged CameraAccessException. The issue names no sample file or test, so identify the affected sample and add a focused reproduction before determining whether the callbacks can be restored.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.