zmsoft / google-glass-api

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

setCameraPreview Black Screen of Death #616

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
steps to reproduce the problem:
1. Attempt to use the Camera Intent
2. Witness intermittent Black Screen of Death behaviour

What I see:
Seeing the setCameraPreview locks the entire device, nothing displayed (black 
screen, can tell that the screen is on though) and only thing that can be done 
is holding power button down for a while until device powers off.

What I expect:
Expect the camera preview to show and NOT render the device completely unusable.

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

Further info:
Repeat: this is an intermittent bug.

Original issue reported on code.google.com by coreform on 14 Oct 2014 at 10:20

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for the report! Could you clarify which API you are using? Are you using 
the MediaStore.ACTION_IMAGE_CAPTURE Intent or are you using the 
Camera#takePicture method directly?

Best,
Alain

Original comment by ala...@google.com on 14 Oct 2014 at 3:27

GoogleCodeExporter commented 9 years ago
Am using the MediaStore.ACTION_IMAGE_CAPTURE Intent.

This problem is not always observed as a Black Screen of Death, sometimes just 
freezes the device showing whatever was showing prior.

Also sometimes manifests with a repetition of whatever sound was just made, 
e.g. via a Tap that triggers a sound and starts an Activity that attempts to 
safely open Camera and setCameraPreview within a 
SurfaceHolder.Callback#surfaceCreated override.

This is occurring 

Original comment by coreform on 14 Oct 2014 at 4:08