ODK crashes after filling in or saving one form

Hi all,

My ODK Collect is fine collecting data when I get blank form from the server and fill the blank form, but it crashes when I edit the saved form or fill another blank form of the same form. What could be the problem here?

Thank you!

Best,
Eva

What version of ODK Collect are you using?

We would need a log for the time period demonstrating the problem. See
https://code.google.com/p/opendatakit/wiki/CollectTroubleshooting

The most likely cause is that you are out-of-memory on your device.

Second most likely is that you are using repeat groups, but not referencing
fields within them using ../fieldname, but instead using ${fieldname}; this
will cause problems when you try to add a 2nd group, but may also cause
problems when reading a saved form.

··· On Mon, Apr 6, 2015 at 9:33 AM, wrote:

Hi all,

My ODK Collect is fine collecting data when I get blank form from the
server and fill the blank form, but it crashes when I edit the saved form
or fill another blank form of the same form. What could be the problem here?

Thank you!

Best,
Eva

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi Mitch,

Thank you for your reply. The ODK Collect I'm using is ODK Collect 1.4.5
(1048).

My tablet is Samsung Galaxy Note 4 7.0 tablets, Android version 4.4.2. This
crash problem does not happen on Google Nexus. It happens on 2 of the
Samsung tablets that we have tested.
Let me re-describe the crash problem: on Samsung Galaxy, whenever I exit
filling the questionnaire, either saving the changes or ignore the changes,
the next time when I reopen the questionnaire under “edit saved form” or
“fill blank form”, it would show “unfortunately, ODK Collect has stopped.”
after loading form for a moment, and the ODK Collect program force stopped.
If I do not exit filling the questionnaire in the middle, I can fill the
whole questionnaire without any problem.

I have been trying to get a demonstration log (
https://code.google.com/p/opendatakit/wiki/CollectTroubleshooting) using
Android SDK. (It seems that first way to get log from tablet needs root the
device).

In the meanwhile, I wonder based on the description above and that the
program does not crash on Google Nexus. What do you think could be the
cause?

Thank you so much!

Best,
E

··· On Monday, April 6, 2015 at 3:05:45 PM UTC-4, Mitch Sundt wrote: > > What version of ODK Collect are you using? > > We would need a log for the time period demonstrating the problem. See > https://code.google.com/p/opendatakit/wiki/CollectTroubleshooting > > The most likely cause is that you are out-of-memory on your device. > > Second most likely is that you are using repeat groups, but not > referencing fields within them using ../fieldname, but instead using > ${fieldname}; this will cause problems when you try to add a 2nd group, but > may also cause problems when reading a saved form. > > > > On Mon, Apr 6, 2015 at 9:33 AM, <ifpr...@gmail.com > wrote: > >> Hi all, >> >> My ODK Collect is fine collecting data when I get blank form from the >> server and fill the blank form, but it crashes when I edit the saved form >> or fill another blank form of the same form. What could be the problem here? >> >> Thank you! >> >> Best, >> Eva >> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ODK Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Hi Mitch,

I have resolved the issue of crashing. It was due to a field of calculating the household size of up to 70 people. I separate the calculation to 3 separate fields of calculating 1-20, 20-40 and 40-70 household members and then add up the 3 separate field. Then the program doesn't crash. The function is correct but obviously the calculation of adding 70 items in one field is just too long for the program to handle.

I have a follow up question. If I need to calculate using reference fields , e.g. average age of 35 household members, is there an easier function I could use other than ${field1}+${field2}+...+${field35}?

Thanks,

E

Ah. OK. Out-of-Memory errors (like this) are device-type- and os-version-
specific, so this all makes sense.

Unfortunately, there are no mechanisms to sum over a set of different
fields, other than the (a + b + ...) expression you've written.

Thanks for the heads-up about needing root permissions; I will update the
wiki. Sorry you had to wade through installing adb to get the logs.

··· On Sun, Apr 12, 2015 at 11:22 PM, Eva Q wrote:

Hi Mitch,

I have resolved the issue of crashing. It was due to a field of
calculating the household size of up to 70 people. I separate the
calculation to 3 separate fields of calculating 1-20, 20-40 and 40-70
household members and then add up the 3 separate field. Then the program
doesn't crash. The function is correct but obviously the calculation of
adding 70 items in one field is just too long for the program to handle.

I have a follow up question. If I need to calculate using reference
fields , e.g. average age of 35 household members, is there an easier
function I could use other than ${field1}+${field2}+...+${field35}?

Thanks,

E

--

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


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com