Urgent: Strange Error

I'm getting this when I try to start a new form:

I/PropertyManager( 8834): calling constructor
I/FormLoaderTask( 8834): Attempting to load STO Reconciliation.xml
from cached file:
/mnt/sdcard/odk/.cache/2cc29e46971c5a38f6447910d8d9186a.formdef
E/FileUtils( 8834): Cannot find STO Counting_2011-10-07_09-44-09.xml
W/System.err( 8834): java.io.FileNotFoundException:
/mnt/sdcard/odk/instances/STO Counting_2011-10-07_09-44-09/STO
Counting_2011-10-07_09-44-09.xml (No such file or directory)
W/System.err( 8834): at
org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
W/System.err( 8834): at
dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
W/System.err( 8834): at java.io.FileInputStream.(FileInputStream.java:80)
W/System.err( 8834): at
org.odk.collect.android.utilities.FileUtils.getFileAsBytes(FileUtils.java:66)
W/System.err( 8834): at
org.odk.collect.android.tasks.FormLoaderTask.importData(FormLoaderTask.java:227)
W/System.err( 8834): at
org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:180)
W/System.err( 8834): at
org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:56)
W/System.err( 8834): at android.os.AsyncTask$2.call(AsyncTask.java:185)
W/System.err( 8834): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
W/System.err( 8834): at
java.util.concurrent.FutureTask.run(FutureTask.java:138)
W/System.err( 8834): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
W/System.err( 8834): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
W/System.err( 8834): at java.lang.Thread.run(Thread.java:1019)
I/ActivityManager( 98): Displayed
org.odk.collect.android/.activities.FormEntryActivity: +486ms

The weird thing is that it sometimes works the first time, but then
errors thereafter. The error shown on the phone is 'Sorry, Unable to
Parse Form'.

Any help would be appreciated. Thanks.

Update: It seems to have something to do with the slideout keyboard
crash fix that Carl posted. I reverted to a previous version and the
error went away.

··· On 7 October 2011 09:46, Thomas Smyth wrote: > I'm getting this when I try to start a new form: > > I/PropertyManager( 8834): calling constructor > I/FormLoaderTask( 8834): Attempting to load STO Reconciliation.xml > from cached file: > /mnt/sdcard/odk/.cache/2cc29e46971c5a38f6447910d8d9186a.formdef > E/FileUtils( 8834): Cannot find STO Counting_2011-10-07_09-44-09.xml > W/System.err( 8834): java.io.FileNotFoundException: > /mnt/sdcard/odk/instances/STO Counting_2011-10-07_09-44-09/STO > Counting_2011-10-07_09-44-09.xml (No such file or directory) > W/System.err( 8834): at > org.apache.harmony.luni.platform.OSFileSystem.open(Native Method) > W/System.err( 8834): at > dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232) > W/System.err( 8834): at java.io.FileInputStream.(FileInputStream.java:80) > W/System.err( 8834): at > org.odk.collect.android.utilities.FileUtils.getFileAsBytes(FileUtils.java:66) > W/System.err( 8834): at > org.odk.collect.android.tasks.FormLoaderTask.importData(FormLoaderTask.java:227) > W/System.err( 8834): at > org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:180) > W/System.err( 8834): at > org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:56) > W/System.err( 8834): at android.os.AsyncTask$2.call(AsyncTask.java:185) > W/System.err( 8834): at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) > W/System.err( 8834): at > java.util.concurrent.FutureTask.run(FutureTask.java:138) > W/System.err( 8834): at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) > W/System.err( 8834): at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) > W/System.err( 8834): at java.lang.Thread.run(Thread.java:1019) > I/ActivityManager( 98): Displayed > org.odk.collect.android/.activities.FormEntryActivity: +486ms > > The weird thing is that it sometimes works the first time, but then > errors thereafter. The error shown on the phone is 'Sorry, Unable to > Parse Form'. > > Any help would be appreciated. Thanks. >

I figured this out. The mInstance = null needs to go somewhere else. I
will post a bug and a patch when things calm down.

