[G2 and Desire Z Android Development] mgmaz:
This is my biggest issue with this ROM.

Every time I wake it now is that half-second of "will it reboot?" anxiety.

I've been able hook it up and run a post-reboot adb bugreport twice now.

The consistent error before the crash in both cases is "out of pmem".

It retries a few times and then everything shuts down and it reboots.

SInce build 15, my phone hasn't been kept an uptime greater than 19hrs.

A few revs back it would last about 2.5 days.

Interestingly I tried switching from Apex to Trebuchet launchers this morning to see if it would make a difference (memory?) and got a reboot later in the day.

There was some discussion earlier about tweaking the amount of pmem reserved, maybe it is too small ?

Don't know enough about android internals to debug this one.

Here's an example section of the report

02-23 14:55:17.586 108 108 E memalloc: /dev/pmem: No more pmem available
02-23 14:55:17.586 108 108 W memalloc: Falling back to ashmem
02-23 14:55:17.586 108 108 E memalloc: alloc mmap(fd=109, size=1536000, prot=3) failed (Try again)
02-23 14:55:17.586 108 108 E gralloc : gralloc failed err=Try again
02-23 14:55:17.586 108 108 W GraphicBufferAllocator: WOW! gralloc alloc failed, waiting for pending frees!
02-23 14:55:17.586 108 108 D memalloc: Out of PMEM. Dumping PMEM stats for debugging
02-23 14:55:17.586 108 108 D memalloc: ------------- PRINT PMEM STATS --------------
02-23 14:55:17.586 108 108 D memalloc: Node 0 -> Start Address : 0 Size 89600 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 1 -> Start Address : 89600 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 2 -> Start Address : 137600 Size 6400 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Node 3 -> Start Address : 144000 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 4 -> Start Address : 192000 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 5 -> Start Address : 240000 Size 89600 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 6 -> Start Address : 329600 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 7 -> Start Address : 377600 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 8 -> Start Address : 425600 Size 17920 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Node 9 -> Start Address : 443520 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 10 -> Start Address : 491520 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 11 -> Start Address : 539520 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 12 -> Start Address : 587520 Size 89600 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 13 -> Start Address : 677120 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 14 -> Start Address : 725120 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 15 -> Start Address : 773120 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 16 -> Start Address : 821120 Size 2560 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Node 17 -> Start Address : 823680 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 18 -> Start Address : 871680 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 19 -> Start Address : 919680 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 20 -> Start Address : 967680 Size 3840 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 21 -> Start Address : 971520 Size 2560 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Node 22 -> Start Address : 974080 Size 3840 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 23 -> Start Address : 977920 Size 3840 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 24 -> Start Address : 981760 Size 1280 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Total Allocated: Total Free:
02-23 14:55:17.586 108 108 D memalloc: ----------------------------------------------
02-23 14:55:17.586 108 108 E memalloc: /dev/pmem: No more pmem available
02-23 14:55:17.586 108 108 W memalloc: Falling back to ashmem
02-23 14:55:17.586 108 108 E memalloc: alloc mmap(fd=109, size=1536000, prot=3) failed (Try again)
02-23 14:55:17.586 108 108 E gralloc : gralloc failed err=Try again
02-23 14:55:17.586 108 108 W GraphicBufferAllocator: WOW! gralloc alloc failed, waiting for pending frees!
02-23 14:55:17.586 108 108 D memalloc: Out of PMEM. Dumping PMEM stats for debugging
02-23 14:55:17.586 108 108 D memalloc: ------------- PRINT PMEM STATS --------------
02-23 14:55:17.586 108 108 D memalloc: Node 0 -> Start Address : 0 Size 89600 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 1 -> Start Address : 89600 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 2 -> Start Address : 137600 Size 6400 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Node 3 -> Start Address : 144000 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 4 -> Start Address : 192000 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 5 -> Start Address : 240000 Size 89600 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 6 -> Start Address : 329600 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 7 -> Start Address : 377600 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 8 -> Start Address : 425600 Size 17920 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Node 9 -> Start Address : 443520 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 10 -> Start Address : 491520 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 11 -> Start Address : 539520 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 12 -> Start Address : 587520 Size 89600 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 13 -> Start Address : 677120 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 14 -> Start Address : 725120 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 15 -> Start Address : 773120 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 16 -> Start Address : 821120 Size 2560 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Node 17 -> Start Address : 823680 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 18 -> Start Address : 871680 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 19 -> Start Address : 919680 Size 48000 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 20 -> Start Address : 967680 Size 3840 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 21 -> Start Address : 971520 Size 2560 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Node 22 -> Start Address : 974080 Size 3840 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 23 -> Start Address : 977920 Size 3840 Free info 0
02-23 14:55:17.586 108 108 D memalloc: Node 24 -> Start Address : 981760 Size 1280 Free info 1
02-23 14:55:17.586 108 108 D memalloc: Total Allocated: Total Free:
02-23 14:55:17.586 108 108 D memalloc: ----------------------------------------------
02-23 14:55:17.586 108 108 E memalloc: /dev/pmem: No more pmem available
02-23 14:55:17.586 108 108 W memalloc: Falling back to ashmem
02-23 14:55:17.586 108 108 E memalloc: alloc mmap(fd=109, size=1536000, prot=3) failed (Try again)
02-23 14:55:17.586 108 108 E gralloc : gralloc failed err=Try again
02-23 14:55:17.586 108 108 W GraphicBufferAllocator: alloc(480, 800, 1, 00000b03, ...) failed -11 (Try again)
02-23 14:55:17.596 108 108 E SurfaceFlinger: GraphicBufferAlloc::createGraphicBuffer(w=480, h=800) failed (Try again), handle=0x0
02-23 14:55:17.596 108 108 E BufferQueue: [Keyguard] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
02-23 14:55:17.596 17301 17317 W Adreno200-EGLSUB: <DequeueBuffer:420>: dequeue native buffer fail: Try again
02-23 14:55:17.596 17301 17317 W Adreno200-EGL: <eglSurfaceResize:3568>: EGL_BAD_ALLOC
02-23 14:55:17.606 17301 17317 W HardwareRenderer: EGL error: EGL_BAD_ALLOC
02-23 14:55:17.606 17301 17317 E SurfaceTextureClient: getSlotFromBufferLocked: unknown buffer: 0xf70f00f0
02-23 14:55:17.606 17301 17317 F libc : Fatal signal 11 (SIGSEGV) at 0xf70f00f0 (code=1), thread 17317 (UI)
02-23 14:55:17.736 14723 14723 I DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-23 14:55:17.736 14723 14723 I DEBUG : Build fingerprint: 'htc_wwe/htc_vision/vision:4.2.2/JDQ39/87995:user/release-keys'
02-23 14:55:17.736 14723 14723 I DEBUG : Revision: '128'
02-23 14:55:17.736 14723 14723 I DEBUG : pid: 17301, tid: 17317, name: UI >>> system_server <<<
02-23 14:55:17.746 14723 14723 I DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr f70f00f0
02-23 14:55:23.000 17370 17370 I wpa_supplicant: rfkill: WLAN unblocked
02-23 14:55:23.000 17370 17370 I wpa_supplicant: rfkill: WLAN unblocked
02-23 14:55:23.000 17370 17370 I wpa_supplicant: rfkill: WLAN unblocked
02-23 14:55:23.000 17370 17370 I wpa_supplicant: rfkill: WLAN unblocked
02-23 14:55:25.031 14723 14723 I DEBUG : r0 59df0b4f r1 f70f00f0 r2 5448fbb0 r3 404c7da9
02-23 14:55:25.031 14723 14723 I DEBUG : r4 53540228 r5 5320a570 r6 00000001 r7 534fcd40
02-23 14:55:25.031 14723 14723 I DEBUG : r8 24a00009 r9 4009aac4 sl 52b80980 fp 5448fc8c
02-23 14:55:25.031 14723 14723 I DEBUG : ip 404d8d50 sp 5448fbd8 lr 534bfff5 pc f70f00f0 cpsr 60070010
02-23 14:55:25.031 14723 14723 I DEBUG : d0 46746f6c53746567 d1 65666675426d6f72
02-23 14:55:25.031 14723 14723 I DEBUG : d2 3a64656b636f4c72 d3 6e776f6e6b6e7520
02-23 14:55:25.031 14723 14723 I DEBUG : d4 000000ff00000000 d5 0000000000000000
02-23 14:55:25.031 14723 14723 I DEBUG : d6 0000000000000000 d7 4370000043700000
02-23 14:55:25.031 14723 14723 I DEBUG : d8 00000000423fcf00 d9 4290000000000000
02-23 14:55:25.031 14723 14723 I DEBUG : d10 4290000000000048 d11 4234000042340000
02-23 14:55:25.031 14723 14723 I DEBUG : d12 42ea000042ea0000 d13 3f00000000000000
02-23 14:55:25.031 14723 14723 I DEBUG : d14 0000000000000000 d15 0000000000000000
02-23 14:55:25.031 14723 14723 I DEBUG : d16 0000000000000000 d17 0000000000000000
02-23 14:55:25.031 14723 14723 I DEBUG : d18 3f8000004113d70a d19 3f80000041808889
02-23 14:55:25.031 14723 14723 I DEBUG : d20 010b010b00700798 d21 0000000000000c07
02-23 14:55:25.031 14723 14723 I DEBUG : d22 0000043f00890000 d23 0000000000080008
02-23 14:55:25.031 14723 14723 I DEBUG : d24 0008000700060004 d25 000a0008000a0009
02-23 14:55:25.031 14723 14723 I DEBUG : d26 0000000000000000 d27 0000000000000000
02-23 14:55:25.031 14723 14723 I DEBUG : d28 0048004700460044 d29 004a0048004a0049
02-23 14:55:25.031 14723 14723 I DEBUG : d30 000a000a000a000a d31 0000000000000000
02-23 14:55:25.031 14723 14723 I DEBUG : scr 68000013
02-23 14:55:25.041 14723 14723 I DEBUG :
02-23 14:55:25.041 14723 14723 I DEBUG : backtrace:
02-23 14:55:25.041 14723 14723 I DEBUG : #00 pc f70f00f0 <unknown>
02-23 14:55:25.041 14723 14723 I DEBUG : #01 pc 00002ff3 /system/lib/egl/eglsubAndroid.so
02-23 14:55:25.041 14723 14723 I DEBUG : #02 pc 00018de4 /system/lib/egl/libEGL_adreno200.so (eglFreeSurface+116)
02-23 14:55:25.041 14723 14723 I DEBUG : #03 pc 0000d0f8 /system/lib/egl/libEGL_adreno200.so (qeglDrvAPI_eglDestroySurface+260)
02-23 14:55:25.041 14723 14723 I DEBUG : #04 pc 00005d20 /system/lib/egl/libEGL_adreno200.so (eglDestroySurface+16)
02-23 14:55:25.041 14723 14723 I DEBUG : #05 pc 0000e5eb /system/lib/libEGL.so (eglDestroySurface+66)
02-23 14:55:25.041 14723 14723 I DEBUG : #06 pc 000493e5 /system/lib/libandroid_runtime.so
02-23 14:55:25.041 14723 14723 I DEBUG : #07 pc 0001e310 /system/lib/libdvm.so (dvmPlatformInvoke+112)
02-23 14:55:25.041 14723 14723 I DEBUG : #08 pc 0004cf21 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+392)
02-23 14:55:25.051 14723 14723 I DEBUG : #09 pc 00027720 /system/lib/libdvm.so
02-23 14:55:25.051 14723 14723 I DEBUG : #10 pc 0002b5c4 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+176)
02-23 14:55:25.051 14723 14723 I DEBUG : #11 pc 0005f70d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
02-23 14:55:25.051 14723 14723 I DEBUG : #12 pc 0005f737 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
02-23 14:55:25.051 14723 14723 I DEBUG : #13 pc 00054297 /system/lib/libdvm.so
02-23 14:55:25.051 14723 14723 I DEBUG : #14 pc 0000e438 /system/lib/libc.so (__thread_entry+72)
02-23 14:55:25.051 14723 14723 I DEBUG : #15 pc 0000db38 /system/lib/libc.so (pthread_create+168)
02-23 14:55:25.051 14723 14723 I DEBUG : #16 pc 00000b44 <unknown>