LuckSiege / LuckSiege/PictureSelector
品牌:samsung 型号:Galaxy Grand Prime Android5.0.2
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
Fatal Exception: java.lang.IllegalStateException: Camera not initialized. Please wait for the initialization future to finish. See #getInitializationFuture().
at androidx.camera.view.CameraController.hasCamera(CameraController.java:833)
at com.luck.picture.lib.camera.CustomCameraView.toggleCamera(CustomCameraView.java:480)
at com.luck.picture.lib.camera.CustomCameraView$1.onClick(CustomCameraView.java:138)
at android.view.View.performClick(View.java:5052)
at android.view.View$PerformClick.run(View.java:20162)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5753)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
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.
Research direction
Read the stack-trace locations in androidx.camera.view.CameraController.hasCamera and com.luck.picture.lib.camera.CustomCameraView.toggleCamera. Reproduce the camera-toggle flow on the reported Samsung Galaxy Grand Prime running Android 5.0.2 and trace the initialization timing. Done means toggling the camera no longer throws this IllegalStateException before initialization completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100