Fyi - out of memory error

Hello all,

There is some limit to the file size of multimedia files for use in CommCare
applications, which if surpassed will land you a “Out of memory error
java/lang/OutOfMemoryError”.
The file size limit is somewhere between 411kb (works fine) and 644kb (out
of memory). A 411kb audio file corresponds to ~25 seconds of 128kbps mp3.

I know some of you have encountered this error before, so feel free to share
more details here if useful.

Cheers,
Derek

Derek,

Yeah, the limits will vary per phone and the amount of memory made available
to the app. I’ll see if we’re doing something naive that might increase the
audio capacity, but other than that Drew’s tricks should hopefully get you
to more like a minute of audio.

-Clayton

··· On Tue, Apr 19, 2011 at 8:59 AM, Drew Roos wrote:

also, using variable bit-rate encoding (VBR) and a quality encoder (i.e.,
LAME) can get you more bang for your buck… err, byte.

On Tue, Apr 19, 2011 at 5:23 PM, Drew Roos droos@dimagi.com wrote:

i also recently encountered this error. note to self: don’t use wav files!

also, voice prompts can get by with a much lower bitrate. 64 kpbs mono
should be adequate.

On Tue, Apr 19, 2011 at 4:42 PM, Derek Treatman dtreatman@dimagi.comwrote:

Hello all,

There is some limit to the file size of multimedia files for use in
CommCare applications, which if surpassed will land you a “Out of memory
error java/lang/OutOfMemoryError”. The file size limit is somewhere
between 411kb (works fine) and 644kb (out of memory). A 411kb audio file
corresponds to ~25 seconds of 128kbps mp3.

I know some of you have encountered this error before, so feel free to
share more details here if useful.

Cheers,
Derek

i also recently encountered this error. note to self: don’t use wav files!

also, voice prompts can get by with a much lower bitrate. 64 kpbs mono
should be adequate.

··· On Tue, Apr 19, 2011 at 4:42 PM, Derek Treatman wrote:

Hello all,

There is some limit to the file size of multimedia files for use in
CommCare applications, which if surpassed will land you a “Out of memory
error java/lang/OutOfMemoryError”. The file size limit is somewhere
between 411kb (works fine) and 644kb (out of memory). A 411kb audio file
corresponds to ~25 seconds of 128kbps mp3.

I know some of you have encountered this error before, so feel free to
share more details here if useful.

Cheers,
Derek

also, using variable bit-rate encoding (VBR) and a quality encoder (i.e.,
LAME) can get you more bang for your buck… err, byte.

··· On Tue, Apr 19, 2011 at 5:23 PM, Drew Roos wrote:

i also recently encountered this error. note to self: don’t use wav files!

also, voice prompts can get by with a much lower bitrate. 64 kpbs mono
should be adequate.

On Tue, Apr 19, 2011 at 4:42 PM, Derek Treatman dtreatman@dimagi.comwrote:

Hello all,

There is some limit to the file size of multimedia files for use in
CommCare applications, which if surpassed will land you a “Out of memory
error java/lang/OutOfMemoryError”. The file size limit is somewhere
between 411kb (works fine) and 644kb (out of memory). A 411kb audio file
corresponds to ~25 seconds of 128kbps mp3.

I know some of you have encountered this error before, so feel free to
share more details here if useful.

Cheers,
Derek

also, playing multiple clips back to back could be an option for
circumventing the limit, but would require support in the app. why does j2me
hate streams?

··· On Tue, Apr 19, 2011 at 8:39 PM, Clayton Sims wrote:

Derek,

Yeah, the limits will vary per phone and the amount of memory made
available to the app. I’ll see if we’re doing something naive that might
increase the audio capacity, but other than that Drew’s tricks should
hopefully get you to more like a minute of audio.

-Clayton

On Tue, Apr 19, 2011 at 8:59 AM, Drew Roos droos@dimagi.com wrote:

also, using variable bit-rate encoding (VBR) and a quality encoder (i.e.,
LAME) can get you more bang for your buck… err, byte.

On Tue, Apr 19, 2011 at 5:23 PM, Drew Roos droos@dimagi.com wrote:

i also recently encountered this error. note to self: don’t use wav
files!

also, voice prompts can get by with a much lower bitrate. 64 kpbs mono
should be adequate.

On Tue, Apr 19, 2011 at 4:42 PM, Derek Treatman dtreatman@dimagi.comwrote:

Hello all,

There is some limit to the file size of multimedia files for use in
CommCare applications, which if surpassed will land you a “Out of
memory error java/lang/OutOfMemoryError”. The file size limit is
somewhere between 411kb (works fine) and 644kb (out of memory). A 411kb
audio file corresponds to ~25 seconds of 128kbps mp3.

I know some of you have encountered this error before, so feel free to
share more details here if useful.

Cheers,
Derek

Hi all,
My application land me to this out of memory error at the end of
registration form and i am not using any audio in my app.
see attached registration form attached. Any Idea what could be causing
this?
I am using nokia C2.

Thank you.

Usajili.xml (76.2 KB)

··· On Tuesday, April 19, 2011 3:12:18 PM UTC+3, Derek Treatman wrote: > > Hello all, > > There is some limit to the file size of multimedia files for use in > CommCare applications, which if surpassed will land you a "Out of memory > error java/lang/OutOfMemoryError". The file size limit is somewhere > between 411kb (works fine) and 644kb (out of memory). A 411kb audio file > corresponds to ~25 seconds of 128kbps mp3. > > I know some of you have encountered this error before, so feel free to > share more details here if useful. > > Cheers, > Derek >

