waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Camera. autoFocus(null) causes camera service to crash #447

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
When creating an app using the camera preview, call camera.autoFocus(null) 
after the camera.startPreview() like so:

          _camera.setPreviewDisplay(holder);
          _camera.startPreview();
          _camera.autoFocus(null);

Later in the app, call the camera.takePicture() method.

What is the expected output? What do you see instead?
Expected:
The camera takes a picture and calls the callback specified in the 
takePicture() call.

Actual:
Camera hangs for 30 seconds or so before the camera crashes.  I get the 
following log output (the "Tap" is in my app to activate the takePicture() 
method:

03-25 08:38:43.875    / D/CameraActivity﹕ Tap.
03-25 08:39:12.304    W/Camera﹕ ICamera died
03-25 08:39:12.304    W/Camera﹕ Camera server died!
03-25 08:39:12.320    E/Camera﹕ Error 100

What version of the product are you using? On what operating system?

GDK Sneak Peak Rev. 2, XE12

Please provide any additional information below.

I have used the autoFocus() call for an app on Android 4.0.3+ and it works 
correctly.

Mini project to reproduce the problem can be found at: 
https://github.com/Mobilevangelist/google-glass-camera-test.

Original issue reported on code.google.com by nor...@nortonlam.com on 26 Mar 2014 at 10:29