- Home /
 
Android 5 (lollipop) Crash Fatal signal 7 (SIGBUS)
Hi, I'm getting some unusual crashes on my game after updating my Nexus 5 to the latest android version 5.0 (Lollipop). The game works on older android versions with no crashes.
I got two different logcat outputs for a crash that occurs at the same "location" in the game.
First one, more frequent
 11-19 21:13:05.642: I/DEBUG(180): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
 11-19 21:13:05.642: I/DEBUG(180): Build fingerprint: 'google/hammerhead/hammerhead:5.0/LRX21O/1570415:user/release-keys'
 11-19 21:13:05.642: I/DEBUG(180): Revision: '11'
 11-19 21:13:05.643: I/DEBUG(180): ABI: 'arm'
 11-19 21:13:05.643: I/DEBUG(180): pid: 32738, tid: 302, name: UnityMain  >>> com.my.app <<<
 11-19 21:13:05.643: I/DEBUG(180): signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x9ebef8cb
 11-19 21:13:05.653: I/DEBUG(180):     r0 a42160d0  r1 00000008  r2 000001f4  r3 00000000
 11-19 21:13:05.653: I/DEBUG(180):     r4 a42160d0  r5 9ebef8cb  r6 a1e0b080  r7 a20e907c
 11-19 21:13:05.653: I/DEBUG(180):     r8 000001f4  r9 ac3b4400  sl 00000000  fp 70dd5188
 11-19 21:13:05.654: I/DEBUG(180):     ip b6eb49a8  sp a20e9030  lr b6e61f31  pc b6bef754  cpsr 00070030
 11-19 21:13:05.654: I/DEBUG(180): backtrace:
 11-19 21:13:05.654: I/DEBUG(180):     #00 pc 00022754  /system/lib/libbinder.so (android::Parcel::writeInt64(long long)+25)
 11-19 21:13:05.654: I/DEBUG(180):     #01 pc 0007ff2d  /system/lib/libandroid_runtime.so
 11-19 21:13:05.654: I/DEBUG(180):     #02 pc 000b1007  /data/dalvik-cache/arm/system@framework@boot.oat
 
               The second one:
 11-19 22:03:46.490: I/DEBUG(180): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
 11-19 22:03:46.490: I/DEBUG(180): Build fingerprint: 'google/hammerhead/hammerhead:5.0/LRX21O/1570415:user/release-keys'
 11-19 22:03:46.490: I/DEBUG(180): Revision: '11'
 11-19 22:03:46.491: I/DEBUG(180): ABI: 'arm'
 11-19 22:03:46.491: I/DEBUG(180): pid: 22634, tid: 22693, name: UnityMain  >>> com.my.app <<<
 11-19 22:03:46.491: I/DEBUG(180): signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0xbf89e9
 11-19 22:03:46.510: I/DEBUG(180):     r0 00a1f260  r1 00000000  r2 000000fd  r3 00000002
 11-19 22:03:46.510: I/DEBUG(180):     r4 00bf89c1  r5 97fef000  r6 97f00000  r7 00a1f261
 11-19 22:03:46.510: I/DEBUG(180):     r8 b5127000  r9 b6f586e4  sl 00000001  fp 00000008
 11-19 22:03:46.510: I/DEBUG(180):     ip 00000000  sp 9d530c60  lr b6f32511  pc b6f24f70  cpsr 20030030
 11-19 22:03:46.511: I/DEBUG(180): backtrace:
 11-19 22:03:46.511: I/DEBUG(180):     #00 pc 00040f70  /system/lib/libc.so (je_arena_dalloc_bin_locked+399)
 11-19 22:03:46.511: I/DEBUG(180):     #01 pc 0004e50d  /system/lib/libc.so (je_tcache_bin_flush_small+240)
 11-19 22:03:46.511: I/DEBUG(180):     #02 pc 00048d89  /system/lib/libc.so (ifree+448)
 11-19 22:03:46.511: I/DEBUG(180):     #03 pc 000127a7  /system/lib/libc.so (free+10)
 11-19 22:03:46.511: I/DEBUG(180):     #04 pc 00019855  /system/vendor/lib/libgsl.so
 11-19 22:03:46.511: I/DEBUG(180):     #05 pc 0001a06b  /system/vendor/lib/libgsl.so
 11-19 22:03:46.511: I/DEBUG(180):     #06 pc 0001cffd  /system/vendor/lib/libgsl.so (os_thread_launcher+20)
 11-19 22:03:46.512: I/DEBUG(180):     #07 pc 000162e3  /system/lib/libc.so (__pthread_start(void*)+30)
 11-19 22:03:46.512: I/DEBUG(180):     #08 pc 000142d3  /system/lib/libc.so (__start_thread+6)
 
              Hi, I exactly have the same. The "callstack" is different everytime and the issue isn't reproductible on previous Android versions. No matter I used ART or Dalvik engine on $$anonymous$$it $$anonymous$$at, the app was working fine.
Answer by markoslo · Jan 06, 2015 at 11:34 AM
Updating Unity did resolve the issue. My crashes are gone with the Unity 4.6.1p2 patch release.
Answer by Yury-Habets · Dec 15, 2014 at 08:13 AM
First of all, please make sure you're using latest Unity version available.
Then please submit a bug report.
Last version of unity 4.6.1/P2 don't solve problem for me. Compiled with 4.5.5 work perfectly.
Answer by AngelSilverwings · Jan 05, 2015 at 02:10 PM
same problem here
java.lang.Error: FATAL EXCEPTION [UnityMain] Unity version : 4.6.1f1 Device model : asus Nexus 7 Device fingerprint: google/razor/flo:5.0.1/LRX22C/1602158:user/release-keys
Caused by: java.lang.Error: signal 11 (SIGSEGV), code 21 (?), fault addr 0055005f Build fingerprint: 'google/razor/flo:5.0.1/LRX22C/1602158:user/release-keys' Revision: '0' pid: 18899, tid: 18923, name: UnityMain >>> com.katuy.kfrm_android <<< r0 90c03640 r1 00000000 r2 a3f4de00 r3 a3f4dd90 r4 a1064f90 r5 0000000b r6 00000002 r7 00000000 r8 0000000b r9 00000000 sl 00000000 fp 00000002 ip 9e9f41e4 sp 00000000 lr 00000000 pc 00000005 cpsr 73753a38
at Unknown.00000005(Unknown Source)
Answer by kookyoo · Jan 05, 2015 at 04:23 PM
Hi,
I solved the issue on my side by forcing "OpenGL ES 2.0" instead of "auto". Hope this could help you.
Please check the latest versions, some related fixes are included into 4.6.1f1.
If it still does not work - can you please submit a bug report?
Your answer