··· On 7 October 2011 10:13, Thomas Smyth wrote: > Update: It seems to have something to do with the slideout keyboard > crash fix that Carl posted. I reverted to a previous version and the > error went away. > > On 7 October 2011 09:46, Thomas Smyth wrote: >> I'm getting this when I try to start a new form: >> >> I/PropertyManager( 8834): calling constructor >> I/FormLoaderTask( 8834): Attempting to load STO Reconciliation.xml >> from cached file: >> /mnt/sdcard/odk/.cache/2cc29e46971c5a38f6447910d8d9186a.formdef >> E/FileUtils( 8834): Cannot find STO Counting_2011-10-07_09-44-09.xml >> W/System.err( 8834): java.io.FileNotFoundException: >> /mnt/sdcard/odk/instances/STO Counting_2011-10-07_09-44-09/STO >> Counting_2011-10-07_09-44-09.xml (No such file or directory) >> W/System.err( 8834): at >> org.apache.harmony.luni.platform.OSFileSystem.open(Native Method) >> W/System.err( 8834): at >> dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232) >> W/System.err( 8834): at java.io.FileInputStream.(FileInputStream.java:80) >> W/System.err( 8834): at >> org.odk.collect.android.utilities.FileUtils.getFileAsBytes(FileUtils.java:66) >> W/System.err( 8834): at >> org.odk.collect.android.tasks.FormLoaderTask.importData(FormLoaderTask.java:227) >> W/System.err( 8834): at >> org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:180) >> W/System.err( 8834): at >> org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:56) >> W/System.err( 8834): at android.os.AsyncTask$2.call(AsyncTask.java:185) >> W/System.err( 8834): at >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) >> W/System.err( 8834): at >> java.util.concurrent.FutureTask.run(FutureTask.java:138) >> W/System.err( 8834): at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) >> W/System.err( 8834): at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) >> W/System.err( 8834): at java.lang.Thread.run(Thread.java:1019) >> I/ActivityManager( 98): Displayed >> org.odk.collect.android/.activities.FormEntryActivity: +486ms >> >> The weird thing is that it sometimes works the first time, but then >> errors thereafter. The error shown on the phone is 'Sorry, Unable to >> Parse Form'. >> >> Any help would be appreciated. Thanks. >> >

Hey Thomas,
It sounds like you haven't pulled all the changesets. The commit
immediately after the keyboard fix fixed the instance issue.
-Carl

··· On Fri, Oct 7, 2011 at 4:33 AM, Thomas Smyth wrote:

I figured this out. The mInstance = null needs to go somewhere else. I
will post a bug and a patch when things calm down.

On 7 October 2011 10:13, Thomas Smyth thomas.smyth@gatech.edu wrote:

Update: It seems to have something to do with the slideout keyboard
crash fix that Carl posted. I reverted to a previous version and the
error went away.

On 7 October 2011 09:46, Thomas Smyth thomas.smyth@gatech.edu wrote:

I'm getting this when I try to start a new form:

I/PropertyManager( 8834): calling constructor
I/FormLoaderTask( 8834): Attempting to load STO Reconciliation.xml
from cached file:
/mnt/sdcard/odk/.cache/2cc29e46971c5a38f6447910d8d9186a.formdef
E/FileUtils( 8834): Cannot find STO Counting_2011-10-07_09-44-09.xml
W/System.err( 8834): java.io.FileNotFoundException:
/mnt/sdcard/odk/instances/STO Counting_2011-10-07_09-44-09/STO
Counting_2011-10-07_09-44-09.xml (No such file or directory)
W/System.err( 8834): at
org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
W/System.err( 8834): at
dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
W/System.err( 8834): at
java.io.FileInputStream.(FileInputStream.java:80)

W/System.err( 8834): at

org.odk.collect.android.utilities.FileUtils.getFileAsBytes(FileUtils.java:66)

W/System.err( 8834): at

org.odk.collect.android.tasks.FormLoaderTask.importData(FormLoaderTask.java:227)

W/System.err( 8834): at

org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:180)

W/System.err( 8834): at

org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:56)

W/System.err( 8834): at
android.os.AsyncTask$2.call(AsyncTask.java:185)

W/System.err( 8834): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
W/System.err( 8834): at
java.util.concurrent.FutureTask.run(FutureTask.java:138)
W/System.err( 8834): at

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)

W/System.err( 8834): at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)

W/System.err( 8834): at java.lang.Thread.run(Thread.java:1019)
I/ActivityManager( 98): Displayed
org.odk.collect.android/.activities.FormEntryActivity: +486ms

The weird thing is that it sometimes works the first time, but then
errors thereafter. The error shown on the phone is 'Sorry, Unable to
Parse Form'.

Any help would be appreciated. Thanks.

Oh I see. So is there like an RC2 tag now or something?

