ODK Collect Android 'has stopped working'

Hi,

I have recently setup a form which creates an XML ok using the XLSForm
tool, uploads to Aggregate, downloads and opens in ODK collect and
everything seems fine filling out and saving the form until I try to send
it. At this point ODK collect, as trialled on two different Android
devices, stops working and crashes.

Not sure what is going wrong nor how to troubleshoot, but any help, as
usual is greatly appreciated. The forms are attached.

A second question but not critical is on the first time running the form
which has several image captures, the collect app automatically recognised
three different camera apps (stock android camera, night camera and a
better camera) and prompted the user to select. On subsequent running it
doesn't prompt but at least a second option to load from gallery is
available..

These images captures are actually intended to be thermal images taken
using a plugin infra red camera and the one Flir app which did not
automatically appear in the original selection, so not recognised by ODK
colllect as an option for image capture. Ideally I would be able to select
this One Flir app when the plug in thermal imaging device is connected.
Would this be possible through trivial tweaking of some configuration
somewhere or would it require more development?

Best rgds
Richard

AHU_Survey_Test (1).xml (7.27 KB)

AHU_Survey_Test.xls (57 KB)

Hi Richard,

I've been able to reproduce this issue. The problem is in your form settings.

In the XLS (Settings sheet, D2), it looks like the URL is
https://dataget-161014.appspot.com/submission (note the double //),
but if you click on the cell, it's actually
https:/dataget-161014.appspot.com/submission (note the single /).

You can confirm this in the output XML on line 3.

https:/ isn't a valid URL and that's what causes Collect to crash. If
you put a valid URL in your form, it'll stop crashing.

To prevent this from tripping other people up, I've filed an issue at
https://github.com/opendatakit/collect/issues/709 to catch these
invalid URLs and alert users.

Thanks for bringing this to our attention,

Yaw

··· On Tue, Mar 14, 2017 at 3:54 PM, Richard Norton wrote: > Hi, > > I have recently setup a form which creates an XML ok using the XLSForm tool, > uploads to Aggregate, downloads and opens in ODK collect and everything > seems fine filling out and saving the form until I try to send it. At this > point ODK collect, as trialled on two different Android devices, stops > working and crashes. > > Not sure what is going wrong nor how to troubleshoot, but any help, as usual > is greatly appreciated. The forms are attached. > > A second question but not critical is on the first time running the form > which has several image captures, the collect app automatically recognised > three different camera apps (stock android camera, night camera and a better > camera) and prompted the user to select. On subsequent running it doesn't > prompt but at least a second option to load from gallery is available.. > > These images captures are actually intended to be thermal images taken using > a plugin infra red camera and the one Flir app which did not automatically > appear in the original selection, so not recognised by ODK colllect as an > option for image capture. Ideally I would be able to select this One Flir > app when the plug in thermal imaging device is connected. Would this be > possible through trivial tweaking of some configuration somewhere or would > it require more development? > > Best rgds > Richard > > > > > -- > -- > 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.

Many thanks Yaw!

That's got me past go and seems to have been a careless error on my part in
typing the URL.

Best regards
Richard

··· On Sunday, March 19, 2017 at 5:04:36 PM UTC, Yaw Anokwa wrote: > > Hi Richard, > > I've been able to reproduce this issue. The problem is in your form > settings. > > In the XLS (Settings sheet, D2), it looks like the URL is > https://dataget-161014.appspot.com/submission (note the double //), > but if you click on the cell, it's actually > https:/dataget-161014.appspot.com/submission (note the single /). > > You can confirm this in the output XML on line 3. > method="form-data-post"/> > > https:/ isn't a valid URL and that's what causes Collect to crash. If > you put a valid URL in your form, it'll stop crashing. > > To prevent this from tripping other people up, I've filed an issue at > https://github.com/opendatakit/collect/issues/709 to catch these > invalid URLs and alert users. > > Thanks for bringing this to our attention, > > Yaw > > On Tue, Mar 14, 2017 at 3:54 PM, Richard Norton <norton....@gmail.com > wrote: > > Hi, > > > > I have recently setup a form which creates an XML ok using the XLSForm > tool, > > uploads to Aggregate, downloads and opens in ODK collect and everything > > seems fine filling out and saving the form until I try to send it. At > this > > point ODK collect, as trialled on two different Android devices, stops > > working and crashes. > > > > Not sure what is going wrong nor how to troubleshoot, but any help, as > usual > > is greatly appreciated. The forms are attached. > > > > A second question but not critical is on the first time running the form > > which has several image captures, the collect app automatically > recognised > > three different camera apps (stock android camera, night camera and a > better > > camera) and prompted the user to select. On subsequent running it > doesn't > > prompt but at least a second option to load from gallery is available.. > > > > These images captures are actually intended to be thermal images taken > using > > a plugin infra red camera and the one Flir app which did not > automatically > > appear in the original selection, so not recognised by ODK colllect as > an > > option for image capture. Ideally I would be able to select this One > Flir > > app when the plug in thermal imaging device is connected. Would this be > > possible through trivial tweaking of some configuration somewhere or > would > > it require more development? > > > > Best rgds > > Richard > > > > > > > > > > -- > > -- > > 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. >