Search Unity

Unity 2019.x IL2CPP crash on Android 8

Discussion in 'Android' started by GuruGurra, May 7, 2019.

  1. Irina-uk

    Irina-uk

    Joined:
    Feb 14, 2014
    Posts:
    19
    I have the same problem.
    Build Error: Unity 2019.1.10f1 and 2019.2.0f1

    I could only fix it like that. What is the right solution?

    add -> android:allowBackup="false" tools:replace="android:allowBackup"


    <application android:theme="@StyLe/UnityThemeSelector" android:allowBackup="false" tools:replace="android:allowBackup" android:icon="@Mipmap/app_icon" android:label="@String/app_name" android:isGame="true" android:banner="@drawable/app_banner" android:usesCleartextTraffic="true">
     
    Last edited: Aug 3, 2019
  2. lucasmontec

    lucasmontec

    Joined:
    Apr 7, 2015
    Posts:
    94
    I'm having the same issue with Unity 2019. I didn't try to cleanup the app data but not a single build would run on my device. I'm getting signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault and signal 11 (SIGSEGV), code 2 (XXXXX), fault always.
    My phone is a Motorola G5 with the latest system version.
     
  3. lucasmontec

    lucasmontec

    Joined:
    Apr 7, 2015
    Posts:
    94
    To be fair, I haven't been able to use any native android libraries with Unity 2019. Unity 2019 is always generating faulty builds with il2cpp and native libraries. And to be worse, it is not debuggable since every crash looks the same (some random signal and a fault).
     
  4. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    65
    Crash happens even if you change the app bundle version number on same unity version!! Thate makes creating updates not possible without that issue. (unity 2019.1.11)
     
  5. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    65
    This simple 4 steps solution fixes my problem.

    1. if someone interested there to create "res/xml/my_backup_rules.xml" file, your should make it in "Plugins/Android/"

    2. Content of custom back up rules file:
    Code (CSharp):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <full-backup-content>
    3.     <include domain="sharedpref" path="."/>
    4. </full-backup-content>
    3. Android manifest should be copied in "Plugins/Android"

    4. You should paste " android:fullBackupContent="@XML/my_backup_rules" " inside <application > tag
    Example of Android manifest (you can just use this manifest):
    Code (CSharp):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest
    3.     xmlns:android="http://schemas.android.com/apk/res/android"
    4.     package="com.unity3d.player"
    5.     xmlns:tools="http://schemas.android.com/tools"
    6.     android:installLocation="preferExternal">
    7.     <supports-screens
    8.         android:smallScreens="true"
    9.         android:normalScreens="true"
    10.         android:largeScreens="true"
    11.         android:xlargeScreens="true"
    12.         android:anyDensity="true"/>
    13.  
    14.     <application
    15.         android:theme="@style/UnityThemeSelector"
    16.         android:icon="@mipmap/app_icon"
    17.         android:label="@string/app_name"
    18.      
    19.         android:fullBackupContent="@xml/my_backup_rules"
    20.      
    21.         >
    22.      
    23.         <activity android:name="com.unity3d.player.UnityPlayerActivity"
    24.                   android:label="@string/app_name">
    25.             <intent-filter>
    26.                 <action android:name="android.intent.action.MAIN" />
    27.                 <category android:name="android.intent.category.LAUNCHER" />
    28.             </intent-filter>
    29.             <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    30.         </activity>
    31.  
    32.     </application>
    33. </manifest>
    34.  
    Those 4 steps fixes back up crush.

    In this solution only player preferences will be restored howewer you can include other files in custom back up rules.

    Even more simple solution:

    You can download archive with 2 files, extract it, copy files in respective folders and problem will go away. ( Copy AndroidManifest into "Plugins/Android/" and copy my_backup_rules into "Plugins/Android/res/xml/" )

    Tested in Unity 2019.1.11 and Unity 2019.2.0f I think it will work in any unity version.
     

    Attached Files:

    Aze_ likes this.
  6. xLeo

    xLeo

    Joined:
    Sep 21, 2010
    Posts:
    20
    This suggestion fixed the issue for us.
    Didn't even bother implementing the latest suggested fixes, what exactly will we miss if we just disable backup on the app?
     
  7. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    65
    For me:

    android:allowBackup="false" tools:replace="android:allowBackup"

    did not fixed crash problem.

    Knowing that i can assume that there can still be circumstances that can cause the crush even if you write the above sentence in manifest.

    I think last solution let you be more assured that crash will not happen for someone in future. Because it restors only you player prefs and they do not have version changes that can couse a crush.
     
  8. OlliIllustrator

    OlliIllustrator

    Joined:
    Nov 1, 2013
    Posts:
    49
    Thank you so much Gubbi for your advice. I had the same problem and fixed it by adding the modified android manifest.
     
  9. flashmandv

    flashmandv

    Joined:
    Mar 26, 2015
    Posts:
    129
    What is actually this backup for? Same issue here but I wonder if simply disabling backup would reset PlayerPrefs on app update (which is bad for us)
     
  10. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    65
  11. flashmandv

    flashmandv

    Joined:
    Mar 26, 2015
    Posts:
    129
    @TextusGames did disabling auto backup fixed the issue for you? I got report from player that our game still crashes on startup even with autobackup disabled. I wonder if implementing the custom backup xml would fix it.

    Right now the only fix that works is to uninstall and install the game for each player who gets the startup crash
     
  12. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    65
    android:allowBackup="false" tools:replace="android:allowBackup"
    did not fixed crash problem.

    But custom backup rule did!
     
  13. flashmandv

    flashmandv

    Joined:
    Mar 26, 2015
    Posts:
    129
    @TextusGames when I try to compile with your backup rules I get:
    upload_2019-8-13_16-43-12.png

    My AndroidManifest.xml and my_backup_rules.xml are both in Assets/Plugins/Android folder and I have android:fullBackupContent="@XML/my_backup_rules" in the main <application> tag

    Any ideas why it can't find it? Maybe the gradle template needs to be modified?

    UPDATE: I forgot to put my_backup_rules.xml in res\xml folder (inside Assets\Plugins\Android)
    So now it compiles ok. Thanks
     
    Last edited: Aug 13, 2019
  14. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    65
    You can download archive with 2 files, extract it, copy files in respective folders and problem will go away. ( Copy AndroidManifest into "Plugins/Android/" and copy my_backup_rules into "Plugins/Android/res/xml/" )
     
  15. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    65
    Enjoy)
     
  16. flashmandv

    flashmandv

    Joined:
    Mar 26, 2015
    Posts:
    129
    It seems both solutions (disabling auto backup or custom backup) does not work in my case.
    Today I got Xiomi Redmi 5 plus (32gb model) with which I am finally able to reproduce the crash. It runs Android 8.1 and here is the error shown in logcat when I try to launch the game:

    Code (CSharp):
    1.  
    2. 08-14 16:56:53.697 17389-17425/? E/CRASH: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0000006f48f9d800
    3. 08-14 16:56:53.698 17389-17425/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    4. 08-14 16:56:53.698 17389-17425/? E/CRASH: Build fingerprint: 'Xiaomi/rosy/rosy:8.1.0/OPM1.171019.026/V10.3.2.0.ODAMIXM:user/release-keys'
    5. 08-14 16:56:53.698 17389-17425/? E/CRASH: Revision: '0'
    6. 08-14 16:56:53.698 17389-17425/? E/CRASH: pid: 17389, tid: 17425, name: UnityMain  >>> air.bg.lan.Monopoli <<<
    7. 08-14 16:56:53.698 17389-17425/? E/CRASH:     x0   0000006f48759800  x1   0000000000000000  x2   0000006f48759800  x3   0000006f48759a50
    8. 08-14 16:56:53.698 17389-17425/? E/CRASH:     x4   0000000000000004  x5   0000006f4875a2b4  x6   00000000000023ec  x7   0000006f4875bbec
    9. 08-14 16:56:53.698 17389-17425/? E/CRASH:     x8   0000000000000001  x9   0000006f4cb67b88  x10  0000006f4875a270  x11  0000000000000ab4
    10. 08-14 16:56:53.698 17389-17425/? E/CRASH:     x12  0000000000000001  x13  0000006f4875a2b4  x14  0000000000000000  x15  0000000000844000
    11. 08-14 16:56:53.698 17389-17425/? E/CRASH:     x16  00003c9008759fea  x17  0000000000000000  x18  0000006f48f9d800  x19  0000006f47bfe180
    12. 08-14 16:56:53.698 17389-17425/? E/CRASH:     x20  0000006f489af780  x21  0000006f4bc0d7d4  x22  0000006f48759800  x23  0000000000000000
    13. 08-14 16:56:53.698 17389-17425/? E/CRASH:     x24  0000006f48759870  x25  0000006f4cb67b88  x26  0000000000000000  x27  0000000000000000
    14. 08-14 16:56:53.698 17389-17425/? E/CRASH:     x28  0000000000000130  x29  0000000000000078  x30  0000006f58317764
    15. 08-14 16:56:53.698 17389-17425/? E/CRASH:     sp   0000006f4cb67910  pc   0000006f583179cc  pstate 0000000060000000
    16. 08-14 16:56:53.698 17389-17425/? E/CRASH: backtrace:
    17. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #00  pc 00000000003ee96c  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    18. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #01  pc 00000000003dcf90  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    19. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #02  pc 0000000000002e8c  /system/bin/app_process64
    20. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #03  pc 0000000000000690  [vdso] (__kernel_rt_sigreturn)
    21. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #04  pc 0000000000a039cc  /system/vendor/lib64/libllvm-glnext.so
    22. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #05  pc 000000000093ca4c  /system/vendor/lib64/libllvm-glnext.so
    23. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #06  pc 0000000000a1a494  /system/vendor/lib64/libllvm-glnext.so (QGLCLoadProgramBinary(void*, void*, unsigned long, QGLC_LINKPROGRAM_RESULT*)+92)
    24. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #07  pc 00000000001a75f8  /system/vendor/lib64/egl/libGLESv2_adreno.so (EsxShaderCompiler::LoadProgramBinaryBlob(EsxContext*, EsxProgram*, void const*, unsigned long, EsxInfoLog*)+260)
    25. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #08  pc 000000000017a528  /system/vendor/lib64/egl/libGLESv2_adreno.so (EsxProgram::LoadProgramBinary(EsxContext*, unsigned int, void const*, int)+248)
    26. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #09  pc 00000000000ca178  /system/vendor/lib64/egl/libGLESv2_adreno.so (EsxContext::GlProgramBinary(unsigned int, unsigned int, void const*, int)+364)
    27. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #10  pc 000000000037b6c4  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    28. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #11  pc 000000000037a280  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    29. 08-14 16:56:53.704 17389-17425/? E/CRASH:     #12  pc 00000000003796c4  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    30. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #13  pc 0000000000378b38  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    31. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #14  pc 00000000002b8800  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    32. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #15  pc 00000000002735c4  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    33. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #16  pc 000000000023bdec  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    34. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #17  pc 000000000023b6f8  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    35. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #18  pc 000000000023b22c  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    36. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #19  pc 000000000023aedc  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    37. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #20  pc 000000000023d200  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    38. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #21  pc 000000000023f3e0  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    39. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #22  pc 000000000023f5ac  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    40. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #23  pc 0000000000316c28  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    41. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #24  pc 000000000031897c  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    42. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #25  pc 00000000003193f0  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    43. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #26  pc 00000000003197e4  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    44. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #27  pc 00000000001fe894  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    45. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #28  pc 00000000002356e0  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    46. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #29  pc 00000000001faba0  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    47. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #30  pc 00000000001faa04  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    48. 08-14 16:56:53.705 17389-17425/? E/CRASH:     #31  pc 00000000003d45ac  /data/app/air.bg.lan.Monopoli--0TNqFv8yfWiaj1935UMrw==/lib/arm64/libunity.so
    49. 08-14 16:56:53.706 17389-17425/? E/MessageQueue: IdleHandler threw exception
    50.                                                  java.lang.Error: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0000006f48f9d800
    51.                                                  Build fingerprint: 'Xiaomi/rosy/rosy:8.1.0/OPM1.171019.026/V10.3.2.0.ODAMIXM:user/release-keys'
    52.                                                  Revision: '0'
    53.                                                  pid: 17389, tid: 17425, name: UnityMain  >>> air.bg.lan.Monopoli <<<
    54.                                                      x0   0000006f48759800  x1   0000000000000000  x2   0000006f48759800  x3   0000006f48759a50
    55.                                                      x4   0000000000000004  x5   0000006f4875a2b4  x6   00000000000023ec  x7   0000006f4875bbec
    56.                                                      x8   0000000000000001  x9   0000006f4cb67b88  x10  0000006f4875a270  x11  0000000000000ab4
    57.                                                      x12  0000000000000001  x13  0000006f4875a2b4  x14  0000000000000000  x15  0000000000844000
    58.                                                      x16  00003c9008759fea  x17  0000000000000000  x18  0000006f48f9d800  x19  0000006f47bfe180
    59.                                                      x20  0000006f489af780  x21  0000006f4bc0d7d4  x22  0000006f48759800  x23  0000000000000000
    60.                                                      x24  0000006f48759870  x25  0000006f4cb67b88  x26  0000000000000000  x27  0000000000000000
    61.                                                      x28  0000000000000130  x29  0000000000000078  x30  0000006f58317764
    62.                                                      sp   0000006f4cb67910  pc   0000006f583179cc  pstate 0000000060000000
    63.                                                
    64.                                                      at libunity.003ee96c(Native Method)
    65.                                                      at libunity.003dcf90(Native Method)
    66.                                                      at app_process64.00002e8c(Native Method)
    67.                                                      at [vdso].__kernel_rt_sigreturn(__kernel_rt_sigreturn:0)
    68.                                                      at libllvm-glnext.00a039cc(Native Method)
    69.                                                      at libllvm-glnext.0093ca4c(Native Method)
    70.                                                      at libllvm-glnext.QGLCLoadProgramBinary(void*, void*, unsigned long, QGLC_LINKPROGRAM_RESULT*)(QGLCLoadProgramBinary:92)
    71.                                                      at libGLESv2_adreno.EsxShaderCompiler::LoadProgramBinaryBlob(EsxContext*, EsxProgram*, void const*, unsigned long, EsxInfoLog*)(LoadProgramBinaryBlob:260)
    72.                                                      at libGLESv2_adreno.EsxProgram::LoadProgramBinary(EsxContext*, unsigned int, void const*, int)(LoadProgramBinary:248)
    73.                                                      at libGLESv2_adreno.EsxContext::GlProgramBinary(unsigned int, unsigned int, void const*, int)(GlProgramBinary:364)
    74.                                                      at libunity.0037b6c4(Native Method)
    75.                                                      at libunity.0037a280(Native Method)
    76.                                                      at libunity.003796c4(Native Method)
    77.                                                      at libunity.00378b38(Native Method)
    78.                                                      at libunity.002b8800(Native Method)
    79.                                                      at libunity.002735c4(Native Method)
    80.                                                      at libunity.0023bdec(Native Method)
    81.                                                      at libunity.0023b6f8(Native Method)
    82.                                                      at libunity.0023b22c(Native Method)
    83.                                                      at libunity.0023aedc(Native Method)
    84.                                                      at libunity.0023d200(Native Method)
    85.                                                      at libunity.0023f3e0(Native Method)
    86.                                                      at libunity.0023f5ac(Native Method)
    87.                                                      at libunity.00316c28(Native Method)
    88.                                                      at libunity.0031897c(Native Method)
    89.                                                      at libunity.003193f0(Native Method)
    90.                                                      at libunity.003197e4(Native Method)
    91.                                                      at libunity.001fe894(Native Method)
    92.                                                      at libunity.002356e0(Native Method)
    93.                                                      at libunity.001faba0(Native Method)
    94.                                                      at libunity.001faa04(Native Method)
    95.                                                      at libunity.003d45ac(Native Method)
    96. 08-14 16:56:53.710 17389-17425/? E/CRASH: main thread is trapped; signum = 11
    97. 08-14 16:56:53.725 1589-1604/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x11 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
    98. 08-14 16:56:53.726 1589-1604/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x11 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
    99.  
    100.  
    If the game is updated manually (instead of using Google Play), this is the error log:

    Code (CSharp):
    1. 08-14 17:37:19.585 20297-20338/? D/Unity:  GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_texture_compression_astc GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_QCOM_alpha_test GL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL_OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellation_shader GL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_atomic GL_OES_sample_variables GL_EXT_texture_border_clamp GL_EXT_multisampled_render_to_texture GL_EXT_mul
    2. 08-14 17:37:19.585 20297-20338/? D/Unity: tisampled_render_to_texture2 GL_OES_shader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_draw_buffers_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_EXT_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_texture_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary GL_EXT_debug_label GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box GL_OES_standard_derivatives GL_OES_vertex_array_object GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_YUV_target GL_EXT_sRGB_write_control GL_EXT_texture_norm16 GL_EXT_discard_framebuffer GL_OES_surfaceless_context GL_OVR_multiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_EXT_debug_marker GL_OES_EGL_image_external_essl3 GL_OVR_multiview_multisampled_render_to_texture GL_EXT_buffer_storage GL_EXT_external_buffer GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance
    3. 08-14 17:37:19.585 20297-20338/? D/Unity:  GL_EXT_protected_textures GL_EXT_shader_non_constant_global_initializers GL_QCOM_texture_foveated GL_QCOM_shader_framebuffer_fetch_noncoherent GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_EGL_image_array GL_NV_shader_noperspective_interpolation
    4. 08-14 17:37:19.612 20297-20338/? A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x6f49d34800 in tid 20338 (UnityMain), pid 20297 (bg.lan.Monopoli)
    5. 08-14 17:37:19.684 20380-20380/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
    6. 08-14 17:37:19.684 943-943/? I//system/bin/tombstoned: received crash request for pid 20297
    7. 08-14 17:37:19.685 20380-20380/? I/crash_dump64: performing dump of process 20297 (target tid = 20338)
    8. 08-14 17:37:19.686 20380-20380/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    9. 08-14 17:37:19.686 20380-20380/? A/DEBUG: Build fingerprint: 'Xiaomi/rosy/rosy:8.1.0/OPM1.171019.026/V10.3.2.0.ODAMIXM:user/release-keys'
    10. 08-14 17:37:19.686 20380-20380/? A/DEBUG: Revision: '0'
    11. 08-14 17:37:19.686 20380-20380/? A/DEBUG: ABI: 'arm64'
    12. 08-14 17:37:19.686 20380-20380/? A/DEBUG: pid: 20297, tid: 20338, name: UnityMain  >>> air.bg.lan.Monopoli <<<
    13. 08-14 17:37:19.686 20380-20380/? A/DEBUG: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x6f49d34800
    14. 08-14 17:37:19.686 20380-20380/? A/DEBUG:     x0   0000006f494f0800  x1   0000000000000000  x2   0000006f494f0800  x3   0000006f494f0a50
    15. 08-14 17:37:19.686 20380-20380/? A/DEBUG:     x4   0000000000000004  x5   0000006f494f12b4  x6   0000000000002478  x7   0000006f494f2c78
    16. 08-14 17:37:19.686 20380-20380/? A/DEBUG:     x8   0000000000000001  x9   0000006f4db66b88  x10  0000006f494f1270  x11  0000000000000ab4
    17. 08-14 17:37:19.686 20380-20380/? A/DEBUG:     x12  0000000000000001  x13  0000006f494f12b4  x14  0000000000000000  x15  0000000000844000
    18. 08-14 17:37:19.686 20380-20380/? A/DEBUG:     x16  0000f979494f0805  x17  0000000000000000  x18  0000006f49d34800  x19  0000006f482e5400
    19. 08-14 17:37:19.686 20380-20380/? A/DEBUG:     x20  0000006f49fc6b80  x21  0000006f4ce0d7d4  x22  0000006f494f0800  x23  0000000000000000
    20. 08-14 17:37:19.686 20380-20380/? A/DEBUG:     x24  0000006f494f0870  x25  0000006f4db66b88  x26  0000000000000000  x27  0000000000000000
    21. 08-14 17:37:19.686 20380-20380/? A/DEBUG:     x28  0000000000000130  x29  0000000000000078  x30  0000006f58317764
    22. 08-14 17:37:19.686 20380-20380/? A/DEBUG:     sp   0000006f4db66910  pc   0000006f583179cc  pstate 0000000060000000
    23. 08-14 17:37:19.761 20380-20380/? A/DEBUG: backtrace:
    24. 08-14 17:37:19.761 20380-20380/? A/DEBUG:     #00 pc 0000000000a5e9cc  /system/vendor/lib64/libllvm-glnext.so (ShaderObjects::loadProgramBinary(CompilerContext*, void*, unsigned long, QGLC_LINKPROGRAM_RESULT*)+1420)
    25. 08-14 17:37:19.761 20380-20380/? A/DEBUG:     #01 pc 0000000000997a48  /system/vendor/lib64/libllvm-glnext.so (CompilerContext::loadProgramBinary(void*, unsigned long, QGLC_LINKPROGRAM_RESULT*)+156)
    26. 08-14 17:37:19.762 20380-20380/? A/DEBUG:     #02 pc 0000000000a75490  /system/vendor/lib64/libllvm-glnext.so (QGLCLoadProgramBinary(void*, void*, unsigned long, QGLC_LINKPROGRAM_RESULT*)+88)
    27. 08-14 17:37:19.762 20380-20380/? A/DEBUG:     #03 pc 00000000001c65f4  /system/vendor/lib64/egl/libGLESv2_adreno.so (EsxShaderCompiler::LoadProgramBinaryBlob(EsxContext*, EsxProgram*, void const*, unsigned long, EsxInfoLog*)+256)
    28. 08-14 17:37:20.511 2591-2692/? W/MiuiPerfServiceClient: interceptAndQueuing:1768|com.android.systemui|553|385|unknown|null|StatusBar|5369564942741|Slow main thread|4
    29. 08-14 17:37:20.633 831-896/? D/ThermalEngine: sensor_wait: xo_therm Wait done.
    30. 08-14 17:37:20.635 831-896/? D/ThermalEngine: sensor_monitor: xo_therm Reading 31000 .
    31. 08-14 17:37:20.635 831-896/? I/ThermalEngine: Sensor:xo_therm:31000 mC
    32. 08-14 17:37:20.635 831-896/? D/ThermalEngine: update_active_thresh: xo_therm Active(1), Hi(1) 39000, Lo(0) -2147483648, desc(0) Interval(1) 10000
    33. 08-14 17:37:20.635 831-896/? D/ThermalEngine: sensor_monitor: xo_therm Sensor wait.
    34. 08-14 17:37:20.635 831-896/? D/ThermalEngine: sensor_wait: xo_therm Wait start. 10000ms
    35. 08-14 17:37:21.102 20380-20380/? E/crash_dump64: cannot open libmiuindbg.so: No such file or directory
    36. 08-14 17:37:21.104 943-943/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_01
    37. 08-14 17:37:21.105 2822-3230/? D/PowerKeeper.Event: notifyAMCrash packageName: 0, pid:1589
    38. 08-14 17:37:21.107 1589-20383/? W/ActivityManager:   Force finishing activity air.bg.lan.Monopoli/com.unity3d.player.UnityPlayerActivity
    39. 08-14 17:37:21.113 1589-20383/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
    Also, clearing the app cache or uninstalling & installing again fixes the crash. But I can't ask all players who update to clear cache..they will simply uninstall the game once and for all
     
    Last edited: Aug 14, 2019
  17. vizgl

    vizgl

    Joined:
    Nov 4, 2014
    Posts:
    23
    Found same crash in the Firebase Crashlitycs. Happened only on Android 8.1:

    Caused by java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
    Build fingerprint: 'samsung/j3popelteuc/j3popelteatt:8.1.0/M1AJQ/J327AUCS4BSD1:user/release-keys'
    Revision: '7'
    pid: 5919, tid: 5967, name: UnityMain >>> com.mygamesisland.is.snake.mlg.edition <<<
    r0 d0d1a280 r1 00000000 r2 cf2fe890 r3 d0c9e880
    r4 0000182a r5 ced77b00 r6 d0a7f124 r7 00000004
    r8 cf273978 r9 cf2fe8de sl cf2fe890 fp d440cc38
    ip 00000000 sp d440cc18 lr f1fb9ea9 pc cfa5efb4 cpsr f123dd10

    at libil2cpp.00346fb4()
    at libc.je_arena_malloc_hard + 508(je_arena_malloc_hard:508)

    P.S. Unity 2019.1.14.f1, il2cpp
     
  18. Muckel

    Muckel

    Joined:
    Mar 26, 2009
    Posts:
    429
    hello,
    had also this problems....
    damn did i read first here... was looking over a day for a solution...
    now i've found a solution for my problem... maybe it helps others here too...

    i'm on MacBookPro 2017 ...
    1. delete your AndroidManifest in your Plugins/Android folder
    2. copy the AndroidManifest from
    /Applications/Unity/Hub/Editor/2019.2.0f1/PlaybackEngines/AndroidPlayer/Apk/AndroidManifest.xml
    into your Project Plugins/Android folder...
    3. add the no backup tag in the AndroidManifest from above
    4. copy the NDK folder from older Unity to the new and override...

    my NDK was not complete or broken ... also after several fresh install attempts ...
    S***ty Unity Hub is also spyware... and often makes problems...

    M.
     
  19. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    65
    that is bad to know..

    But after implementing above fixes there should be less possible crashes. So i think it was worth to be done.

    By the way here you can monitor bug status.
    https://issuetracker.unity3d.com/is...s-from-2019-dot-1-0a11-and-below-are-backuped
     
  20. flashmandv

    flashmandv

    Joined:
    Mar 26, 2015
    Posts:
    129
    Thanks @TextusGames
    I think I'll never update Unity again :D (Unless I'm forced to)
    It is kind of good that the problem happens on few device types and it has a fix if players clear cache or reinstall the game..but will lose some players for sure
     
  21. Igorexa

    Igorexa

    Joined:
    Sep 25, 2014
    Posts:
    22
    Thank you! It work.
     
    TextusGames likes this.
  22. OlliIllustrator

    OlliIllustrator

    Joined:
    Nov 1, 2013
    Posts:
    49
    Thank you soooo much! Your files have saved me. I had used the no backup in android manifest with success but after a few updated of my app the blackscreen was back-- now with your both files it works again on Oreo devices.
    You made my day:)
     
    TextusGames likes this.
  23. hafuumahmood

    hafuumahmood

    Joined:
    Jul 27, 2018
    Posts:
    1
    Hi there. I am using Unity 2018.4.4f1. I am building an augmented reality application that uses vuforia.
    The models are downloaded from asset bundles that are present on FTP server. Everything works fine in mono build.

    But if I switch to IL2CPP build, my rigged models are when loaded to android, the app freezes completely. Its happening with rigged models only. I am able to reproduce this in an empty project without vuforia as well. I have tried all the above solutions but its not working. Please if someone can help me would be great.