Hi all! I released my app on the store (woohoo!), but I got 2 crashes on Android with this message:
java.lang.RuntimeException:
at android.app.ActivityManager$TaskDescription.<init>(ActivityManager.java:1167)
at host.exp.exponent.h.f.a(ExperienceActivityUtils.java:100)
at host.exp.exponent.t.a(ExponentManifest.java:368)
at host.exp.exponent.t.onPostExecute(ExponentManifest.java:331)
at android.os.AsyncTask.finish(AsyncTask.java:667)
at android.os.AsyncTask.-wrap1(Unknown Source:0)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6535)
at java.lang.reflect.Method.invoke(Native Method:0)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
I suppose it is caused by Expo, but is it really?
What could create this crash?
Thanks for reporting this – does this crash happen each time you try to open the app, or was it just two times out of many runs? Also do you mind sharing your exp.json/app.json file since some of its fields affect the piece of code that is crashing?
Hi! It’s now 5 times out of many runs. I’m not the one experiencing these crashes, but I do recieve the reports in Google Play Console from the app users.
Started to receive other kind of crash related tot the backPress
java.lang.NullPointerException:
at host.exp.exponent.experience.a.onBackPressed(BaseExperienceActivity.java:90)
at android.app.Activity.onKeyUp(Activity.java:2482)
at host.exp.exponent.experience.m.onKeyUp(ReactNativeActivity.java:226)
But I think this is something I can fix myself with the BackHandler of React-Native
We updated Expo (Android) in the Play Store today (version 1.17.0), which we believe addresses this crash. We’ll update the standalone app builders soon too.
Hi again!
Bringing bad news with other crash my app got
java.lang.RuntimeException:
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2939)
at android.app.ActivityThread.access$1900(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1445)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5585)
at java.lang.reflect.Method.invoke(Native Method:0)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: java.lang.NullPointerException:
at host.exp.exponent.gcm.RegistrationIntentService.onCreate(RegistrationIntentService.java:40)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2929)
and
java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2787)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4568)
at android.app.ActivityThread.-wrap19(ActivityThread.java:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1510)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6247)
at java.lang.reflect.Method.invoke(Native Method:0)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
Caused by: java.lang.RuntimeException:
at android.app.ActivityManager$TaskDescription.<init>(ActivityManager.java:982)
at host.exp.exponent.h.f.a(ExperienceActivityUtils.java:100)
at host.exp.exponent.o.a(ExponentManifest.java:327)
at host.exp.exponent.h.e.a(ExperienceActivityUtils.java:94)
at host.exp.exponent.experience.e.run(ExperienceActivity.java:393)
at android.app.Activity.runOnUiThread(Activity.java:5942)
at host.exp.exponent.experience.ExperienceActivity.a(ExperienceActivity.java:335)
at host.exp.exponent.experience.ExperienceActivity.a(ExperienceActivity.java:246)
at host.exp.exponent.experience.ExperienceActivity.onCreate(ExperienceActivity.java:140)
at android.app.Activity.performCreate(Activity.java:6757)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2679)
Are these crash coming from what I code or it’s from Expo?
Hey @jesse I’m using detached version and tried updating ExpoView to SDK 19, but still getting this error. Is there anything I can change in android files themselves to fix it?
I’m getting the same error every time when I started my app downloaded from google play store.
On emulator via android studio everything works. Any idea?