High crash rate on Android SDK35

  1. SDK Version: 35
  2. Platforms(Android/iOS/web/all): Android

Getting high crash rate on Android with:

java.lang.RuntimeException: 
  at host.exp.exponent.experience.BaseExperienceActivity$2.run (BaseExperienceActivity.java:196)
  at android.os.Handler.handleCallback (Handler.java:873)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7058)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)

Sometimes:

java.lang.RuntimeException: Expo encountered a fatal error: Unexpected end of script

or

java.lang.RuntimeException: Expo encountered a fatal error: Unexpected EOF

Any advice on how to debug?

Initially submitted as ExpoKit issue, but others reported the same error happening in managed apps:

Also seeing the same high crash rate on a different app after updating from SDK33 to SDK35:

Hey @andrey,

This is indicative of some error in your JS code. Prior to SDK35, we used to handle fatal crashes by displaying the blue Expo error screen but users made it known that they would prefer a hard crash rather than an Expo interface so we made the change recently. Standalone apps should hard crash rather than show Expo error UI · Issue #4230 · expo/expo · GitHub

I would recommend setting up Sentry or some other JS-error reporting service to get better insight into what is causing your crash(es).

Cheers,
Adam

1 Like

Hey @adamjnav, thanks! Looking into JS code.

Ok, found some JS bugs, fixed them and seeing less crashes. Even though there were not marked as fatal in Sentry.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.