ODK Collect memory settings

Hi All,

I'm running ODK Collect v1.1.4 on Android 2.2, CyanogenMod-6.0.0-DS,
HTC Magic 32A. I can make ODK Collect run out of memory (force quit)
by taking 5 - 10 pictures in a row. I was wondering if any one had
tricks for handling memory issues. Increasing my VM heap size to 24m
seemed to help (but I'm worried about dragons).

Once with the VM heap at 16m and once at 24m, taking a bunch of
pictures through ODK Collect has caused the phone to reboot, very
scary. I've pasted the end of the log below, any ideas for finding the
cause of this problem?

Andrew

I/mm-camera-jpeg( 92): freeing 21 jpeg memory leaks
D/QualcommCameraHardware( 92): release E
D/QualcommCameraHardware( 92): release X
D/QualcommCameraHardware( 92): ~QualcommCameraHardware E
D/QualcommCameraHardware( 92): ~QualcommCameraHardware X
I/WindowManager( 124): Setting rotation to 0, animFlags=1
I/ActivityManager( 124): Config changed: { scale=1.0 imsi=0/0
loc=en_US touch=3 keys=1/1/2 nav=3/1 orien=1 layout=18 uiMode=17
seq=10}
D/gralloc ( 124): freeing GPU buffer at 0
D/gralloc ( 124): freeing GPU buffer at 471040
D/Sensors ( 124): sensors=00000000, real=00000000
D/AKMD ( 96): Compass CLOSE
I/FormEntryActivity( 371): renamed /sdcard/odk/.cache/tmp.jpg to /
sdcard/odk/instances/
Picture_2010-10-26_21-22-10_2010-10-27_02-30-01/1288146642781.jpg
I/FormEntryActivity( 371): Inserting image returned uri =
content://media/external/images/media/46
I/MediaWidget( 371): Setting current answer to 1288146642781.jpg
D/FormEntryActivity( 371): onResume
W/InputManagerService( 124): Ignoring hideSoftInput of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@44e4fe70
D/dalvikvm( 371): GC_EXTERNAL_ALLOC freed 1627 objects / 127152 bytes
in 90ms
D/dalvikvm( 237): GC_EXTERNAL_ALLOC freed 2314 objects / 427280 bytes
in 172ms
W/InputManagerService( 124): Ignoring hideSoftInput of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@44e4e660
W/IInputConnectionWrapper( 382): showStatusIcon on inactive
InputConnection
W/InputManagerService( 124): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@44def688
D/dalvikvm( 124): GC_EXPLICIT freed 1138 objects / 71256 bytes in
154ms
I/ActivityManager( 124): Starting activity: Intent
{ act=android.media.action.IMAGE_CAPTURE
cmp=com.android.camera/.Camera (has extras) }
D/FormEntryActivity( 371): onPause
I/WindowManager( 124): Setting rotation to 1, animFlags=1
I/ActivityManager( 124): Config changed: { scale=1.0 imsi=0/0
loc=en_US touch=3 keys=1/1/2 nav=3/1 orien=2 layout=18 uiMode=17
seq=11}
D/QualcommCameraHardware( 92): createInstance: E

HI Andrew,

The imminent 1.1.5 release fixes a number of form memory leak issues.

Carl and Yaw are shepherding that into release status (aiming for this
Friday).

Mitch

··· On Tue, Oct 26, 2010 at 7:42 PM, Andrew Marder wrote:

Hi All,

I'm running ODK Collect v1.1.4 on Android 2.2, CyanogenMod-6.0.0-DS,
HTC Magic 32A. I can make ODK Collect run out of memory (force quit)
by taking 5 - 10 pictures in a row. I was wondering if any one had
tricks for handling memory issues. Increasing my VM heap size to 24m
seemed to help (but I'm worried about dragons).

Once with the VM heap at 16m and once at 24m, taking a bunch of
pictures through ODK Collect has caused the phone to reboot, very
scary. I've pasted the end of the log below, any ideas for finding the
cause of this problem?

Andrew

I/mm-camera-jpeg( 92): freeing 21 jpeg memory leaks
D/QualcommCameraHardware( 92): release E
D/QualcommCameraHardware( 92): release X
D/QualcommCameraHardware( 92): ~QualcommCameraHardware E
D/QualcommCameraHardware( 92): ~QualcommCameraHardware X
I/WindowManager( 124): Setting rotation to 0, animFlags=1
I/ActivityManager( 124): Config changed: { scale=1.0 imsi=0/0
loc=en_US touch=3 keys=1/1/2 nav=3/1 orien=1 layout=18 uiMode=17
seq=10}
D/gralloc ( 124): freeing GPU buffer at 0
D/gralloc ( 124): freeing GPU buffer at 471040
D/Sensors ( 124): sensors=00000000, real=00000000
D/AKMD ( 96): Compass CLOSE
I/FormEntryActivity( 371): renamed /sdcard/odk/.cache/tmp.jpg to /
sdcard/odk/instances/
Picture_2010-10-26_21-22-10_2010-10-27_02-30-01/1288146642781.jpg
I/FormEntryActivity( 371): Inserting image returned uri =
content://media/external/images/media/46
I/MediaWidget( 371): Setting current answer to 1288146642781.jpg
D/FormEntryActivity( 371): onResume
W/InputManagerService( 124): Ignoring hideSoftInput of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@44e4fe70
D/dalvikvm( 371): GC_EXTERNAL_ALLOC freed 1627 objects / 127152 bytes
in 90ms
D/dalvikvm( 237): GC_EXTERNAL_ALLOC freed 2314 objects / 427280 bytes
in 172ms
W/InputManagerService( 124): Ignoring hideSoftInput of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@44e4e660
W/IInputConnectionWrapper( 382): showStatusIcon on inactive
InputConnection
W/InputManagerService( 124): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@44def688
D/dalvikvm( 124): GC_EXPLICIT freed 1138 objects / 71256 bytes in
154ms
I/ActivityManager( 124): Starting activity: Intent
{ act=android.media.action.IMAGE_CAPTURE
cmp=com.android.camera/.Camera (has extras) }
D/FormEntryActivity( 371): onPause
I/WindowManager( 124): Setting rotation to 1, animFlags=1
I/ActivityManager( 124): Config changed: { scale=1.0 imsi=0/0
loc=en_US touch=3 keys=1/1/2 nav=3/1 orien=2 layout=18 uiMode=17
seq=11}
D/QualcommCameraHardware( 92): createInstance: E

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.comopendatakit%2Bunsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer


University of Washington
mitchellsundt@gmail.com