Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I got a crash when starting the game on Android (Samsung Galaxy Nexus, Android 4.2).


The log is showing this error while compiling shader:


I/ShaderManager(12328): Error while loading shader 'fluid':
I/ShaderManager(12328): Compile failed.
I/ShaderManager(12328): ERROR: 0:51: 'mediump' : syntax error;
I/ShaderManager(12328): ERROR: main() function is missing.
I/ShaderManager(12328): ERROR: 2 compilation errors. No code generated.


Other shaders seems to compile fine:



I/ShaderManager(12328): Shader 'light' loaded
I/ShaderManager(12328): Shader 'helmet-light' loaded


And then later there is a native crash:


F/libc (12328): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 12340 (Thread-548)
I/DEBUG ( 121): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 121): Build fingerprint: 'samsung/yakjukr/maguro:4.1.1/JRO03C/M420KRLI1:user/release-keys'
I/DEBUG ( 121): pid: 12328, tid: 12340, name: Thread-548 >>> com.apricotjam.spacepanic <<<
I/DEBUG ( 121): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
...
I/DEBUG ( 121): backtrace:
I/DEBUG ( 121): #00 pc 000180ae /system/lib/libc.so
I/DEBUG ( 121): #01 pc 0000dbd4 /system/lib/libc.so (abort+4)
I/DEBUG ( 121): #02 pc 000b0cc0 /system/vendor/lib/libusc.so
I/DEBUG ( 121):
I/DEBUG ( 121): stack:
I/DEBUG ( 121): 5d6b90e0 5876e008
I/DEBUG ( 121): 5d6b90e4 5cd4efb8 /system/vendor/lib/libusc.so
I/DEBUG ( 121): 5d6b90e8 5d6b90f4
I/DEBUG ( 121): 5d6b90ec 5ccab8ec /system/vendor/lib/libusc.so
I/DEBUG ( 121): 5d6b90f0 5876e008
I/DEBUG ( 121): 5d6b90f4 00000000
I/DEBUG ( 121): 5d6b90f8 40158754 /system/lib/libc.so
I/DEBUG ( 121): 5d6b90fc 4015dcf0
I/DEBUG ( 121): 5d6b9100 00000000
I/DEBUG ( 121): 5d6b9104 4012fa11 /system/lib/libc.so (_fwalk+32)
I/DEBUG ( 121): 5d6b9108 00000001
...
I/DEBUG ( 121): 5d6b9128 5876e008
I/DEBUG ( 121): 5d6b912c 5cd51eb8 /system/vendor/lib/libusc.so
I/DEBUG ( 121): 5d6b9130 00000000
I/DEBUG ( 121): 5d6b9134 00000000
I/DEBUG ( 121): 5d6b9138 00000000
I/DEBUG ( 121): 5d6b913c 00000000
I/DEBUG ( 121): 5d6b9140 5880e2c0
I/DEBUG ( 121): 5d6b9144 40121bd8 /system/lib/libc.so (__pthread_clone)
I/DEBUG ( 121): #01 5d6b9148 00000000
I/DEBUG ( 121): 5d6b914c 5cd4fcc4 /system/vendor/lib/libusc.so
I/DEBUG ( 121): #02 5d6b9150 5d6b98b0
I/DEBUG ( 121): 5d6b9154 5c0c44c4
...
I/DEBUG ( 121): 5d6b9180 5d6b98b0
I/DEBUG ( 121): 5d6b9184 5c00251c /system/vendor/lib/libglslcompiler.so
I/DEBUG ( 121): 5d6b9188 5d6b98b0
I/DEBUG ( 121): 5d6b918c 5880e348


I hope it helps!

Thanks for that, very helpful. We will look into it. Does it occur every time, occasionally, or just a one off?

Ah yes sorry it was not clear, it happens every time.

We found what might be causing the issue and I've updated the builds. If you could test it again we'd be very grateful!

There is not anymore shader error but unfortunately the crash remains:

01-23 15:02:56.637 6910 6927 I ShaderManager: Shader 'fluid' loaded
01-23 15:02:56.801 6910 6927 I ShaderManager: Shader 'light' loaded
01-23 15:02:56.910 6910 6927 I ShaderManager: Shader 'helmet-light' loaded
01-23 15:02:57.207 6910 6927 F libc : Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 6927 (Thread-188)
01-23 15:02:57.449 122 122 I DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-23 15:02:57.449 122 122 I DEBUG : Build fingerprint: 'samsung/yakjukr/maguro:4.1.1/JRO03C/M420KRLI1:user/release-keys'
01-23 15:02:57.449 122 122 I DEBUG : pid: 6910, tid: 6927, name: Thread-188 >>> com.apricotjam.spacepanic <<<
01-23 15:02:57.449 122 122 I DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
01-23 15:02:57.879 4980 6649 D dalvikvm: GC_EXPLICIT freed 158K, 18% free 20636K/24903K, paused 26ms+8ms, total 2796ms
01-23 15:02:57.887 4980 6649 I LocationManagerService: request network (pid 6157) 900000 900000
01-23 15:02:57.910 4980 5120 I ActivityManager: Displayed com.apricotjam.spacepanic/.AndroidLauncher: +14s394ms


and the callstack is pretty much similar, pointing to libglslcompiler.so