Hi i have a strange problem that my game will sometimes crash on the first run after install and then it works fine. I tried to look into logs but the only thing that looks like something that might be the cause is this line : 04-21 21:04:45.996 I/[MALI]Gralloc: usage: 0xf02, format: 1 stride: 1024 vertical_stride: 600 size: 2457600.
here is a fragment of log file just before the app stops working:
04-21 21:04:45.963 D/AudioMTKStreamOut( 143): AudioMTKStreamOut::write (-)
04-21 21:04:45.963 D/AudioFlinger_Threads( 143): set track buffer mainburrer for effect (sink or effect buffer) 0xb56e3000
04-21 21:04:45.963 V/AudioTrackShared( 143): mAvailToClient=1024 stepCount=1024 minimum=2048
04-21 21:04:45.963 V/AudioTrack(21016): obtainBuffer(2048) returned 2048 = 2048 + 0 err 0
04-21 21:04:45.966 D/AudioLoopbackController( 143): +IsAPBTLoopbackWithCodec(), mBtLoopbackWithCodec = 0
04-21 21:04:45.975 D/hwcomposer( 132): [HWC] hdmi connect=0, isDecoupleOvl=0
04-21 21:04:45.975 D/hwcomposer( 132): [HWC] prepare_primary==
04-21 21:04:45.975 E/hwcomposer( 132): [HWC] ION is invalid (handle=0xb6253580, num=-1, idx=-1) !!
04-21 21:04:45.975 W/hwcomposer( 132): [HWC] Failed to get ION fd !! (handle=0xb6253580) !!
04-21 21:04:45.988 D/hwcomposer( 132): [HWC] hdmi connect=0, isDecoupleOvl=0
04-21 21:04:45.988 D/hwcomposer( 132): [HWC] prepare_primary==
04-21 21:04:45.988 E/hwcomposer( 132): [HWC] ION is invalid (handle=0xb2910040, num=-1, idx=-1) !!
04-21 21:04:45.988 W/hwcomposer( 132): [HWC] Failed to get ION fd !! (handle=0xb2910040) !!
04-21 21:04:45.989 W/MALI (21016): __egl_set_error:110: [WARNING]Mali EGL errorcode: 3004
04-21 21:04:45.995 I/BufferQueueProducer( 132): SurfaceView connect§: api=1 producer=(21016:com.rince.alienated2) producerControlledByApp=true
04-21 21:04:45.996 I/BufferQueueProducer( 132): SurfaceView new GraphicBuffer needed
04-21 21:04:45.996 I/[MALI]Gralloc: usage: 0xf02, format: 1 stride: 1024 vertical_stride: 600 size: 2457600
04-21 21:04:45.997 D/GraphicBuffer( 132): alloc, handle(0xb5e3b100) (w:1024 h:600 s:1024 f:0x1 u:0x000f02) err(0)
04-21 21:04:46.001 D/hwcomposer( 132): [HWC] hdmi connect=0, isDecoupleOvl=0
04-21 21:04:46.001 D/hwcomposer( 132): [HWC] prepare_primary==
04-21 21:04:46.001 E/hwcomposer( 132): [HWC] ION is invalid (handle=0xb6253940, num=-1, idx=-1) !!
04-21 21:04:46.001 W/hwcomposer( 132): [HWC] Failed to get ION fd !! (handle=0xb6253940) !!
04-21 21:04:46.006 D/GraphicBuffer(21016): register, handle(0xac8d9a00) (w:1024 h:600 s:1024 f:0x1 u:0x000f02)
It seems to be a problem related to Ion gpu maybe not released by another app or not yet ready.