第三方拍照视频报错

Open
#264 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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

bug

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wildfirechat/android-chat

All issues in wildfirechat/android-chat

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.