waleedAhmad1 / google-glass-api

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

camera hardware teardown fails #591

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?

Not sure, happens intermittently when an application uses the native Camera 
APIs. 
Application requests the Camera, calls startPreview, takePhoto, and then 
releases resources.

What is the expected output? 

That, using the APIs, if no other process is using the Camera, then we should 
be able to get access using Camera.open....

What do you see instead?

When this state is triggered, no matter how long we wait before launching the 
application we are always confronted with an exception when the application 
tries to acquire the Camera.

08-18 15:52:33.592      126-908/? E/CameraService﹕ Waited 501 ms but hardware 
teardown is still not finished!
08-18 15:52:33.592      126-908/? E/CameraService﹕ CameraService::connect X 
(pid 9020) not ready to acquire camera 0.

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

19.1

Please provide any additional information below.

The only workaround is to reboot Glass. 
As expected, not even the native Glass Camera functionality works when this 
occurs.

Original issue reported on code.google.com by nickge...@gmail.com on 18 Aug 2014 at 3:11

Attachments:

GoogleCodeExporter commented 8 years ago
As a temporary workaround, you can kill the mediaserver process when having 
this error and this solves the problem (you need root access).

Original comment by mathieu....@vidinoti.com on 5 Sep 2014 at 1:39