[Defy Android Development] struq:
PowerVR libs crash

Thanks for the new flavor of KitKat.;)

I had a brief test of this ROM and managed to trigger the same PowerVR libs crash as in my own build of AOSP. :(

Steps to reproduce: run heavy load apps like Maps or Chrome, after a while, open Settings or Dialer. This could be quite random though.

logcat

E/GraphicBuffer( 2769): unflatten: registerBuffer failed: Invalid argument (-22)

W/GraphicBufferMapper( 2769): registerBuffer(0x390b58) failed -22 (Invalid argument)

dmesg

<6>[ 936.725433] PVR_K: HWRecoveryResetSGX: SGX Hardware Recovery triggered

<6>[ 936.725463] PVR_K: SGX debug (SGX_DDK_Android sgxddk MAIN@956079)

<6>[ 936.725463] PVR_K: (P0) EUR_CR_CORE_ID: 01120000

<6>[ 936.725494] PVR_K: (P0) EUR_CR_CORE_REVISION: 00010205

<6>[ 936.725494] PVR_K: (P0) EUR_CR_EVENT_STATUS: 20000000

<6>[ 936.725524] PVR_K: (P0) EUR_CR_EVENT_STATUS2: 00000018

<6>[ 936.725524] PVR_K: (P0) EUR_CR_BIF_CTRL: 00000000

<6>[ 936.725555] PVR_K: (P0) EUR_CR_BIF_INT_STAT: 00004002

<6>[ 936.725555] PVR_K: (P0) EUR_CR_BIF_FAULT: 003C9000

<6>[ 936.725555] PVR_K: (P0) EUR_CR_BIF_MEM_REQ_STAT: 00000002

<6>[ 936.725585] PVR_K: (P0) EUR_CR_CLKGATECTL: 00222220

<6>[ 936.725585] PVR_K: (P0) EUR_CR_PDS_PC_BASE: 00005034

<6>[ 936.725616] PVR_K: Found MMU context for page fault 0x003c9000

<6>[ 936.725616] PVR_K: GPU memory context is for PID=2769 (ndroid.settings)

<6>[ 936.725646] PVR_K: PDE valid: PTE = 0x903c8001 (PhysAddr = 0x903c8000, valid)

<6>[ 936.725646] PVR_K: Flip Command Complete Data 0 for display device 1:

<6>[ 936.725677] PVR_K:	SRC 0: (Not in use)

<6>[ 936.725677] PVR_K:	SRC 1: (Not in use)

<6>[ 936.725677] PVR_K: Host Ctl flags= 00000006

<6>[ 936.725708] PVR_K: SGX Host control:

<6>[ 936.725708] PVR_K:	(HC-0) 0x00000001 0x00000000 0x00000000 0x00000001

<6>[ 936.725738] PVR_K:	(HC-10) 0x00000000 0x00000001 0x0000000A 0x00030D40

<6>[ 936.725738] PVR_K:	(HC-20) 0x00000065 0x00000000 0x00000003 0x00000000

<6>[ 936.725769] PVR_K:	(HC-30) 0x00000227 0x0005ACF6 0x25E5B434 0x00000000

<6>[ 936.725769] PVR_K:	(HC-40) 0x00000000 0x00000000 0x00000011 0x0338021D

<6>[ 936.725799] PVR_K: SGX TA/3D control:

<6>[ 936.725799] PVR_K:	(T3C-0) 0x0F003000 0x0F003120 0x0F002000 0x00000000

<6>[ 936.725830] PVR_K:	(T3C-10) 0x0F0EA9C0 0x00000000 0x00000002 0x00000000

<6>[ 936.725830] PVR_K:	(T3C-20) 0x0F00AEA0 0x00000000 0x00000000 0x00000000

<6>[ 936.725860] PVR_K:	(T3C-30) 0x00000000 0x00000000 0x00000000 0x00000000

<6>[ 936.725860] PVR_K:	(T3C-40) 0x00000000 0x00000000 0x00000000 0x00000000

<6>[ 936.725891] PVR_K:	(T3C-50) 0x00000000 0x00000000 0x00000000 0x00000000

<6>[ 936.725891] PVR_K:	(T3C-60) 0x00000000 0x00000000 0x00000000 0x00000000

<6>[ 936.725921] PVR_K:	(T3C-70) 0x00000000 0x00000000 0x00000000 0x00000000

<6>[ 936.725921] PVR_K:	(T3C-80) 0x00000000 0x0F1F5658 0x00000000 0x0F000000

<6>[ 936.725952] PVR_K:	(T3C-90) 0x9F9E2000 0x0F16C500 0x00000000 0x0F119840

<6>[ 936.725952] PVR_K:	(T3C-A0) 0x0F0F2FA0 0x0F1F5658 0x0F119840 0x00000000

<6>[ 936.725982] PVR_K:	(T3C-B0) 0x00000000 0x00000000 0x00000000 0x00000000

<6>[ 936.725982] PVR_K:	(T3C-C0) 0x00000000 0x00000000 0x00000000 0x00000000

<6>[ 936.726013] PVR_K:	(T3C-D0) 0x0F000000 0x8000B000 0x8004B000 0x0F004000

<6>[ 936.726013] PVR_K:	(T3C-E0) 0x0F00A420 0x0F00A740 0x0F120CA0 0x0F120CA0

<6>[ 936.726043] PVR_K:	(T3C-F0) 0x00000000 0x00000AD1 0x00000AD1 0x00000000

<6>[ 936.726043] PVR_K:	(T3C-100) 0x00000003 0x00000001 0x00000000 0x00000000

<6>[ 936.726074] PVR_K:	(T3C-110) 0xEC9A3BC9 0x00010002 0x0002B801 0x00000018

<6>[ 936.726074] PVR_K: SGX Kernel CCB WO:0x8A RO:0x88

Full log attached.

This does NOT happen in CM11 or SlimKat. I used to think that there was some Quarx or CM patches I missed in frameworks/native. Since you seem to use Quarx's branch of frameworks/native directly, this possibility could be ruled out. I also tried replacing system_core and bionic, problem not in there too.

Some more info: Nexus S(aosp & slimkat) and Galaxy Nexus(slimkat) also suffer from this crash.