LuckSiege / LuckSiege/PictureSelector

在7.0及以下的手机系统中使用isUseCustomCamera(true),拍照和录制视频都不能成功,10.0系统上能够成功使用

Open
#1,986 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

D/Camera2CameraImpl: {Camera@860671a[id=0]} Posting surface closed
java.lang.Throwable
at androidx.camera.camera2.internal.Camera2CameraImpl.postSurfaceClosedError(Camera2CameraImpl.java:1071)
at androidx.camera.camera2.internal.Camera2CameraImpl$2.onFailure(Camera2CameraImpl.java:1031)
at androidx.camera.core.impl.utils.futures.Futures$CallbackListener.run(Futures.java:338)
at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:229)
at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:171)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Camera2CameraImpl.java stack locations at lines 1031 and 1071, then reproduce isUseCustomCamera(true) on Android 7.0 or below for both photo capture and video recording. Compare the behavior with Android 10, and consider the issue resolved when both operations succeed on the older systems without the surface-closed failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.