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. Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

The EASDLL.dll is not recognized by Cubase SX 3.0.2, nor according to
a poster on the developer's group, Sonar. Seriously broken or
seriously misunderstood? If we're going to author Jet audio, we need
this synth right?


2. Has anyone gotten the EAS synth plugin to work in a DAW?

It silently fails to load in Cubase SX 3.0.2 as well. Seems to me that
the EAS dll should be available from and supported by SONiVOX, but I
haven't found out how to purchase the plugin on their website. Can
some Logic user out there confirm that it at the very least works on
that platform?




3. Shootme gelap

4. AlertDialogs + Threads = Force Close

5. How to retrieve Emails stored on Android Device?

6. How to show html file using webview?

7. Switching GLSurface view and regular view issue.