Search Unity

App crash on Android 4.1 (il2cpp with strip engine code)

Discussion in 'Android' started by Nolex, Jan 30, 2020.

  1. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    Hi.

    My game crash on Android < 4.4.4 (4.1, 4.2, 4.3).
    Strip engine code: Low = Crash.
    Strip engine code: Medium = Crash.
    Strip engine code: High = Crash.

    Strip engine code: None = Good, no crash. But build size +5 Mb.

    On Android 4.4.4 and above - game works fine with Strip engine code.

    I think the problem in libunity.so. And "Strip engine code" removes something important.

    There may also be a problem in this line:
    Could not find class 'android.view.autofill.AutofillManager', referenced from method com.facebook.internal.Utility.isAutofillAvailable

    Logs (Sony XPeria S, Android 4.1.2):

    13:01:53.617: E/Trace(10716): error opening trace file: No such file or directory (2)
    13:01:53.807: E/dalvikvm(10716): Could not find class 'android.view.autofill.AutofillManager', referenced from method com.facebook.internal.Utility.isAutofillAvailable
    13:01:53.937: E/dalvikvm(10716): JNI posting fatal error: Unable to load library: /data/data/game.my/lib/libunity.so [Cannot load library: find_library[1201]: 154 'libunity.so' failed to load previously]
    13:01:53.937: E/dalvikvm(10716): VM aborting
    13:01:54.467: A/libc(10716): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 10716 (.game.my)
    13:01:55.567: E/NotificationService(421): Ignoring notification with icon==0: Notification(pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x62 kind=[null])
    13:01:55.617: E/wpa_supplicant(579): wpa_driver_nl80211_driver_cmd: failed to issue private commands
    13:01:59.097: E/dalvikvm(10604): Could not find class 'android.os.UserManager', referenced from method ebu.aI
    13:01:59.197: E/dalvikvm(10604): Could not find class 'anl', referenced from method amt.a


    Logs (Sony XPeria P, Android 4.1.2):

    13:15:45.141: E/Trace(6678): error opening trace file: No such file or directory (2)
    13:15:45.251: E/dalvikvm(6678): Could not find class 'android.view.autofill.AutofillManager', referenced from method com.facebook.internal.Utility.isAutofillAvailable
    13:15:45.342: E/dalvikvm(6678): JNI posting fatal error: Unable to load library: /mnt/asec/game.my-1/lib/libunity.so [Cannot load library: find_library[1201]: 1500 'libunity.so' failed to load previously]
    13:15:45.342: E/dalvikvm(6678): VM aborting
    13:15:45.342: A/libc(6678): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 6678 (.game.my)
    13:15:45.392: E/wpa_supplicant(2096): RX ctrl_iface - hexdump_ascii(len=11):
    13:15:45.392: E/wpa_supplicant(2096): 53 49 47 4e 41 4c 5f 50 4f 4c 4c SIGNAL_POLL
    13:15:48.394: E/wpa_supplicant(2096): RX ctrl_iface - hexdump_ascii(len=11):
    13:15:48.394: E/wpa_supplicant(2096): 53 49 47 4e 41 4c 5f 50 4f 4c 4c SIGNAL_POLL
    13:15:51.558: E/wpa_supplicant(2096): RX ctrl_iface - hexdump_ascii(len=11):

    13:15:51.558: E/wpa_supplicant(2096): 53 49 47 4e 41 4c 5f 50 4f 4c 4c SIGNAL_POLL

    Logs (Gigabyte GSmart AKU A1, Android 4.1.2):

    13:57:59.215: E/dalvikvm(2677): Could not find class 'android.view.autofill.AutofillManager', referenced from method com.facebook.internal.Utility.isAutofillAvailable
    13:57:59.297: E/dalvikvm(2677): JNI posting fatal error: Unable to load library: /data/app-lib/game.my-1/libunity.so [Cannot load library: find_library(linker.cpp:889): "libunity.so" failed to load previously]
    13:57:59.328: E/dalvikvm(2677): VM aborting
    13:57:59.601: A/libc(2677): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 2677 (.game.my)
    13:58:00.135: E/AEE/DUMPSTATE(2711): copy_process: execv /system/xbin/showmap failed(2), No such file or directory
    13:58:00.654: E/AEE/DUMPSTATE(2709): copy_file: Copy /proc/gpulog to SYS_GPU_INFO failed(2), No such file or directory
    13:58:02.055: E/AEE/DUMPSTATE(2725): copy_process: execv /system/xbin/procrank failed(2), No such file or directory
    13:58:03.335: E/AEE/DUMPSTATE(2709): copy_file: Copy /proc/slabinfo to SYS_SLAB_INFO failed(2), No such file or directory
    13:58:03.600: E/AEE/DUMPSTATE(2709): copy_file: Copy /sys/kernel/debug/wakeup_sources to SYS_KERNEL_WAKELOCKS failed(2), No such file or directory
    13:58:03.713: E/AEE/DUMPSTATE(2730): copy_process: execv /system/xbin/librank failed(2), No such file or directory
    13:58:08.901: E/AEE/DUMPSTATE(2768): copy_process: execv /system/xbin/proc_mem failed(2), No such file or directory



    Unity 2019.2.12f.
    JDK 1.8.0_152.
    Facebook SDK 7.18.10

    Please help. Thanks!
     
    leni8ec likes this.
  2. Nolex

    Nolex

    Joined:
    Dec 10, 2010
    Posts:
    116
    I try to use Strip Engine Code with link.xml:


    <linker>
    <assembly fullname="UnityEngine">
    <type fullname="UnityEngine.AndroidJNIModule" preserve="all"/>
    </assembly>
    </linker>


    But it doesn’t help!

    The file "libunity.so" is cropped.
    Original size (if unpack *.apk): apk\lib\armeabi-v7a\libunity.so = 15 MB.
    Cropped size (if unpack *.apk): apk\lib\armeabi-v7a\libunity.so = 11 MB.

    Any ideas?