question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to configure camera

See original GitHub issue

Camera not working when rotating device. Used TextureView, Nexus 9 (API 23) Logs D/CameraInstance: Opening camera D/CameraInstance: Closing camera D/CameraInstance: Opening camera D/CameraInstance: Configuring camera I/CameraManager: Camera Display Orientation: 90 W/CameraManager: Failed to set rotation. W/CameraManager: Camera rejected even safe-mode parameters! No configuration E/CameraInstance: Failed to configure camera E/CameraInstance: java.lang.RuntimeException: getParameters failed (empty parameters) E/CameraInstance: at android.hardware.Camera.native_getParameters(Native Method) E/CameraInstance: at android.hardware.Camera.getParameters(Camera.java:1890) E/CameraInstance: at com.journeyapps.barcodescanner.camera.CameraManager.setParameters(CameraManager.java:365) E/CameraInstance: at com.journeyapps.barcodescanner.camera.CameraManager.configure(CameraManager.java:141) E/CameraInstance: at com.journeyapps.barcodescanner.camera.CameraInstance$4.run(CameraInstance.java:178) E/CameraInstance: at android.os.Handler.handleCallback(Handler.java:739) E/CameraInstance: at android.os.Handler.dispatchMessage(Handler.java:95) E/CameraInstance: at android.os.Looper.loop(Looper.java:148) E/CameraInstance: at android.os.HandlerThread.run(HandlerThread.java:61) E/Camera: Error 2 E/Camera: Error 2 E/Camera: Error 2 E/Camera: Error 2 D/CameraPreview: pause() D/CameraInstance: Closing camera

May be there is a way to use SurfaceView and set its size equal to BarcodeView’s size, not large? Thank you.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rkistnercommented, Mar 20, 2017

Some bugs around permission handling may have been fixed since this issue was opened. Please create a new issue if this persists in v3.5.0.

0reactions
plswiderskicommented, May 5, 2017

Problem still occurs in v3.5.0 and Android 6 but you can easily fix this by dynamically adding CAMERA permission (https://developer.android.com/training/permissions/requesting.html)

Read more comments on GitHub >

github_iconTop Results From Across the Web

What should I do if I fail to configure Tapo Camera? - TP-Link
This article will tell you what to do if you have trouble getting through Tapo camera setup in 4 situations such as paring...
Read more >
Q. Failed to configure WiFi for camera - ANRAN
1.Check the antenna connection is OK and the camera was powered on. 2. Make sure the camera and mobile phone near by the...
Read more >
Google Meet Camera Failed – Here are the Best Fixes - Alphr
1. Open the Start menu and select Settings from the list of options. 2. Next, click on Privacy. 3. Now, from the left...
Read more >
Camera doesn't work in Windows - Microsoft Support
Check for updates. Select Start > Settings > Windows Update > Check for updates. · Restart your PC. If you haven't restarted your...
Read more >
Troubleshoot Nest camera and doorbell setup messages
When this error appears, it means the app thinks your camera may already be set up in a home. Troubleshooting.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found