particle-iot / particle-android

Particle Open Source for Android
Apache License 2.0
37 stars 38 forks source link

Device setup: App crash #94

Open IgnacioBasallote opened 4 years ago

IgnacioBasallote commented 4 years ago

Hi,

I had an app crash on a Moto G (5th Gen) (cedric) with Android 8.1. The app came with this error when setting the Wi-Fi connection.


  at androidx.loader.content.ModernAsyncTask$3.done (ModernAsyncTask.java:33)
  at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383)
  at java.util.concurrent.FutureTask.setException (FutureTask.java:252)
  at java.util.concurrent.FutureTask.run (FutureTask.java:271)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1162)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:636)
  at java.lang.Thread.run (Thread.java:764)
Caused by: java.lang.NullPointerException: 
  at java.util.Objects.requireNonNull (Objects.java:203)
  at java.util.Arrays$ArrayList.<init> (Arrays.java:3741)
  at java.util.Arrays.asList (Arrays.java:3728)
  at io.particle.android.sdk.devicesetup.commands.ScanApCommand$Response.getScans (ScanApCommand.java:2)
  at io.particle.android.sdk.devicesetup.loaders.ScanApCommandLoader.v (ScanApCommandLoader.java:17)
  at io.particle.android.sdk.devicesetup.loaders.ScanApCommandLoader.loadInBackground (ScanApCommandLoader.java)
  at io.particle.android.sdk.devicesetup.loaders.ScanApCommandLoader.loadInBackground (ScanApCommandLoader.java)
  at androidx.loader.content.AsyncTaskLoader.onLoadInBackground (AsyncTaskLoader.java)
  at androidx.loader.content.AsyncTaskLoader$LoadTask.a (AsyncTaskLoader.java:2)
  at androidx.loader.content.AsyncTaskLoader$LoadTask.a (AsyncTaskLoader.java:2)
  at androidx.loader.content.ModernAsyncTask$2.call (ModernAsyncTask.java:18)
  at java.util.concurrent.FutureTask.run (FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1162)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:636)
  at java.lang.Thread.run (Thread.java:764)```

Have you ever seen this error before? what can be the reason which triggered it?

I am looking forward to your reply.

Thanks in advance!
Nacho
IgnacioBasallote commented 4 years ago

Hi,

Again same issue on a Samsung Galaxy A40 (a40), Android 9.

This is the version of device setup library in my project: io.particle:devicesetup:0.6.3.

I do not why but the app crashes in some devices. Tried on a Samsung S9+ and OnePlus without any issue.

I am looking forward to your response.

Thanks and regards, Nacho

jensck commented 4 years ago

I found the source of the crash. I'll fix this for the next release of the lib. Thanks!

IgnacioBasallote commented 4 years ago

Hi Jensck!

Thanks for your answer!

Do you know approximately when are you launching a new release?

Cheers, Nacho

IgnacioBasallote commented 4 years ago

Hi @jensck ,

Thanks for your support.

I have seen that the master branch was uploaded 23 days before. Does it mean that the next release will take at least 60 days? Because we have experienced this issue with several users, and if this takes that long maybe we need to figure out how to face this issue in the meantime.

Cheers, Nacho

IgnacioBasallote commented 4 years ago

Hi @jensck,

Do we have any news regarding the new release?

Cheers, Nacho

IgnacioBasallote commented 4 years ago

Hi,

I could gather some extra info from other crash in another android device that might be related to the same issue:

photo_2020-06-23_21-53-11 photo_2020-06-23_21-53-27

It seems to me that we are trying to connect using the 4G instead of the WiFi.

I hope this is of some help to you.

Cheers, Nacho