G1 camera capture crashage

by Jason Proctor » Thu, 30 Oct 2008 10:02:45 GMT

Sponsored Links

i have an application which opens a Camera and then installs itself 
as a preview frame handler. it then logs frames to the disk, gzipping 
them on the way so as to keep the file size manageable. this 
application works like a charm under the emulator.

however on the G1, all shit breaks loose. the VM runs out of memory 
almost immediately and, after a few flailing attempts to deal with 
the situation, crashes with a SIGSEGV.

in order to take my code out of the equation, i installed the 
ApiDemos application on the G1 and messed around with its Camera 
Preview stuff. no problem there. so then i installed some 
frame-writing code in a preview handler and got the same results as 
my application. i took the gzipping out, logging the frames raw, and 
the VM survived quite a bit longer before dying.

conclusion 1: something in the hardware Camera code really doesn't 
like clients doing stuff in the preview frame handler, and 
catastrophe results.

conclusion 2: i am starting to suspect a conspiracy which is trying 
to prevent anyone capturing video on Android ;-)

i'll probably log this as a bug tonight, with accompanying crash logs etc.



G1 camera capture crashage

by blindfold » Sat, 01 Nov 2008 18:50:06 GMT

 Indeed Android camera input support is currently fragile at best.
Filed as issue 1129 at  http://code.google.com/p/android/issues/detail?id=1129 


Sponsored Links

Other Threads

1. space between component

I am putting one spinner and one button using following code. Can some
one tell me how can i put some space between it ?

2. URL


i m facing an urgent issue, as i tried to open the following URL
through coding it gives me exception at OpenStream()..

"illegal Character at home index 0:"

the URL is:

i also tried to encode the URL bt no vail...

here is my code also:

URL httpURL = null;
URLConnection con = null;

httpURL = new URL(page_URL);
con = httpURL.openConnection();
StringBuffer jsonText = new StringBuffer(readInputStreamData

thnx in advance


3. webview orientation

4. Preference Activity and Options Menu

5. Android - SQLite Database help

6. Android Hacking For The Masses

7. creating a driver for a smart card