Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

App crashes before unity logo loads

Discussion in 'Editor & General Support' started by dehdar, Dec 26, 2016.

  1. dehdar

    dehdar

    Joined:
    Sep 1, 2016
    Posts:
    51
    First, Merry Christmas, hohoho :)

    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, <AppName> 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...
     
  2. dehdar

    dehdar

    Joined:
    Sep 1, 2016
    Posts:
    51
    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/<appname>-17/lib/arm/libunity.so: unused DT entry: type 0x7dbc872d arg 0x1b6d5d9d

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

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

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

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

    12-26 10:26:02.341 8315 8315 W linker : /mnt/asec/<appname>-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: <appName>}

    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/<appName>-17/lib/arm/libunity.so [dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/mnt/asec/<appName>-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/<appName>-17/lib/arm/libunity.so [dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/mnt/asec/<appName>-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: <appName>}: mDrawState=DRAW_PENDING

    56437 12-26 10:26:04.051 2616 2786 V WindowStateAnimator: Finishing drawing window Window{ffb03b u0 d0 p2616 Application Error: <appName>}: mDrawState=HAS_DRAWN
     
    Last edited: Dec 26, 2016
  3. dehdar

    dehdar

    Joined:
    Sep 1, 2016
    Posts:
    51
    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.
     
  4. dehdar

    dehdar

    Joined:
    Sep 1, 2016
    Posts:
    51
    Yup. This fixed it for sure.