Corrupted saved data (instance xml)

I'm currently having a form to help capturing Stock Count (product
quantity).
And usually users will add 150-200 stock quantities per form.

So over 99% of the instance xml generate as expected, below are an example
of an expected result.

<Stockcount_Loop>

<product_id>656</product_id>

18

Please Add Group if you have more stock count.

</Stockcount_Loop>

<Stockcount_Loop>

<product_id>720</product_id>

50

Please Add Group if you have more stock count.

</Stockcount_Loop>

But there are very few cases (1% of all instance xml), generate something
like this:

<Stockcount_Loop>

<product_id>Please Add Group if you have more stock count.</product_id>

18

Please Add Group if you have more stock count.

</Stockcount_Loop>

<Stockcount_Loop>

<product_id>720</product_id>

Please Add Group if you have more stock count.

656

</Stockcount_Loop>

The instance XML seems to be corrupted and I have no idea how to reproduce
that kind of case.
Does anyone knows what causes this?
Is memory usage has anything to do with it?
Is the rosa engine somehow runs abnormally?

Thanks
Regards
Desmond

Are you using the very latest ODK Collect?

We are aware of this being an issue quite a while ago, (1.1.7 timeframe),
but have updated javarosa since then, and have not heard of this being an
error with the latest updates.

··· On Sun, Apr 7, 2013 at 8:58 PM, desmond tan wrote:

I'm currently having a form to help capturing Stock Count (product
quantity).
And usually users will add 150-200 stock quantities per form.

So over 99% of the instance xml generate as expected, below are an example
of an expected result.

<Stockcount_Loop>

<product_id>656</product_id>

18

Please Add Group if you have more stock count.

</Stockcount_Loop>

<Stockcount_Loop>

<product_id>720</product_id>

50

Please Add Group if you have more stock count.

</Stockcount_Loop>

But there are very few cases (1% of all instance xml), generate something
like this:

<Stockcount_Loop>

<product_id>Please Add Group if you have more stock count.</product_id>

18

Please Add Group if you have more stock count.

</Stockcount_Loop>

<Stockcount_Loop>

<product_id>720</product_id>

Please Add Group if you have more stock count.

656

</Stockcount_Loop>

The instance XML seems to be corrupted and I have no idea how to reproduce
that kind of case.
Does anyone knows what causes this?
Is memory usage has anything to do with it?
Is the rosa engine somehow runs abnormally?

Thanks
Regards
Desmond

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

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

Nope, I'm not using the latest ODK.
But thanks for your reply, I will try to update to the latest version.

Regards
Desmond

··· On Tuesday, April 9, 2013 2:34:26 AM UTC+8, Mitch wrote: > > Are you using the very latest ODK Collect? > > We are aware of this being an issue quite a while ago, (1.1.7 timeframe), > but have updated javarosa since then, and have not heard of this being an > error with the latest updates. > > > > On Sun, Apr 7, 2013 at 8:58 PM, desmond tan <desmon...@gmail.com wrote: > >> I'm currently having a form to help capturing *Stock Count* (product >> quantity). >> And usually users will add 150-200 stock quantities per form. >> >> So over 99% of the instance xml generate as expected, below are an >> example of an expected result. >> >>> >> >> 656 >> >> 18 >> >> Please Add Group if you have more stock count. >> >> >> >> >> >> 720 >> >> 50 >> >> Please Add Group if you have more stock count. >> >> >> >> >> >> But there are very few cases (1% of all instance xml), generate >> something like this: >> >>> >> >> Please Add Group if you have more stock count. >> >> 18 >> >> Please Add Group if you have more stock count. >> >> >> >> >> >> 720 >> >> Please Add Group if you have more stock count. >> >> 656 >> >> >> >> >> The instance XML seems to be corrupted and I have no idea how to >> reproduce that kind of case. >> Does anyone knows what causes this? >> Is memory usage has anything to do with it? >> Is the rosa engine somehow runs abnormally? >> >> Thanks >> Regards >> Desmond >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Hi Mitch

I've notice that I'm actually using the latest version of java rosa
library, but not the latest version of ODK Collect.

