particle-iot / particle-android

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

Device setup: App crash in GetReadyActivity. #95

Open IgnacioBasallote opened 4 years ago

IgnacioBasallote commented 4 years ago

Hi,

I got this issue while login in your app on a Samsung Galaxy A40 (a40), Android 9. It is only happening on some devices.

java.lang.RuntimeException: 
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3121)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3264)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1955)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7063)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)
Caused by: java.lang.NullPointerException: 
  at io.particle.android.sdk.utils.Preconditions.a (Preconditions.java:9)
  at io.particle.android.sdk.devicesetup.ParticleDeviceSetupLibrary.getInstance (ParticleDeviceSetupLibrary.java:4)
  at io.particle.android.sdk.devicesetup.ui.GetReadyActivity.onCreate (GetReadyActivity.java:8)
  at android.app.Activity.performCreate (Activity.java:7327)
  at android.app.Activity.performCreate (Activity.java:7318)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1275)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3101)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3264)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1955)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7063)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)

Have you have seen this issue before? How can be solved?

Thanks in advance, Nacho

jensck commented 4 years ago

Was this in the Particle app, or in your app, using our library?

IgnacioBasallote commented 4 years ago

Hi Jensck,

I use your library for the WiFi setup (external dependency). I launch the setup from my app according to the guidelines given here: https://docs.particle.io/reference/SDKs/android/#introduction-1.

This app crash happened when initiating your app in the get ready activity.

I hope this is of some help.

Thanks, Nacho

IgnacioBasallote commented 4 years ago

Hi @jensck ,

Sorry to bother you, but do you know approximately when there will be a new release for the device setup library?

Thanks in advance, Nacho