sinkuri256 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

cameraCapturePicture hangs on Motorola Droid #395

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Install sl4a on a Motorola Droid and start the python shell.  Run the following:

import android
droid = android.Android()
droid.cameraCapturePicture("/sdcard/foo.jpg")

What is the expected output? 
Something like:
Result(id=0, result=None, error=None)

What do you see instead?
The script hangs indefinitely at this point.  Other apps that use the camera, 
such as the built-in camera app, will show an error like "Camera Error: Cannot 
connect to camera" until the camera process is killed manually.

What version of the product are you using? On what operating system?
I've confirmed this on the Motorola Droid in the following environments:
Android 2.1, sl4a_r0
Android 2.1, ase_r25
Android 2.2, sl4a_r0
Android 2.2, ase_r25

Please provide any additional information below.
See attached logcat.

Original issue reported on code.google.com by mike.leo...@gmail.com on 12 Aug 2010 at 1:57

Attachments:

GoogleCodeExporter commented 9 years ago
Here's an additional logcat, running sl4a_r0.

Original comment by mike.leo...@gmail.com on 12 Aug 2010 at 1:59

Attachments:

GoogleCodeExporter commented 9 years ago
Please try this again after the r1 release (tomorrow). Let us know if it 
doesn't work for you.

Original comment by damonkoh...@gmail.com on 18 Aug 2010 at 11:20

GoogleCodeExporter commented 9 years ago
Confirmed as working on Motorola Droid, Android 2.2, sl4a_r1.

Original comment by mike.leo...@gmail.com on 31 Aug 2010 at 6:09

GoogleCodeExporter commented 9 years ago
I've submitted some tweaks that should make the camera work on more devices. 
Please reopen this bug after the r2 release if you're still having problems.

Original comment by damonkoh...@gmail.com on 9 Sep 2010 at 11:43

GoogleCodeExporter commented 9 years ago
Hi - I am seeing this issue on Android 2.3.6 with sl4a_r6 with 
PythonForAndroid_r4 on a Droid Razr. At first I thought it was my scripts but I 
used the simple take_picture.py (code quoted in original report) included with 
the python package and it fails the same way. The only difference in behavior 
is that I have to actually kill the sl4a to recover. Just killing the camera 
app does not unhang things. Sorry if this is a known issue or if other packages 
are recommended I am new to the list. 

Original comment by rgdad...@gmail.com on 2 Jan 2013 at 12:29

GoogleCodeExporter commented 9 years ago
Just a further addendum. using the interactive API works fine: 
droid.cameraInteractiveCapturePicture("/sdcard/foo.jpg") Not what I want though.

Original comment by rgdad...@gmail.com on 2 Jan 2013 at 3:03

GoogleCodeExporter commented 9 years ago
Ok so I think this has already been more precisely reported here on 12/05/2012:
http://code.google.com/p/python-for-android/issues/detail?id=67#makechanges

Original comment by rgdad...@gmail.com on 3 Jan 2013 at 5:02