I keep getting this error in logcat when I try to open my survey on ODK
collect. The survey just won't load and either ODK Collect just closes
without any message or it just keeps loading for hours until I shut it off,
or it returns a messages saying it's sorry but must force close.
I understand that my survey is quite long and complex, but my team is
trying everything possible to keep it all on one survey (as opposed to
splitting across multiple surveys). So... I googled (naturally) and came
across a site (below) that suggests increasing the maximum heap size by
using JVM options "-Xmx512M." Is this possible with ODK? And if so, is it
possible when coding the survey in XLS and converting to XML from there?
Thank you in advance for any help on this.
Details:
From the website: "Easy way to solve OutOfMemoryError in java is to increase
the maximum heap sizehttp://javarevisited.blogspot.com/2011/08/increase-heap-size-maven-ant.html by
using JVM options "-Xmx512M", this will immediately solve your
OutOfMemoryError. This is my preferred solution when I get
OutOfMemoryError in Eclipse, Maven or ANT while building project because
based upon size of project you can easily ran out of Memory.here is an
example of increasing maximum heap size of JVM, Also its better to keep
*-Xmx to -Xms *ration either 1:1 or 1:1.5 if you are setting heap size
in your java application")" Website: h
ttp://javarevisited.blogspot.com/2011/09/javalangoutofmemoryerror-permgen-space.html#ixzz2Lki7MTJ3http://javarevisited.blogspot.com/2011/09/javalangoutofmemoryerror-permgen-space.html#ixzz2Lki7MTJ3
If it makes a difference (or if you have an idea of how to solve the
below), I'm including the main errors I saw on the log below and attaching
the logcat results to this post.
I don't know how many other ways we can say this. Your options are to
find a way to split the form, or get more powerful devices, or
reprogram JavaRosa, or switch to another data collection platform.
Yaw
···
--
Need ODK help? Go to http://nafundi.com for custom development, form
design, implementation support, and user training for ODK.
I keep getting this error in logcat when I try to open my survey on ODK
collect. The survey just won't load and either ODK Collect just closes
without any message or it just keeps loading for hours until I shut it off,
or it returns a messages saying it's sorry but must force close.
I understand that my survey is quite long and complex, but my team is
trying everything possible to keep it all on one survey (as opposed to
splitting across multiple surveys). So... I googled (naturally) and came
across a site (below) that suggests increasing the maximum heap size by
using JVM options "-Xmx512M." Is this possible with ODK? And if so, is it
possible when coding the survey in XLS and converting to XML from there?
Thank you in advance for any help on this.
Details:
From the website: "Easy way to solve OutOfMemoryError in java is to increase
the maximum heap size by using JVM options "-Xmx512M", this will immediately
solve your OutOfMemoryError. This is my preferred solution when I get
OutOfMemoryError in Eclipse, Maven or ANT while building project because
based upon size of project you can easily ran out of Memory.here is an
example of increasing maximum heap size of JVM, Also its better to keep -Xmx
to -Xms ration either 1:1 or 1:1.5 if you are setting heap size in your java
application")" Website: http://javarevisited.blogspot.com/2011/09/javalangoutofmemoryerror-permgen-space.html#ixzz2Lki7MTJ3
If it makes a difference (or if you have an idea of how to solve the below),
I'm including the main errors I saw on the log below and attaching the
logcat results to this post.
java.lang.VirtualMachineError.
rstate == DUN_RMNETSTATE_ERROR in dun_monitor_kevents
java.lang.RuntimeException: An error occured while executing doInBackground
It may not be the end of the world to split your surveys. You have a number
of good options for linking them. Among them:
Generate barcodes with household or survey IDs, and print those onto the
targeting sheets with which your teams go out to find sampled respondents.
Then scan these barcodes at the start of each survey section.
If you will always fill out the survey sections in sequence, you can use
the device ID plus the start time to link sections together. In this case,
surveyors need do nothing whatsoever, and you can automatically link the
sections in your back-office processing.
Best,
Chris
P.S. The JVM heap size was a good idea, but not an option for Android apps
(as far as I know). We use that kind of option to solve out-of-memory
errors on the server side.
···
On Sat, Feb 23, 2013 at 9:48 PM, Sam wrote:
I keep getting this error in logcat when I try to open my survey on ODK
collect. The survey just won't load and either ODK Collect just closes
without any message or it just keeps loading for hours until I shut it off,
or it returns a messages saying it's sorry but must force close.
I understand that my survey is quite long and complex, but my team is
trying everything possible to keep it all on one survey (as opposed to
splitting across multiple surveys). So... I googled (naturally) and came
across a site (below) that suggests increasing the maximum heap size by
using JVM options "-Xmx512M." Is this possible with ODK? And if so, is it
possible when coding the survey in XLS and converting to XML from there?
Thank you in advance for any help on this.
Details:
From the website: "Easy way to solve OutOfMemoryError in java is to increase the maximum heap sizehttp://javarevisited.blogspot.com/2011/08/increase-heap-size-maven-ant.html by
using JVM options "-Xmx512M", this will immediately solve your
OutOfMemoryError. This is my preferred solution when I get
OutOfMemoryError in Eclipse, Maven or ANT while building project because
based upon size of project you can easily ran out of Memory.here is an
example of increasing maximum heap size of JVM, Also its better to
keep *-Xmx to -Xms *ration either 1:1 or 1:1.5 if you are setting heap
size in your java application")" Website: h
ttp://javarevisited.blogspot.com/2011/09/javalangoutofmemoryerror-permgen-space.html#ixzz2Lki7MTJ3http://javarevisited.blogspot.com/2011/09/javalangoutofmemoryerror-permgen-space.html#ixzz2Lki7MTJ3
If it makes a difference (or if you have an idea of how to solve
the below), I'm including the main errors I saw on the log below and
attaching the logcat results to this post.
···
On Saturday, February 23, 2013, Yaw Anokwa wrote:
Sam,
I don't know how many other ways we can say this. Your options are to
find a way to split the form, or get more powerful devices, or
reprogram JavaRosa, or switch to another data collection platform.
Yaw
Need ODK help? Go to http://nafundi.com for custom development, form
design, implementation support, and user training for ODK.
I keep getting this error in logcat when I try to open my survey on ODK
collect. The survey just won't load and either ODK Collect just closes
without any message or it just keeps loading for hours until I shut it
off,
or it returns a messages saying it's sorry but must force close.
I understand that my survey is quite long and complex, but my team is
trying everything possible to keep it all on one survey (as opposed to
splitting across multiple surveys). So... I googled (naturally) and came
across a site (below) that suggests increasing the maximum heap size by
using JVM options "-Xmx512M." Is this possible with ODK? And if so, is it
possible when coding the survey in XLS and converting to XML from there?
Thank you in advance for any help on this.
Details:
From the website: "Easy way to solve OutOfMemoryError in java is to
increase
the maximum heap size by using JVM options "-Xmx512M", this will
immediately
solve your OutOfMemoryError. This is my preferred solution when I get
OutOfMemoryError in Eclipse, Maven or ANT while building project because
based upon size of project you can easily ran out of Memory.here is an
example of increasing maximum heap size of JVM, Also its better to keep
-Xmx
to -Xms ration either 1:1 or 1:1.5 if you are setting heap size in your
java
application")" Website:
If it makes a difference (or if you have an idea of how to solve the
below),
I'm including the main errors I saw on the log below and attaching the
logcat results to this post.
java.lang.VirtualMachineError.
rstate == DUN_RMNETSTATE_ERROR in dun_monitor_kevents
java.lang.RuntimeException: An error occured while executing
doInBackground