Crash on Android with signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 000000f0

Greetings :slight_smile:
I’m getting a signal 11 (SIGSEGV) crash on Android and I need help fixing it :frowning: Maybe it’s a bug in Unity? Following are the details:

I’m developing an isometric game that has only 1 scene and both 2D and 3D objects. The apk is 79MB and works great on Nexus 5X (Android 8). However, I tried running it on Samsung Galaxy Duos S7852 (Android 4.2.2) and it crashes.
On Nexus 5X, it’s white screen > black screen > game start.
On S7852, it’s white screen > black screen > crash.

I have been doing some digging and found this in the adb log: Crash log - Pastebin.com

I had my suspicions on the RAM of this device (768MB). So I created an emulator with same Android version, screen size and RAM size, and the game works on the emulator! So I’m guessing this is a hardware related issue?

I also tried creating another scene and loading the main scene async. In this case, the first scene loads and the app crashes some time later.

Any help is appreciated :slight_smile:

1 Like

Have you tried building an empty project and running it?
We experience the same problem and it only crashes on our project.
It launches one time in five, then works ok (relatively - stable 30 fps without any crashes for the whole game).
I stopped using this crashy 4.4.2 device a long time ago as it had 512 megs of ram and the former project wasn’t able to run on that. So I haven’t built any real projects on that device since ~5.2-ish version I think, but before that it worked fine on smaller Unity projects. New project however should run fine on it (which it does) as we use only 30 megs of ram tops, but doesn’t always launch.
I tried building empty projects and they don’t seem to crash at all, they launch 100% of the time. I haven’t been able to pin down the problem, but maybe it’s something with included .dlls or plugins, I don’t know.
It crashes on startup with this message, which is related to graphics drivers (Adreno GPU):
Error