So the problem might not come from java rosa library.
Can you recall what is actually causing this error? Any post/issue opened
which I can refer to?

I am just trying to find a way to solve this issue before upgrading to the
latest version of ODK Collect,
it's a big effort due to our customization.

Thanks
Regards
Desmond

··· On Tuesday, 9 April 2013 09:48:13 UTC+8, desmond tan wrote: > > Nope, I'm not using the latest ODK. > But thanks for your reply, I will try to update to the latest version. > > Regards > Desmond > > On Tuesday, April 9, 2013 2:34:26 AM UTC+8, Mitch wrote: >> >> Are you using the very latest ODK Collect? >> >> We are aware of this being an issue quite a while ago, (1.1.7 timeframe), >> but have updated javarosa since then, and have not heard of this being an >> error with the latest updates. >> >> >> >> On Sun, Apr 7, 2013 at 8:58 PM, desmond tan wrote: >> >>> I'm currently having a form to help capturing *Stock Count* (product >>> quantity). >>> And usually users will add 150-200 stock quantities per form. >>> >>> So over 99% of the instance xml generate as expected, below are an >>> example of an expected result. >>> >>>> >>> >>> 656 >>> >>> 18 >>> >>> Please Add Group if you have more stock count. >>> >>> >>> >>> >>> >>> 720 >>> >>> 50 >>> >>> Please Add Group if you have more stock count. >>> >>> >>> >>> >>> >>> But there are very few cases (1% of all instance xml), generate >>> something like this: >>> >>>> >>> >>> Please Add Group if you have more stock count. >>> >>> 18 >>> >>> Please Add Group if you have more stock count. >>> >>> >>> >>> >>> >>> 720 >>> >>> Please Add Group if you have more stock count. >>> >>> 656 >>> >>> >>> >>> >>> The instance XML seems to be corrupted and I have no idea how to >>> reproduce that kind of case. >>> Does anyone knows what causes this? >>> Is memory usage has anything to do with it? >>> Is the rosa engine somehow runs abnormally? >>> >>> Thanks >>> Regards >>> Desmond >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "ODK Developers" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to opendatakit-developers+unsubscribe@googlegroups.com. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> >> >> -- >> Mitch Sundt >> Software Engineer >> University of Washington >> mitche...@gmail.com >> >

The issue I remember was in the javarosa library, but I am not able to find
the check-in. It was well over a year ago.

By 'current' javarosa, I assume you mean the same version as the tip of the
main source tree? We are using a special branch of JR in the latest
Collect code, so it is not the generic 1.0 jar.

It may also be that you had two copies of the form definition, slightly
different, on your phone.

Mitch

··· On Mon, Apr 8, 2013 at 8:59 PM, desmond tan wrote:

Hi Mitch

I've notice that I'm actually using the latest version of java rosa
library, but not the latest version of ODK Collect.

So the problem might not come from java rosa library.
Can you recall what is actually causing this error? Any post/issue opened
which I can refer to?

I am just trying to find a way to solve this issue before upgrading to the
latest version of ODK Collect,
it's a big effort due to our customization.

Thanks
Regards
Desmond

On Tuesday, 9 April 2013 09:48:13 UTC+8, desmond tan wrote:

Nope, I'm not using the latest ODK.
But thanks for your reply, I will try to update to the latest version.

Regards
Desmond

On Tuesday, April 9, 2013 2:34:26 AM UTC+8, Mitch wrote:

Are you using the very latest ODK Collect?

We are aware of this being an issue quite a while ago, (1.1.7
timeframe), but have updated javarosa since then, and have not heard of
this being an error with the latest updates.

On Sun, Apr 7, 2013 at 8:58 PM, desmond tan desmon...@gmail.com wrote:

I'm currently having a form to help capturing Stock Count (product
quantity).
And usually users will add 150-200 stock quantities per form.

So over 99% of the instance xml generate as expected, below are an
example of an expected result.

<Stockcount_Loop>

<product_id>656</product_id>

18

Please Add Group if you have more stock count.

</Stockcount_Loop>

<Stockcount_Loop>

<product_id>720</product_id>

50

Please Add Group if you have more stock count.

