第三方拍照视频报错
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with the logged call path in com.cjt2325.cameralibrary.CameraInterface.openCamera and doOpenCamera, then inspect JCameraView.java around line 307 and the android.hardware.Camera.open call. Investigate why camera ID 0 is unavailable on the affected device; done means the reported photo/video flow no longer fails with the shown connection exception.
Written by the indexing model from the issue text.
Description
2020-01-29 01:24:28.111 23107-23107/com.shengshi.tongzhou.push I/CJT: JCameraView SurfaceCreated
2020-01-29 01:24:28.111 1806-22796/? I/CameraService: CameraService::connect call (PID -1 "com.shengshi.tongzhou.push", camera ID 0) for HAL version default and Camera API version 1
2020-01-29 01:24:28.112 1806-22796/? E/CameraService: CameraService::connect X (PID 23107) rejected (invalid camera ID 0)
2020-01-29 01:24:28.112 23107-23897/com.shengshi.tongzhou.push W/CameraBase: An error occurred while connecting to camera 0: Status(-8): '4: validateConnectLocked:850: No camera device with ID "0" available'
2020-01-29 01:24:28.112 23107-23897/com.shengshi.tongzhou.push W/System.err: java.lang.RuntimeException: Fail to connect to camera service
2020-01-29 01:24:28.113 23107-23897/com.shengshi.tongzhou.push W/System.err: at android.hardware.Camera.(Camera.java:546)
2020-01-29 01:24:28.113 23107-23897/com.shengshi.tongzhou.push W/System.err: at android.hardware.Camera.open(Camera.java:392)
2020-01-29 01:24:28.113 23107-23897/com.shengshi.tongzhou.push W/System.err: at com.cjt2325.cameralibrary.CameraInterface.openCamera(CameraInterface.java:313)
2020-01-29 01:24:28.113 23107-23897/com.shengshi.tongzhou.push W/System.err: at com.cjt2325.cameralibrary.CameraInterface.doOpenCamera(CameraInterface.java:300)
2020-01-29 01:24:28.113 23107-23897/com.shengshi.tongzhou.push W/System.err: at com.cjt2325.cameralibrary.JCameraView$7.run(JCameraView.java:307)
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wildfirechat/android-chat
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
wildfirechat/android-chat#954 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
wildfirechat/android-chat#945 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
wildfirechat/android-chat#932 · 3 comments ·
-
有没有考虑出kotlin跨平台的SDK Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
wildfirechat/android-chat#923 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
wildfirechat/android-chat#916 ·
All issues in wildfirechat/android-chat
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-modulith#1895 ·