Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect crashes when trying to Configure project with QR code or Entering Get Blank Form on Android 5.1. #5178

Closed
srujner opened this issue Jul 7, 2022 · 0 comments · Fixed by #5181

Comments

@srujner
Copy link

srujner commented Jul 7, 2022

Software and hardware versions

Collect v current master Android v 5.1,

Problem description

When testing #5154 I have noticed crash on Android 5.1 device only when trying to Configure project with QR. This issue occurs both on master and #5154 on store version everything works fine.
It's a little bit strange issue, because yesterday I scanned qr codes multiple times both on master and #5154 branch and everything works well. The second possible crash is after clicking on the Get Blank form.
Issues does not occurs on all other devices.

Steps to reproduce the problem with QR code

  1. Install ODK application;
  2. Click on the "Configure with QR code" button;
  3. Scan any valid QR code.

Screenshot_20220707-151127

Steps to reproduce the problem with Get Blank Form

  1. Install ODK application;
  2. Click on the "Try a demo" button;
  3. Click on the "Get Blank Form" button;
  4. Connecting to server dialog will show and after few seconds the application will crash or user will be redirected to the Main menu.

Expected behavior

Collect should not crash or redirect user to the main menu.

Other information
When trying to import QR code from drive nothing happens and QR code is not imported.
Logs from Android studio:

--------- beginning of crash
2022-07-07 14:16:14.461 14893-14893/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.odk.collect.android, PID: 14893
java.lang.NoClassDefFoundError: j$.util.function.Supplier$Wrapper
at org.apache.commons.io.IOUtils$$ExternalSyntheticAPIConversion0.m(R8$$SyntheticClass)
at org.apache.commons.io.IOUtils.(IOUtils.java:183)
at org.apache.commons.io.output.AbstractByteArrayOutputStream.needNewBuffer(AbstractByteArrayOutputStream.java:104)
at org.apache.commons.io.output.ByteArrayOutputStream.(ByteArrayOutputStream.java:50)
at org.odk.collect.android.utilities.CompressionUtils.decompress(CompressionUtils.java:80)
at org.odk.collect.android.projects.QrCodeProjectCreatorDialog.startScanning$lambda-4(QrCodeProjectCreatorDialog.kt:242)
at org.odk.collect.android.projects.QrCodeProjectCreatorDialog.$r8$lambda$ByUYamdCK4t6CK6Mnx3PLcICPnE(QrCodeProjectCreatorDialog.kt)
at org.odk.collect.android.projects.QrCodeProjectCreatorDialog$$ExternalSyntheticLambda4.onChanged(R8$$SyntheticClass)
at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
at org.odk.collect.android.views.BarcodeViewDecoder$1.barcodeResult(BarcodeViewDecoder.java:21)
at com.journeyapps.barcodescanner.DecoratedBarcodeView$WrappedCallback.barcodeResult(DecoratedBarcodeView.java:50)
at com.journeyapps.barcodescanner.BarcodeView$1.handleMessage(BarcodeView.java:52)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5298)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)

@grzesiek2010 grzesiek2010 self-assigned this Jul 8, 2022
@srujner srujner changed the title Collect crashes when trying to Configure project with QR code on Android 5.1. Collect crashes when trying to Configure project with QR code or Entering Get Blank Form on Android 5.1. Jul 8, 2022
@grzesiek2010 grzesiek2010 added this to the v2022.3 milestone Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants