Android crash when app updating

I have 22 crashes in my google console with this log in Classic Klondike Solitair (minimalistic app without NE at all).

java.lang.NullPointerException: 
  at android.app.LoadedApk.getAssets (LoadedApk.java:528)
  at android.app.LoadedApk.makeApplication (LoadedApk.java:584)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:4527)
  at android.app.ActivityThread.access$1500 (ActivityThread.java:151)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1364)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:135)
  at android.app.ActivityThread.main (ActivityThread.java:5255)
  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:902)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:697)

Looks like this issue (when user try to run an apk, during it updates)

I reproduce this issue with “adb install -r my.apk” and try to run an app in right time.

Maybe have sence to handle it?
Crashes is one of the factor for google algorithms, a lot of crashes - the reason to shift down your app place in google play search algorithms even when user himself to blame.

1 Like

Hi @AGulev!

I don’t think I’ve seen this error before.
Can you reproduce it 100% locally? What device/OS version are you trying on?
Did you get any logs? Can I download the apk from somewhere?

I think the only new feature we’ve added for Android is the support for multidex (in 1.2.120). Perhaps you can try bundling with 1.2.119 and see if it’s reproducible there?

3 Likes

I made last update of the game December 27, 2017 (it was version 119, i think…)
apk is here:

2 Likes

Searching for the first line, and checking the first result, it seems to be an old known issue with Google.
Good thing is that some users present a workaround though, and that is something we will look into.

1 Like

I reproduced on Android 6.0 Xiaomi Redmi Note 4
It was other line of the same module:
at android.app.LoadedApk.getAssets(LoadedApk.java:593)

Today you have an anti-crash mood as I see :star_struck:, maybe this crash will be in this list of wins too =)

3 Likes

Heh, I’ll take a look at this tomorrow for sure :wink:

4 Likes

Yeah, @Mathias_Westerdahl and the team is really on a bug hunt! Also inspiring to follow @Mathias_Westerdahl recent efforts on Twitter to reach a 0 warning state on compilation of Defold. Two thumbs up to an awesome engine dev team!

3 Likes