Collect v1.4.13, Android v5.1.1, device used Samsung Galaxy J1 Mini and J1
ODK Collect crashes when we try to fetch an xml form from Google Drive.
Goto xml files in My Drive or Shared With Me and select relevant
Tried on three makes of phone with 3 different versions
Samsung J1 4.44
Huawei P8 Lite 5.0
Samsung J1 Mini 5.1.1
Reverted to 1.4.12 APK and all works fine
Looks like it's the same issue https://github.com/opendatakit/collect/issues/289 but now it occurs when we use the apk from Google Play.
The stack traces don't appear to have any useful info. Listing from the drive:
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object com.google.a.b.a.a$b$b.e()' on a null object reference
at org.odk.collect.android.activities.GoogleDriveActivity$b.a(Unknown Source)
at org.odk.collect.android.activities.GoogleDriveActivity$b.doInBackground(Unknown Source)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 3 more
Publishing a previously loaded form:
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NoSuchMethodError: No static method newPullParser()Lorg/g/a/a; in class Landroid/util/Xml; or its super classes (declaration of 'android.util.Xml' appears in /system/framework/framework.jar:classes2.dex)
at org.odk.collect.android.h.g.a(Unknown Source)
at org.odk.collect.android.h.g.a(Unknown Source)
at org.odk.collect.android.h.g.a(Unknown Source)
at org.odk.collect.android.activities.GoogleSheetsUploaderActivity$a.a(Unknown Source)
at org.odk.collect.android.activities.GoogleSheetsUploaderActivity$a.doInBackground(Unknown Source)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 3 more
@grzesiek2010 is probably correct that it's some kind of API auth issue like in #289 (the stack traces are also similar). @yanokwa and @mitchellsundt are working on it.
Realized it couldn't be an API config issue since 1.4.12 and 1.4.13 are signed with the same key. It turns out it's a minification issue. Hints were that I couldn't generate a signed apk that worked when checking out 1.4.12 (minification was disabled for the release build but that code wasn't checked in) and the strange identifiers such as org.odk.collect.android.h.g.a. I'm going to turn minification off, add a comment saying why and check that change in.
@mapland thank you so much for reporting this immediately and providing details on what you tried.
Thanks Dream Team, seriously rapid repair, we are using Collect 1.4.14 off
Play and it is working smoothly.
On 26 January 2017 at 09:47, Yaw Anokwa notifications@github.com wrote:
Closed #360 https://github.com/opendatakit/collect/issues/360 via #361
https://github.com/opendatakit/collect/pull/361.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/opendatakit/collect/issues/360#event-937376287, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AO9Zf47GW4Fug4yvN98d9v74orWMijD-ks5rWE-agaJpZM4Ltkp2
.
--
Chris Berens
Pr GISc (SAGC) #1308
+27 (0)82 567 9322
Most helpful comment
Thanks Dream Team, seriously rapid repair, we are using Collect 1.4.14 off
Play and it is working smoothly.
On 26 January 2017 at 09:47, Yaw Anokwa notifications@github.com wrote:
--
Chris Berens
Pr GISc (SAGC) #1308
+27 (0)82 567 9322