We are actually steaming the audio when we play it, so I’m not sure why
there should be any inherent limit to the file size.

-Clayton

··· On Tue, Apr 19, 2011 at 12:32 PM, Drew Roos wrote:

also, playing multiple clips back to back could be an option for
circumventing the limit, but would require support in the app. why does j2me
hate streams?

On Tue, Apr 19, 2011 at 8:39 PM, Clayton Sims csims@dimagi.com wrote:

Derek,

Yeah, the limits will vary per phone and the amount of memory made
available to the app. I’ll see if we’re doing something naive that might
increase the audio capacity, but other than that Drew’s tricks should
hopefully get you to more like a minute of audio.

-Clayton

On Tue, Apr 19, 2011 at 8:59 AM, Drew Roos droos@dimagi.com wrote:

also, using variable bit-rate encoding (VBR) and a quality encoder (i.e.,
LAME) can get you more bang for your buck… err, byte.

On Tue, Apr 19, 2011 at 5:23 PM, Drew Roos droos@dimagi.com wrote:

i also recently encountered this error. note to self: don’t use wav
files!

also, voice prompts can get by with a much lower bitrate. 64 kpbs mono
should be adequate.

On Tue, Apr 19, 2011 at 4:42 PM, Derek Treatman dtreatman@dimagi.comwrote:

Hello all,

There is some limit to the file size of multimedia files for use in
CommCare applications, which if surpassed will land you a “Out of
memory error java/lang/OutOfMemoryError”. The file size limit is
somewhere between 411kb (works fine) and 644kb (out of memory). A 411kb
audio file corresponds to ~25 seconds of 128kbps mp3.

I know some of you have encountered this error before, so feel free to
share more details here if useful.

Cheers,
Derek

Thanks Drew for making this wiki page full of information about using
audio in CommCare:
https://confluence.dimagi.com/display/commcarepublic/Audio+in+CommCare

further instructions for those who don’t use Linux are coming soon.

If any of you users have something to add, feel free to edit the wiki!

Amelia

··· On Tue, Apr 19, 2011 at 1:09 PM, Clayton Sims wrote: > We are actually steaming the audio when we play it, so I'm not sure why > there should be any inherent limit to the file size. > -Clayton > > On Tue, Apr 19, 2011 at 12:32 PM, Drew Roos wrote: >> >> also, playing multiple clips back to back could be an option for >> circumventing the limit, but would require support in the app. why does j2me >> hate streams? >> >> On Tue, Apr 19, 2011 at 8:39 PM, Clayton Sims wrote: >>> >>> Derek, >>> Yeah, the limits will vary per phone and the amount of memory made >>> available to the app. I'll see if we're doing something naive that might >>> increase the audio capacity, but other than that Drew's tricks should >>> hopefully get you to more like a minute of audio. >>> -Clayton >>> >>> On Tue, Apr 19, 2011 at 8:59 AM, Drew Roos wrote: >>>> >>>> also, using variable bit-rate encoding (VBR) and a quality encoder >>>> (i.e., LAME) can get you more bang for your buck... err, byte. >>>> >>>> On Tue, Apr 19, 2011 at 5:23 PM, Drew Roos wrote: >>>>> >>>>> i also recently encountered this error. note to self: don't use wav >>>>> files! >>>>> >>>>> also, voice prompts can get by with a much lower bitrate. 64 kpbs mono >>>>> should be adequate. >>>>> >>>>> On Tue, Apr 19, 2011 at 4:42 PM, Derek Treatman wrote: >>>>>> >>>>>> Hello all, >>>>>> There is some limit to the file size of multimedia files for use in >>>>>> CommCare applications, which if surpassed will land you >>>>>> a "Out of memory error java/lang/OutOfMemoryError". The file size limit is >>>>>> somewhere between 411kb (works fine) and 644kb (out of memory). A 411kb >>>>>> audio file corresponds to ~25 seconds of 128kbps mp3. >>>>>> I know some of you have encountered this error before, so feel free to >>>>>> share more details here if useful. >>>>>> Cheers, >>>>>> Derek >>>> >>> >> > >

Peter,

Can you submit this bug report to

commcare-support@dimagi.com

with the standard bug reporting template from

https://confluence.dimagi.com/display/commcarepublic/Bug+Report+Template

? We’ll add it to the queue and let you know if there’s a workaround you
can take advantage of in the mean time.

-Clayton

··· On Sun, Dec 16, 2012 at 2:24 AM, Peter D Lubambi wrote:

Hi all,
My application land me to this out of memory error at the end of
registration form and i am not using any audio in my app.
see attached registration form attached. Any Idea what could be causing
this?
I am using nokia C2.

Thank you.

On Tuesday, April 19, 2011 3:12:18 PM UTC+3, Derek Treatman wrote:

Hello all,

There is some limit to the file size of multimedia files for use in
CommCare applications, which if surpassed will land you a “Out of memory
error java/**lang/OutOfMemoryError”. The file size limit is somewhere
between 411kb (works fine) and 644kb (out of memory). A 411kb audio file
corresponds to ~25 seconds of 128kbps mp3.

I know some of you have encountered this error before, so feel free to
share more details here if useful.

Cheers,
Derek