I/DEBUG   (  258): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  258): Build fingerprint: 'ZTE/ZTE-V811/ZTE-V811:4.4.2/KOT49H/eng.root.20140911.150643:user/release-keys'
I/DEBUG   (  258): Revision: '0'
I/DEBUG   (  258): pid: 16190, tid: 16211, name: UnityGfxDeviceW  >>> org.nadezhdin.roadtrip <<<
I/DEBUG   (  258): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 62628000
I/DEBUG   (  258):     r0 63dfefb8  r1 62627dd0  r2 00001000  r3 00000000
I/DEBUG   (  258):     r4 619f0288  r5 00000001  r6 00001000  r7 621bb170
I/DEBUG   (  258):     r8 00008892  r9 62627390  sl 62628000  fp 00001000
I/DEBUG   (  258):     ip 0000000e  sp 62725580  lr 00000280  pc 400be1f4  cpsr 200e0030
I/DEBUG   (  258):     d0  0000000000000000  d1  0000000000000000
I/DEBUG   (  258):     d2  0000000000000000  d3  0000000000000000
I/DEBUG   (  258):     d4  0000000000000000  d5  0000000000000000
I/DEBUG   (  258):     d6  0000000000000000  d7  0000005300000000
I/DEBUG   (  258):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   (  258):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  258):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  258):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  258):     d16 5fa824f95fbeb620  d17 000000000000001b
I/DEBUG   (  258):     d18 0004000000000000  d19 0000000000008a0c
I/DEBUG   (  258):     d20 0004000062728020  d21 0000000300040000
I/DEBUG   (  258):     d22 0000000000000000  d23 0000009300000000
I/DEBUG   (  258):     d24 000000003f800000  d25 0000000000000000
I/DEBUG   (  258):     d26 3f80000000000000  d27 0000000000000000
I/DEBUG   (  258):     d28 0000000000000000  d29 000000003f800000
I/DEBUG   (  258):     d30 0000000000000000  d31 3f80000000000000
I/DEBUG   (  258):     scr 60000012
I/DEBUG   (  258):
I/DEBUG   (  258): backtrace:
I/DEBUG   (  258):     #00  pc 000221f4  /system/lib/libc.so (__memcpy_base+219)
I/DEBUG   (  258):     #01  pc 000690c7  /system/vendor/lib/egl/libGLESv2_adreno.so (core_glBufferData+494)
I/DEBUG   (  258):     #02  pc 00041aa9  /system/vendor/lib/egl/libGLESv2_adreno.so (glBufferData+28)
I/DEBUG   (  258):     #03  pc 005d7348  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #04  pc 005ad1f4  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #05  pc 005ad11c  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #06  pc 005bcc28  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #07  pc 005be0bc  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #08  pc 002b2c3c  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #09  pc 002b1d78  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #10  pc 004912fc  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #11  pc 005a41c8  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #12  pc 005a790c  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #13  pc 005a0d80  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #14  pc 003fcf24  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):     #15  pc 0000d218  /system/lib/libc.so (__thread_entry+72)
I/DEBUG   (  258):     #16  pc 0000d3b0  /system/lib/libc.so (pthread_create+240)
I/DEBUG   (  258):
I/DEBUG   (  258): stack:
I/DEBUG   (  258):          62725540  611e1c00
I/DEBUG   (  258):          62725544  619f0288
I/DEBUG   (  258):          62725548  00001000
I/DEBUG   (  258):          6272554c  00000001
I/DEBUG   (  258):          62725550  621bda58
I/DEBUG   (  258):          62725554  5e3c6e08  /system/vendor/lib/egl/libGLESv2_adreno.so
I/DEBUG   (  258):          62725558  00000003
I/DEBUG   (  258):          6272555c  00000001
I/DEBUG   (  258):          62725560  00001000
I/DEBUG   (  258):          62725564  5e34f721  /system/vendor/lib/egl/libGLESv2_adreno.so (rb_vbo_alloc+108)
I/DEBUG   (  258):          62725568  000c0000
I/DEBUG   (  258):          6272556c  00000001
I/DEBUG   (  258):          62725570  00001000
I/DEBUG   (  258):          62725574  00000000
I/DEBUG   (  258):          62725578  df0027ad
I/DEBUG   (  258):          6272557c  00000000
I/DEBUG   (  258):     #00  62725580  62627390
I/DEBUG   (  258):          62725584  00000001
I/DEBUG   (  258):          62725588  63dfe5b8
I/DEBUG   (  258):          6272558c  5e3310cb  /system/vendor/lib/egl/libGLESv2_adreno.so (core_glBufferData+498)
I/DEBUG   (  258):     #01  62725590  5e33094d  /system/vendor/lib/egl/libGLESv2_adreno.so (InitBufferObject)
I/DEBUG   (  258):          62725594  5e330957  /system/vendor/lib/egl/libGLESv2_adreno.so (InitBufferObject+10)
I/DEBUG   (  258):          62725598  648e4820
I/DEBUG   (  258):          6272559c  00000000
I/DEBUG   (  258):          627255a0  621bb170
I/DEBUG   (  258):          627255a4  00008892
I/DEBUG   (  258):          627255a8  648e4820
I/DEBUG   (  258):          627255ac  5e285f0b  /system/vendor/lib/libgsl.so (os_mutex_unlock+10)
I/DEBUG   (  258):          627255b0  5e318245  /system/vendor/lib/egl/libGLESv2_adreno.so (gl2_real_mutex_unlock)
I/DEBUG   (  258):          627255b4  5e3160ff  /system/vendor/lib/egl/libGLESv2_adreno.so
I/DEBUG   (  258):          627255b8  621bb170
I/DEBUG   (  258):          627255bc  5e330dc7  /system/vendor/lib/egl/libGLESv2_adreno.so (core_glBindBuffer+334)
I/DEBUG   (  258):          627255c0  5e330ed9  /system/vendor/lib/egl/libGLESv2_adreno.so (core_glBufferData)
I/DEBUG   (  258):          627255c4  62627390
I/DEBUG   (  258):          627255c8  00001000
I/DEBUG   (  258):          627255cc  00008892
I/DEBUG   (  258):          ........  ........
I/DEBUG   (  258):     #02  627255e0  000088e8
I/DEBUG   (  258):          627255e4  00001000
I/DEBUG   (  258):          627255e8  62627390
I/DEBUG   (  258):          627255ec  00008892
I/DEBUG   (  258):          627255f0  00001000
I/DEBUG   (  258):          627255f4  619e46b0
I/DEBUG   (  258):          627255f8  403b9100  /system/lib/libGLESv2.so (glBufferData)
I/DEBUG   (  258):          627255fc  5f01034c  /data/app-lib/org.nadezhdin.roadtrip-1/libunity.so
I/DEBUG   (  258):
I/DEBUG   (  258): memory near r0:
I/DEBUG   (  258):     63dfef98 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     63dfefa8 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     63dfefb8 011e3c08 000002f8 00000034 00000515
I/DEBUG   (  258):     63dfefc8 00000000 011e3f00 000001e8 00000036
I/DEBUG   (  258):     63dfefd8 00000516 00000000 011e40e8 00000104
I/DEBUG   (  258):     63dfefe8 00000045 00000517 00000000 011e41f0
I/DEBUG   (  258):     63dfeff8 00000198 0000005d 00000518 00000000
I/DEBUG   (  258):     63dff008 011e4388 00000030 0000003c 00000519
I/DEBUG   (  258):     63dff018 00000000 011e43b8 00000024 00000032
I/DEBUG   (  258):     63dff028 0000051a 00000000 011e43e0 00000250
I/DEBUG   (  258):     63dff038 00000036 0000051b 00000000 011e4630
I/DEBUG   (  258):     63dff048 000000ec 0000002f 0000051c 00000000
I/DEBUG   (  258):     63dff058 011e4720 0000002c 0000005e 0000051d
I/DEBUG   (  258):     63dff068 00000000 011e4750 000000ec 0000002f
I/DEBUG   (  258):     63dff078 0000051e 00000000 011e4840 000000ec
I/DEBUG   (  258):     63dff088 0000002f 0000051f 00000000 011e4930
I/DEBUG   (  258):
I/DEBUG   (  258): memory near r1:
I/DEBUG   (  258):     62627db0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627dc0 00000000 00000000 00000000 00000053
I/DEBUG   (  258):     62627dd0 aaaaaaaa aaaaaaaa 0000000c 00000069
I/DEBUG   (  258):     62627de0 400ea2c8 00000000 00000101 fffffffe
I/DEBUG   (  258):     62627df0 00000000 ffffffff 00000000 63df55d0
I/DEBUG   (  258):     62627e00 00000040 00000014 0000000c 00000020
I/DEBUG   (  258):     62627e10 00000000 00000000 00000000 0000005b
I/DEBUG   (  258):     62627e20 aaaaaaaa aaaaaaaa 0000000c 00000079
I/DEBUG   (  258):     62627e30 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627e40 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627e50 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627e60 62627e58 62627e58 00000000 63669880
I/DEBUG   (  258):     62627e70 0000000e 0000001b 64498c11 000000f7
I/DEBUG   (  258):     62627e80 64081638 63ddba30 00000018 0000005b
I/DEBUG   (  258):     62627e90 aaaaaaaa aaaaaaaa 0000000c 00000069
I/DEBUG   (  258):     62627ea0 5fbeb620 5fa824f9 0000002d 00000000
I/DEBUG   (  258):
I/DEBUG   (  258): memory near r2:
I/DEBUG   (  258):     00000fe0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000ff0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001000 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001010 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001020 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001030 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001040 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001050 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001060 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001070 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001080 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001090 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):
I/DEBUG   (  258): memory near r4:
I/DEBUG   (  258):     619f0268 00001000 00000000 00000000 00000000
I/DEBUG   (  258):     619f0278 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     619f0288 00000009 00001000 000c0000 65421000
I/DEBUG   (  258):     619f0298 65421000 00001000 00000000 100c0300
I/DEBUG   (  258):     619f02a8 00000096 00002000 00000000 00000000
I/DEBUG   (  258):     619f02b8 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     619f02c8 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     619f02d8 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     619f02e8 00001000 00000000 00000000 00000000
I/DEBUG   (  258):     619f02f8 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     619f0308 619f0388 00000000 00000000 00000000
I/DEBUG   (  258):     619f0318 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     619f0328 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     619f0338 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     619f0348 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     619f0358 00000000 00000000 00000000 00000000
I/DEBUG   (  258):
I/DEBUG   (  258): memory near r6:
I/DEBUG   (  258):     00000fe0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000ff0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001000 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001010 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001020 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001030 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001040 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001050 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001060 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001070 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001080 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001090 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):
I/DEBUG   (  258): memory near r7:
I/DEBUG   (  258):     621bb150 00000058 0000001b 576edbf0 0000005a
I/DEBUG   (  258):     621bb160 00000000 00000000 00000001 000028eb
I/DEBUG   (  258):     621bb170 620ab008 61182948 621bda58 01010101
I/DEBUG   (  258):     621bb180 00000000 000000ff 000000ff 3e0c8c8d
I/DEBUG   (  258):     621bb190 3df8f8f9 3e008081 3f800000 3f800000
I/DEBUG   (  258):     621bb1a0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     621bb1b0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     621bb1c0 00000320 000001e0 00000207 000000ff
I/DEBUG   (  258):     621bb1d0 00000000 00001e00 00001e00 00001e00
I/DEBUG   (  258):     621bb1e0 00000207 000000ff 00000000 00001e00
I/DEBUG   (  258):     621bb1f0 00001e00 00001e00 00000207 00000302
I/DEBUG   (  258):     621bb200 00000001 00000303 00000001 00008006
I/DEBUG   (  258):     621bb210 00008006 00000000 00000000 00000000
I/DEBUG   (  258):     621bb220 00000000 00001503 00000207 00000000
I/DEBUG   (  258):     621bb230 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     621bb240 00000000 00000000 00000000 00000000
I/DEBUG   (  258):
I/DEBUG   (  258): memory near r8:
I/DEBUG   (  258):     00008870 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00008880 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00008890 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000088a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000088b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000088c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000088d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000088e0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000088f0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00008900 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00008910 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00008920 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00008930 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00008940 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00008950 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00008960 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):
I/DEBUG   (  258): memory near r9:
I/DEBUG   (  258):     62627370 0001ffff 00000000 00000000 0000045b
I/DEBUG   (  258):     62627380 aaaaaaaa aaaaaaaa 0000000c 00000881
I/DEBUG   (  258):     62627390 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626273a0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626273b0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626273c0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626273d0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626273e0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626273f0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627400 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627410 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627420 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627430 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627440 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627450 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62627460 00000000 00000000 00000000 00000000
I/DEBUG   (  258):
I/DEBUG   (  258): memory near sl:
I/DEBUG   (  258):     62627fe0 62626000 00002000 6243cfe0 00000001
I/DEBUG   (  258):     62627ff0 00000000 00000007 00000007 00000007
I/DEBUG   (  258):     62628000 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62628010 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62628020 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62628030 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62628040 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62628050 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62628060 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62628070 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62628080 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     62628090 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626280a0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626280b0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626280c0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):     626280d0 00000000 00000000 00000000 00000000
I/DEBUG   (  258):
I/DEBUG   (  258): memory near fp:
I/DEBUG   (  258):     00000fe0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000ff0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001000 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001010 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001020 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001030 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001040 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001050 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001060 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001070 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001080 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00001090 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000010d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):
I/DEBUG   (  258): memory near sp:
I/DEBUG   (  258):     62725560 00001000 5e34f721 000c0000 00000001
I/DEBUG   (  258):     62725570 00001000 00000000 df0027ad 00000000
I/DEBUG   (  258):     62725580 62627390 00000001 63dfe5b8 5e3310cb
I/DEBUG   (  258):     62725590 5e33094d 5e330957 648e4820 00000000
I/DEBUG   (  258):     627255a0 621bb170 00008892 648e4820 5e285f0b
I/DEBUG   (  258):     627255b0 5e318245 5e3160ff 621bb170 5e330dc7
I/DEBUG   (  258):     627255c0 5e330ed9 62627390 00001000 00008892
I/DEBUG   (  258):     627255d0 62627390 000088e8 5fd585b8 5e309aab
I/DEBUG   (  258):     627255e0 000088e8 00001000 62627390 00008892
I/DEBUG   (  258):     627255f0 00001000 619e46b0 403b9100 5f01034c
I/DEBUG   (  258):     62725600 00000000 00000004 62627800 00000002
I/DEBUG   (  258):     62725610 62627390 00000000 619e46b0 00000000
I/DEBUG   (  258):     62725620 00001000 5efe61f8 000088e8 00000002
I/DEBUG   (  258):     62725630 00000002 00000001 00000002 619e4ee8
I/DEBUG   (  258):     62725640 00001000 62627360 62627360 5fd585b8
I/DEBUG   (  258):     62725650 00000004 5efe6120 00000000 619e3030
I/DEBUG   (  258):
I/DEBUG   (  258): code around pc:
I/DEBUG   (  258):     400be1d4 e018d1f0 7e20f44f 7a20f501 0a3ff02a
I/DEBUG   (  258):     400be1e4 0c0af1ac 3c40f85a 028df921 428df921
I/DEBUG   (  258):     400be1f4 3000f8da 0c01f1bc 028df900 428df900
I/DEBUG   (  258):     400be204 0a40f10a ea4fd1f0 e8bd1c9e f9610600
I/DEBUG   (  258):     400be214 f961028d f1bc428d f9400c01 f940028d
I/DEBUG   (  258):     400be224 d1f4428d 023ff012 06d3d025 f921d303
I/DEBUG   (  258):     400be234 f900028d d506028d 0a8df961 0a8df940
I/DEBUG   (  258):     400be244 020ff012 0753d017 f851bf21 f8403b04
I/DEBUG   (  258):     400be254 f8513b04 f8403b04 bf443b04 3b04f851
I/DEBUG   (  258):     400be264 3b04f840 bf2407d2 3b02f831 3b02f820
I/DEBUG   (  258):     400be274 780bbf44 e8bd7003 47704001 4803b500
I/DEBUG   (  258):     400be284 44784901 fc68f7f0 000138e4 00027df6
I/DEBUG   (  258):     400be294 e1520003 9a000008 e52de004 e59f000c
I/DEBUG   (  258):     400be2a4 e59f1004 e080000f faffc22a 000138fd
I/DEBUG   (  258):     400be2b4 00027de7 e1a02001 e3a01000 e92d0001
I/DEBUG   (  258):     400be2c4 eee01b10 e2522020 3a000003 f2202150
I/DEBUG   (  258):
I/DEBUG   (  258): code around lr:
I/DEBUG   (  258):     00000260 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000270 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000280 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000290 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000002a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000002b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000002c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000002d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000002e0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     000002f0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000300 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000310 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000320 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000330 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000340 ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (  258):     00000350 ffffffff ffffffff ffffffff ffffffff

