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. Struggling with google maps


I was following this tutorial: 
on creating map activities, Now i am unable to understand why my
application crashes. I get a NoClassDefFoundError and that exception
is caused by a  Caused by: java.lang.IllegalAccessError: cross-loader
access from pre-verified class.

Now i have added the <uses-library
android:name="com.google.android.maps" /> as a child element to my
aplication and
permission> and
<uses-permission android:name="android.permission.INTERNET"/>
as children of the Manifest element.

My avd is running on api level 4 with the google apis.

What is wrong? i have searched the web, but nnot found a solution to
my problem.

Appreciate any thoughts or comments on what might be wrong....

2. How to add scrollview to linearlayout programtically.


   I am trying to add scrollview to linearlayout but it showing error
"ScrollView can have only one direct child".. I tried like this
Scrollview scrollview = new ScrollView(context)


Can anybody point out where i am doing mistake.

3. Chart API

4. prting procedure for Android on SMDK2440 board

5. Changes in API in 1.5 - onFreeze and friends

6. fatal: Out of memory, malloc failed fatal: index-pack failed

7. Using Android on "old" palm and dell handhelds