</Stockcount_Loop>

But there are very few cases (1% of all instance xml), generate
something like this:

<Stockcount_Loop>

<product_id>Please Add Group if you have more stock count.</product_id>

18

Please Add Group if you have more stock count.

</Stockcount_Loop>

<Stockcount_Loop>

<product_id>720</product_id>

Please Add Group if you have more stock count.

656

</Stockcount_Loop>

The instance XML seems to be corrupted and I have no idea how to
reproduce that kind of case.
Does anyone knows what causes this?
Is memory usage has anything to do with it?
Is the rosa engine somehow runs abnormally?

Thanks
Regards
Desmond

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

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

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

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

Hi Mitch

I got the javarosa library from ODK site (
https://code.google.com/p/opendatakit/source/browse?repo=collect#hg%2Flib).
What special branch are you refering to? I'm using the one on 'default'
branch, which I believe is the latest version among all branches.

I don't understand what do you mean by two different copies of form
definition.
Do you mean the physical form which is generated by ODK Build?
If that's so, with different naming, it shouldn't have any problem right?

Thanks for your help.

Regards
Desmond

··· On Wednesday, April 10, 2013 12:52:11 AM UTC+8, Mitch wrote: > > The issue I remember was in the javarosa library, but I am not able to > find the check-in. It was well over a year ago. > > By 'current' javarosa, I assume you mean the same version as the tip of > the main source tree? We are using a special branch of JR in the latest > Collect code, so it is not the generic 1.0 jar. > > It may also be that you had two copies of the form definition, slightly > different, on your phone. > > Mitch > > > > > On Mon, Apr 8, 2013 at 8:59 PM, desmond tan <desmon...@gmail.com wrote: > >> Hi Mitch >> >> I've notice that I'm actually using the latest version of java rosa >> library, but not the latest version of ODK Collect. >> >> So the problem might not come from java rosa library. >> Can you recall what is actually causing this error? Any post/issue opened >> which I can refer to? >> >> I am just trying to find a way to solve this issue before upgrading to >> the latest version of ODK Collect, >> it's a big effort due to our customization. >> >> Thanks >> Regards >> Desmond >> >> >> >> On Tuesday, 9 April 2013 09:48:13 UTC+8, desmond tan wrote: >>> >>> Nope, I'm not using the latest ODK. >>> But thanks for your reply, I will try to update to the latest version. >>> >>> Regards >>> Desmond >>> >>> On Tuesday, April 9, 2013 2:34:26 AM UTC+8, Mitch wrote: >>>> >>>> Are you using the very latest ODK Collect? >>>> >>>> We are aware of this being an issue quite a while ago, (1.1.7 >>>> timeframe), but have updated javarosa since then, and have not heard of >>>> this being an error with the latest updates. >>>> >>>> >>>> >>>> On Sun, Apr 7, 2013 at 8:58 PM, desmond tan wrote: >>>> >>>>> I'm currently having a form to help capturing *Stock Count* (product >>>>> quantity). >>>>> And usually users will add 150-200 stock quantities per form. >>>>> >>>>> So over 99% of the instance xml generate as expected, below are an >>>>> example of an expected result. >>>>> >>>>>> >>>>> >>>>> 656 >>>>> >>>>> 18 >>>>> >>>>> Please Add Group if you have more stock count. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> 720 >>>>> >>>>> 50 >>>>> >>>>> Please Add Group if you have more stock count. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> But there are very few cases (1% of all instance xml), generate >>>>> something like this: >>>>> >>>>>> >>>>> >>>>> Please Add Group if you have more stock count. >>>>> >>>>> 18 >>>>> >>>>> Please Add Group if you have more stock count. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> 720 >>>>> >>>>> Please Add Group if you have more stock count. >>>>> >>>>> 656 >>>>> >>>>> >>>>> >>>>> >>>>> The instance XML seems to be corrupted and I have no idea how to >>>>> reproduce that kind of case. >>>>> Does anyone knows what causes this? >>>>> Is memory usage has anything to do with it? >>>>> Is the rosa engine somehow runs abnormally? >>>>> >>>>> Thanks >>>>> Regards >>>>> Desmond >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "ODK Developers" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to opendatakit-developers+**unsubscribe@googlegroups.com. >>>>> For more options, visit https://groups.google.com/**groups/opt_out >>>>> . >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Mitch Sundt >>>> Software Engineer >>>> University of Washington >>>> mitche...@gmail.com >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Sorry, branch is a misnomer; I meant clone.

If the formId is different, they are different forms, and that is OK.
If you have two forms with the same formId on the same phone/device, then
it is likely a problem.

FormId is different from the form name or title.

When we added support for the new-style cascading selects, we needed to
fork javarosa, as those changes were never pushed into the main 1.0 code
tree, and the tree they are in, javarosa-pending (
https://bitbucket.org/javarosa/javarosa-pending ) had a variety of changes
that were not viewed as stable by the developers at the time.

ODK Collect is now using this clone of javarosa:
https://bitbucket.org/m.sundt/javarosa

··· On Tue, Apr 9, 2013 at 9:31 PM, desmond tan wrote:

Hi Mitch

I got the javarosa library from ODK site (
https://code.google.com/p/opendatakit/source/browse?repo=collect#hg%2Flib
).
What special branch are you refering to? I'm using the one on 'default'
branch, which I believe is the latest version among all branches.

I don't understand what do you mean by two different copies of form
definition.
Do you mean the physical form which is generated by ODK Build?
If that's so, with different naming, it shouldn't have any problem right?

Thanks for your help.

Regards
Desmond

On Wednesday, April 10, 2013 12:52:11 AM UTC+8, Mitch wrote:

The issue I remember was in the javarosa library, but I am not able to
find the check-in. It was well over a year ago.

By 'current' javarosa, I assume you mean the same version as the tip of
the main source tree? We are using a special branch of JR in the latest
Collect code, so it is not the generic 1.0 jar.

It may also be that you had two copies of the form definition, slightly
different, on your phone.

Mitch

On Mon, Apr 8, 2013 at 8:59 PM, desmond tan desmon...@gmail.com wrote:

Hi Mitch

I've notice that I'm actually using the latest version of java rosa
library, but not the latest version of ODK Collect.

So the problem might not come from java rosa library.
Can you recall what is actually causing this error? Any post/issue
opened which I can refer to?

I am just trying to find a way to solve this issue before upgrading to
the latest version of ODK Collect,
it's a big effort due to our customization.

Thanks
Regards
Desmond

On Tuesday, 9 April 2013 09:48:13 UTC+8, desmond tan wrote:

Nope, I'm not using the latest ODK.
But thanks for your reply, I will try to update to the latest version.

Regards
Desmond

On Tuesday, April 9, 2013 2:34:26 AM UTC+8, Mitch wrote:

Are you using the very latest ODK Collect?

We are aware of this being an issue quite a while ago, (1.1.7
timeframe), but have updated javarosa since then, and have not heard of
this being an error with the latest updates.

On Sun, Apr 7, 2013 at 8:58 PM, desmond tan desmon...@gmail.comwrote:

I'm currently having a form to help capturing Stock Count (product
quantity).
And usually users will add 150-200 stock quantities per form.

So over 99% of the instance xml generate as expected, below are an
example of an expected result.

<Stockcount_Loop>

<product_id>656</product_id>

18

Please Add Group if you have more stock count.

</Stockcount_Loop>

<Stockcount_Loop>

<product_id>720</product_id>

50

Please Add Group if you have more stock count.

</Stockcount_Loop>

But there are very few cases (1% of all instance xml), generate
something like this:

<Stockcount_Loop>

<product_id>Please Add Group if you have more stock

count.</product_id>

18

Please Add Group if you have more stock count.

</Stockcount_Loop>

<Stockcount_Loop>

<product_id>720</product_id>

Please Add Group if you have more stock count.

656

</Stockcount_Loop>

The instance XML seems to be corrupted and I have no idea how to
reproduce that kind of case.
Does anyone knows what causes this?
Is memory usage has anything to do with it?
Is the rosa engine somehow runs abnormally?

Thanks
Regards
Desmond

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

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

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

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

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

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