zmsoft / google-glass-api

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

Camera.open() occasionally hangs without throwing an exception - only power off helps #637

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call Camera.open() and startPreview() to open a camera and see the preview 
on a surface;
2. call stopPreview() and release() to close the camera;
3. repeat a number of times. This happens occasionally.

What is the expected output? What do you see instead?
The camera should be released and then reopened in the subsequent program 
executions. instead, the camera is not properly released, and when 
Camera.open() is called again, the app hangs, no exception message is thrown; 
only restarting the device will unlock the camera.

What version of the product are you using? On what operating system?
Android 4.4.2, API 19, XE22

Please provide any additional information below.
The problem is very similar to 
https://code.google.com/p/android/issues/detail?id=1578
This android issue is long closed, but some people seem to keep finding this 
issue. I am not even sure if it is a device (i.e. firmware) problem, or an 
Android version problem.

Original issue reported on code.google.com by marco.bu...@gmail.com on 17 Nov 2014 at 2:24

GoogleCodeExporter commented 9 years ago

Original comment by ala...@google.com on 17 Nov 2014 at 11:51

GoogleCodeExporter commented 9 years ago
Hello,

Do you have some logcats that you could share? It could help us identify the 
issue in the Camera stack.

Thanks!
Alain

Original comment by ala...@google.com on 18 Nov 2014 at 4:20

GoogleCodeExporter commented 9 years ago
Sure, here is the bugreport output; in the last execution, I tried the 
open-close cycle three times:

Original comment by marco.bu...@gmail.com on 19 Nov 2014 at 9:01

Attachments:

GoogleCodeExporter commented 9 years ago
This is also happening with my app, sometimes this happens 3 times in a row. I 
can also provide the logcat is needed. 

Original comment by carlos...@gmail.com on 4 Dec 2014 at 10:11

GoogleCodeExporter commented 9 years ago
Same issue here. Except I don't believe that it is from Camera.open(). I 
removed the preview part of the application and just tried to open the camera 
and it worked without any issue. So something is going on when trying to 
startPreview()..

Original comment by zackande...@gmail.com on 6 Feb 2015 at 12:02