@Kumo-Kairo
Thanks for replying!
Empty project works fine. Even if I take everything out of my game and leave the floor and 2 buildings, it works fine.

Maybe it’s something with shader variants, I couldn’t see any specific info on that in these forums, no one has ever solved this problem really (or they keep quiet about it).
I’ll try to break down the game and will try to pin down the problem. If you can, @ercion , you should do the same thing. There’s have to be an answer.

Edit - I tried building a debug version if APK (development build) to get a more detailed stacktrace and it doesn’t crash at all, it launches correctly.

2 Likes

Maybe. I am using a shader that I copied from the internet. I also did some digging on SIGSEGV. Turns out it’s the good ol’ segmentation fault (please correct me if I’m wrong). That’s the most cruel and difficult-to-find error I’ve experienced in all my years of programming. It also makes me suspect something wrong in the engine core of Unity.

Good idea. Will do as soon as possible.

1 Like

It’s definitely has to do something with Unity, but there has to be a way around it - somehow it compiles small projects that work fine.

It may be very tricky to pin down, I’ve seen a few cases from people that use LibGDX (another game programming engine), so it’s not just Unity that has something wrong.

Now I have another issue on another phone. This time on a Xiaomi 4X with 2 gigs of ram. It also crashes after the “Made with Unity” splash (the previous crash on another phone happened before that).
The error seems relatively similar, but not exactly the same:

10-01 21:01:01.023 29937 29977 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 29977 (UnityMain)
10-01 21:01:01.097   677   677 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-01 21:01:01.099   677   677 F DEBUG   : Build fingerprint: 'Xiaomi/santoni/santoni:6.0.1/MMB29M/V8.5.2.0.MAMMIED:user/release-keys'
10-01 21:01:01.099   677   677 F DEBUG   : Revision: '0'
10-01 21:01:01.099   677   677 F DEBUG   : ABI: 'arm'
10-01 21:01:01.099   677   677 F DEBUG   : pid: 29937, tid: 29977, name: UnityMain  >>> org.nadezhdin.roadtrip <<<
10-01 21:01:01.099   677   677 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
10-01 21:01:01.147   677   677 F DEBUG   :     r0 d81bded8  r1 d820e940  r2 aca0c070  r3 ea1c9c10
10-01 21:01:01.148   677   677 F DEBUG   :     r4 d81bded8  r5 ea1c9ce0  r6 d9f02dd0  r7 d820e940
10-01 21:01:01.148   677   677 F DEBUG   :     r8 acc08b4c  r9 d81e3860  sl ffffe144  fp f396ce80
10-01 21:01:01.148   677   677 F DEBUG   :     ip f396ce30  sp f396ce80  lr ea1b9ae0  pc 00000000  cpsr 200b0010
10-01 21:01:01.149   677   677 F DEBUG   :
10-01 21:01:01.149   677   677 F DEBUG   : backtrace:
10-01 21:01:01.150   677   677 F DEBUG   :     #00 pc 00000000  <unknown>
10-01 21:01:01.150   677   677 F DEBUG   :     #01 pc 0000fadc  <unknown>
10-01 21:01:01.658   690   771 D ThermalEngine: sensor_wait: case_therm Wait done.
10-01 21:01:01.660   690   771 D ThermalEngine: sensor_monitor: case_therm Reading 36000 .
10-01 21:01:01.660   690   771 I ThermalEngine: Sensor:case_therm:36000 mC
10-01 21:01:01.660   690   771 D ThermalEngine: update_active_thresh: case_therm Active(1), Hi(1) 42000, Lo(0) -2147483648, Interval(1) 1000
10-01 21:01:01.660   690   771 D ThermalEngine: sensor_monitor: case_therm Sensor wait.
10-01 21:01:01.660   690   771 D ThermalEngine: sensor_wait: case_therm Wait start. 1000ms
10-01 21:01:02.152   681  1617 I AudioFlinger: BUFFER TIMEOUT: remove(4098) from active list on thread 0xf00ec008
10-01 21:01:02.182   681  1610 V AudioPolicyManagerCustom: getNewOutputDevice() selected device 0
10-01 21:01:02.660   690   771 D ThermalEngine: sensor_wait: case_therm Wait done.
10-01 21:01:02.662   690   771 D ThermalEngine: sensor_monitor: case_therm Reading 36000 .
10-01 21:01:02.662   690   771 I ThermalEngine: Sensor:case_therm:36000 mC
10-01 21:01:02.662   690   771 D ThermalEngine: update_active_thresh: case_therm Active(1), Hi(1) 42000, Lo(0) -2147483648, Interval(1) 1000
10-01 21:01:02.662   690   771 D ThermalEngine: sensor_monitor: case_therm Sensor wait.
10-01 21:01:02.662   690   771 D ThermalEngine: sensor_wait: case_therm Wait start. 1000ms
10-01 21:01:03.015  1761  1761 D wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL'
10-01 21:01:03.030  1761  1761 D wpa_supplicant: CTRL-DEBUG: global_ctrl_sock-sendto: sock=11 sndbuf=229376 outq=0 send_len=48
10-01 21:01:03.060  1812  1812 D StatusBar.NetworkController: onSignalStrengthsChanged received on slotId :0signalStrength=SignalStrength: 13 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 2147483647 gsm|lte level=5 cdmdlevel=0 evdolevel=0
10-01 21:01:03.070  1812  1812 D StatusBar.NetworkController: slot=-10;action=android.net.wifi.RSSI_CHANGED
10-01 21:01:03.072  1812  1812 D StatusBar.NetworkController: updateNetworkName chosenNetType=2;mNetworkName[0]=Rostelecom
10-01 21:01:03.079  1419  1715 D ConnectivityService: notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 128]
10-01 21:01:03.178  1419  1758 E NativeCrashListener: Exception dealing with report
10-01 21:01:03.178  1419  1758 E NativeCrashListener: android.system.ErrnoException: read failed: EAGAIN (Try again)
10-01 21:01:03.178  1419  1758 E NativeCrashListener:   at libcore.io.Posix.readBytes(Native Method)
10-01 21:01:03.178  1419  1758 E NativeCrashListener:   at libcore.io.Posix.read(Posix.java:169)
10-01 21:01:03.178  1419  1758 E NativeCrashListener:   at libcore.io.BlockGuardOs.read(BlockGuardOs.java:230)
10-01 21:01:03.178  1419  1758 E NativeCrashListener:   at android.system.Os.read(Os.java:367)
10-01 21:01:03.178  1419  1758 E NativeCrashListener:   at com.android.server.am.NativeCrashListener.consumeNativeCrashData(NativeCrashListener.java:240)
10-01 21:01:03.178  1419  1758 E NativeCrashListener:   at com.android.server.am.NativeCrashListener.run(NativeCrashListener.java:138)
10-01 21:01:03.663   690   771 D ThermalEngine: sensor_wait: case_therm Wait done.
10-01 21:01:03.664   690   771 D ThermalEngine: sensor_monitor: case_therm Reading 36000 .
10-01 21:01:03.664   690   771 I ThermalEngine: Sensor:case_therm:36000 mC
10-01 21:01:03.664   690   771 D ThermalEngine: update_active_thresh: case_therm Active(1), Hi(1) 42000, Lo(0) -2147483648, Interval(1) 1000
10-01 21:01:03.664   690   771 D ThermalEngine: sensor_monitor: case_therm Sensor wait.
10-01 21:01:03.664   690   771 D ThermalEngine: sensor_wait: case_therm Wait start. 1000ms