··· On 7 October 2011 15:48, Carl Hartung wrote: > Hey Thomas, > It sounds like you haven't pulled all the changesets. The commit > immediately after the keyboard fix fixed the instance issue. > -Carl > > On Fri, Oct 7, 2011 at 4:33 AM, Thomas Smyth wrote: >> >> I figured this out. The mInstance = null needs to go somewhere else. I >> will post a bug and a patch when things calm down. >> >> On 7 October 2011 10:13, Thomas Smyth wrote: >> > Update: It seems to have something to do with the slideout keyboard >> > crash fix that Carl posted. I reverted to a previous version and the >> > error went away. >> > >> > On 7 October 2011 09:46, Thomas Smyth wrote: >> >> I'm getting this when I try to start a new form: >> >> >> >> I/PropertyManager( 8834): calling constructor >> >> I/FormLoaderTask( 8834): Attempting to load STO Reconciliation.xml >> >> from cached file: >> >> /mnt/sdcard/odk/.cache/2cc29e46971c5a38f6447910d8d9186a.formdef >> >> E/FileUtils( 8834): Cannot find STO Counting_2011-10-07_09-44-09.xml >> >> W/System.err( 8834): java.io.FileNotFoundException: >> >> /mnt/sdcard/odk/instances/STO Counting_2011-10-07_09-44-09/STO >> >> Counting_2011-10-07_09-44-09.xml (No such file or directory) >> >> W/System.err( 8834): at >> >> org.apache.harmony.luni.platform.OSFileSystem.open(Native Method) >> >> W/System.err( 8834): at >> >> dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232) >> >> W/System.err( 8834): at >> >> java.io.FileInputStream.(FileInputStream.java:80) >> >> W/System.err( 8834): at >> >> >> >> org.odk.collect.android.utilities.FileUtils.getFileAsBytes(FileUtils.java:66) >> >> W/System.err( 8834): at >> >> >> >> org.odk.collect.android.tasks.FormLoaderTask.importData(FormLoaderTask.java:227) >> >> W/System.err( 8834): at >> >> >> >> org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:180) >> >> W/System.err( 8834): at >> >> >> >> org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:56) >> >> W/System.err( 8834): at >> >> android.os.AsyncTask$2.call(AsyncTask.java:185) >> >> W/System.err( 8834): at >> >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) >> >> W/System.err( 8834): at >> >> java.util.concurrent.FutureTask.run(FutureTask.java:138) >> >> W/System.err( 8834): at >> >> >> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) >> >> W/System.err( 8834): at >> >> >> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) >> >> W/System.err( 8834): at java.lang.Thread.run(Thread.java:1019) >> >> I/ActivityManager( 98): Displayed >> >> org.odk.collect.android/.activities.FormEntryActivity: +486ms >> >> >> >> The weird thing is that it sometimes works the first time, but then >> >> errors thereafter. The error shown on the phone is 'Sorry, Unable to >> >> Parse Form'. >> >> >> >> Any help would be appreciated. Thanks. >> >> >> > > >

nah, we forgot to tag. just use tip for now.

··· On Fri, Oct 7, 2011 at 10:51, Thomas Smyth wrote: > Oh I see. So is there like an RC2 tag now or something? > > On 7 October 2011 15:48, Carl Hartung wrote: >> Hey Thomas, >> It sounds like you haven't pulled all the changesets. The commit >> immediately after the keyboard fix fixed the instance issue. >> -Carl >> >> On Fri, Oct 7, 2011 at 4:33 AM, Thomas Smyth wrote: >>> >>> I figured this out. The mInstance = null needs to go somewhere else. I >>> will post a bug and a patch when things calm down. >>> >>> On 7 October 2011 10:13, Thomas Smyth wrote: >>> > Update: It seems to have something to do with the slideout keyboard >>> > crash fix that Carl posted. I reverted to a previous version and the >>> > error went away. >>> > >>> > On 7 October 2011 09:46, Thomas Smyth wrote: >>> >> I'm getting this when I try to start a new form: >>> >> >>> >> I/PropertyManager( 8834): calling constructor >>> >> I/FormLoaderTask( 8834): Attempting to load STO Reconciliation.xml >>> >> from cached file: >>> >> /mnt/sdcard/odk/.cache/2cc29e46971c5a38f6447910d8d9186a.formdef >>> >> E/FileUtils( 8834): Cannot find STO Counting_2011-10-07_09-44-09.xml >>> >> W/System.err( 8834): java.io.FileNotFoundException: >>> >> /mnt/sdcard/odk/instances/STO Counting_2011-10-07_09-44-09/STO >>> >> Counting_2011-10-07_09-44-09.xml (No such file or directory) >>> >> W/System.err( 8834): at >>> >> org.apache.harmony.luni.platform.OSFileSystem.open(Native Method) >>> >> W/System.err( 8834): at >>> >> dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232) >>> >> W/System.err( 8834): at >>> >> java.io.FileInputStream.(FileInputStream.java:80) >>> >> W/System.err( 8834): at >>> >> >>> >> org.odk.collect.android.utilities.FileUtils.getFileAsBytes(FileUtils.java:66) >>> >> W/System.err( 8834): at >>> >> >>> >> org.odk.collect.android.tasks.FormLoaderTask.importData(FormLoaderTask.java:227) >>> >> W/System.err( 8834): at >>> >> >>> >> org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:180) >>> >> W/System.err( 8834): at >>> >> >>> >> org.odk.collect.android.tasks.FormLoaderTask.doInBackground(FormLoaderTask.java:56) >>> >> W/System.err( 8834): at >>> >> android.os.AsyncTask$2.call(AsyncTask.java:185) >>> >> W/System.err( 8834): at >>> >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306) >>> >> W/System.err( 8834): at >>> >> java.util.concurrent.FutureTask.run(FutureTask.java:138) >>> >> W/System.err( 8834): at >>> >> >>> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) >>> >> W/System.err( 8834): at >>> >> >>> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) >>> >> W/System.err( 8834): at java.lang.Thread.run(Thread.java:1019) >>> >> I/ActivityManager( 98): Displayed >>> >> org.odk.collect.android/.activities.FormEntryActivity: +486ms >>> >> >>> >> The weird thing is that it sometimes works the first time, but then >>> >> errors thereafter. The error shown on the phone is 'Sorry, Unable to >>> >> Parse Form'. >>> >> >>> >> Any help would be appreciated. Thanks. >>> >> >>> > >> >> >