App crashes before unity logo loads

First, Merry Christmas, hohoho :slight_smile:

Now down to business. I have a little needle in my boots that’s been annoying me for a few days. I noticed that my app crashes on my phone, after about 2-3 days.

What happens is that everything works fine. I can restart the app, restart my phone and everything works OK. If 2-3 days passses and I try to start the app, I get this message before the Unity logo even loads “Unfortunately, has stopped.”

I’m using Unity 5.4.1.f and I’m deploying to Android…

Do I need to try ADB and logcat to see if I can get any information? Or have you guys got any idea from the above what it could be? At first I thought I should probably cleanup to ensure no leaks are causing the error, but it still crashes even if I restart the phone…

This is what adb logcat returned:

A lot of entries saying unused DT entry like this:
12-26 10:26:02.341 8315 8315 W linker : /mnt/asec/-17/lib/arm/libunity.so: unused DT entry: type 0x7dbc872d arg 0x1b6d5d9d

12-26 10:26:02.341 8315 8315 W linker : /mnt/asec/17/lib/arm/libunity.so: unused DT entry: type 0xf310b11d arg 0x4811bc4e

12-26 10:26:02.341 8315 8315 W linker : /mnt/asec/-17/lib/arm/libunity.so: unused DT entry: type 0x7dbc872d arg 0x1b6d5d9d

12-26 10:26:02.341 8315 8315 W linker : /mnt/asec/-17/lib/arm/libunity.so: unused DT entry: type 0xf310b11d arg 0x4811bc4e

12-26 10:26:02.341 8315 8315 W linker : /mnt/asec/-17/lib/arm/libunity.so: unused DT entry: type 0x7dbc872d arg 0x1b6d5d9d

12-26 10:26:02.341 8315 8315 W linker : /mnt/asec/-17/lib/arm/libunity.so: unused DT entry: type 0xf310b11d arg 0x4811bc4e

Error logs:
53615 12-26 10:26:03.991 2616 2786 D StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{ffb03b u0 d0 p2616 Application Error: }

55805 12-26 10:26:03.211 8315 8315 F art : art/runtime/jni_internal.cc:497] JNI FatalError called: Unable to load library: /mnt/asec/-17/lib/arm/libunity.so [dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in “/mnt/asec/-17/lib/arm/libunity.so” (new hash type from the future?)]

55849 12-26 10:26:03.271 8315 8315 F art : art/runtime/runtime.cc:366] native: #05 pc 00270f4d /system/lib/libart.so (_ZN3art3JNI10FatalErrorEP7_JNIEnvPKc+72)

55921 12-26 10:26:03.271 8315 8315 F art : art/runtime/runtime.cc:366] native: #07 pc 00270f4d /system/lib/libart.so (_ZN3art3JNI10FatalErrorEP7_JNIEnvPKc+72)

56241 12-26 10:26:03.351 2145 2145 F DEBUG : Abort message: ‘art/runtime/jni_internal.cc:497] JNI FatalError called: Unable to load library: /mnt/asec/-17/lib/arm/libunity.so [dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in “/mnt/asec/-17/lib/arm/libunity.so” (new hash type from the future?)]’

56269 12-26 10:26:03.361 2145 2145 F DEBUG : #07 pc 00270f4d /system/lib/libart.so (_ZN3art3JNI10FatalErrorEP7_JNIEnvPKc+72)

56301 12-26 10:26:03.911 2132 2132 E lowmemorykiller: Error opening /proc/8315/oom_score_adj; errno=2

56429 12-26 10:26:04.031 2616 2786 V WindowStateAnimator: Finishing drawing window Window{ffb03b u0 d0 p2616 Application Error: }: mDrawState=DRAW_PENDING

56437 12-26 10:26:04.051 2616 2786 V WindowStateAnimator: Finishing drawing window Window{ffb03b u0 d0 p2616 Application Error: }: mDrawState=HAS_DRAWN

I think it’s due to the install location. I’ve tried setting it to internal now and will report back in a few days if that fixed it.

Yup. This fixed it for sure.