Hi! Have you reported this via the bug reporter? We’d really like a bug report track these crashes :slight_smile:

@NinjaCat No I haven’t reported yet. I didn’t wanna bother them until I was sure that it was an actual bug.

I’m not sure how this bug can be reproduced. It requires a certain phone model, at least the one that only happens on ZTE V811. In my experience, such reported bugs get rejected right away as “not reproduced”. I’ve had terrible past experience with bug reporting where unity editor literally made me to file a bug report, which I did, spending a whole lot of time uploading the project, filling the description window etc. Only to then receive a semi-rage response from support team like “Don’t file these useless reports, make sure the bug can be reproduced before sending it next time, you dumbo”, so I try to stay away from bug reporting unless I have a crystal-clear way to reproduce a problem. With this little bug, however, it’s not achievable. @NinjaCat I’ll find all the links to forum threads and unity answers regarding this problem, it dates back to 2014 and there is no clear way to solve it yet.

Sorry to hear that! We certainly don’t consider any bug report useless and we’d really like to help you solve these crashes. If it happens every few runs, that should be perfectly fine for us to reproduce - we just need a bug report with a project and a small description of the problem.

Bug reporting and handling is tricky business, sometimes it’s hard for us to recreate the issue or maybe we don’t have the correct setup, but in those situations we always try and get more information from you guys. Just don’t be afraid to reply to our emails or just send any new information you run into - that helps us a lot! :slight_smile:

1 Like

@ercion : Do you have any proguard setup defined?

@Voxel-Busters no.

So I decided to take a break of constant debugging an digging into a problem and did a clean Windows reinstall (I’ve wanted to do that a long time ago). This resulted in a need of Android SDK re-installation (no way dude). The new Android SDK version comes with a console-only based SDK Manager (without that fancy GUI app that enables you to checkbox things you need and install them), so I decided to install an older version, the one with the 23 as a build target (http://dl-ssl.google.com/android/repository/tools_r23-windows.zip)
And you know what. It started building ok and running ok without any crashes or issues whatsoever for a few days already.
I think this is why this problem is not fixed yet - the root of it is somewhere inside Android SDK or the system itself (maybe some cached registry values, who knows what).

One thing I don’t quite understand though is that if the system or Android SDK is guilty of this, why Unity Cloud builds also crash. They have a clean system and a clean SDK install and can’t really do something wrong.

4 Likes

@Kumo-Kairo Good to hear. So you’re saying that if I change the Target API Level to 23, it will work fine? Or are you talking about the build-tools version?

I can’t tell for sure what have helped. It’s not possible to do such things one step at a time. It may be Android SDK version and may be some internal system cache. It even can be something with Unity project cache too (I’ve deleted the Library folder prior to running a project on a “new” machine).

Questions remain - if it’s something with the Android SDK then why emplty or simple projects work ok but not the big one.

You can try reinstalling the Android SDK as well as deleting the Library folder inside Unity project (it will nullify all the imported assets cache and all built assemblies)

Will do. Can you please tell me the contents of your C:\Users<username>\AppData\Local\Android\sdk\build-tools and C:\Users<username>\AppData\Local\Android\sdk\platforms folders?

platforms: android-23 (only SDK platform installed, no system images etc.)
build-tools: 26.0.2

this is what it looks like inside the SDK manager

@ercion dude I’m back with you. It started crashing again.

It even crashes on a PC build with the same error.
PC build error

Write to location 0e8fef68 caused an access violation.

Context:
RDI: 0x0f95fe00 RSI: 0x0f8c6780 RAX: 0x0f0ef898
RBX: 0x0f8c64f8 RCX: 0x0f92f400 RDX: 0x0f8c6780
RIP: 0x0e8fef68 RBP: 0x001eeb20 SegCs: 0x00000033
EFlags: 0x00010206 RSP: 0x001eea98 SegSs: 0x0000002b
R8: 0x0225fe80 R9: 0xec6f7580 R10: 0x0f3a9d20
R11: 0x06369ee0 R12: 0x000000e7 R13: 0x0fa19000
R14: 0x0f92f400 R15: 0x0f8c64f8

Bytes at CS:EIP:
86 18 00 00 d0 03 00 06 60 e5 88 0e 00 00 00 00

– UPDATE

I’ve tried building it on Unity Cloud Build and it doesn’t crash after splash screen. This persistent crash really has something to do with system cache after all. It doesn’t solve the problem of occasional crashes on a ZTE phone though.

Well I tried to target platform 23 but it wouldn’t let me because of some God forsaken VR library that apparently exists in my project for no reason. Changing build tools to 26.0.2 and deleting Library folder didn’t work either. Which version of Unity are you using?

Dang. I had a ray of hope for once. Good thing I have some time today. Gonna try to pin point the error.

Great then I’ll try that for a release build for now. Meanwhile, I’ll keep investigating.

Which system? The one that’s building the app or the one that’s running it?

I have more logs. They might help. Notice the glsl link error when the app launches.