[HTC Incredible S] alfie196:
I am trying to build a ROM from the AOSP, i am having a great deal of success but i am having issues with the camera app. When i run it i get the following logcat

V/RenderScript_jni( 1581): surfaceDestroyed
E/msm7x30.gralloc( 1497): cannot flush handle 0x2c4b80 (offs=a43000 len=32000)
E/msm7x30.gralloc( 1497): cannot flush handle 0x2f05e0 (offs=2ef000 len=145000)
E/msm7x30.gralloc( 1497): cannot flush handle 0x2aa668 (offs=434000 len=32000)
E/msm7x30.gralloc( 1497): cannot flush handle 0x2aa668 (offs=434000 len=32000)
V/CameraHolder( 1767): open camera 0
I/mm-camera( 1272): openCameraHardware: call createInstance
D/mm-camera( 1272): createInstance: E
D/mm-camera( 1272): Storing the current target type as 2
D/mm-camera( 1272): constructor EX
D/mm-camera( 1272): startCamera E
D/mm-camera( 1272): loading liboemcamera at 0xb000dc88
I/mm-camera( 1272): Set main cam
I/mm-camera( 1272): set sensor selection :0
I/mm-camera( 1272): Open Device node : /dev/msm_camera/control1
I/mm-camera( 1272): Open Device node : /dev/msm_camera/config1
I/mm-camera( 1272): [AWB Calibration] from kernel: fuse_id: 0x0, 0x0, 0x4, 0x216df4
I/mm-camera-s5k3h1gx_u( 1272): Inside s5k3h1gx_process_start
I/mm-camera( 1272): [LSC Calibration]Sensor_set_mesh
I/mm-camera( 1272): [LSC Calibration] : call awb_get_fuseid
I/mm-camera( 1272): Read /data/lsc_cal fail
I/mm-camera( 1272): Read from file OK: /data/lsc_cal or /sys/android_camera_awb_cal/awb_cal
I/mm-camera( 1272): [LSC Calibration]: lsc_checksum=d43f0087, lsc_verify=c1b
I/mm-camera( 1272): [LSC Calibration]: fuseid_1=0,fuseid_2=0,fuseid_3=4,fuseid_4=216df4, sfuse.fuse_id_word1=0,sfuse.fuse_id_word2=0,sfuse.fuse_id_wor
d3=4,sfuse.fuse_id_word4=216df4
I/mm-camera( 1272): LSC_Calibration: addr=a77b0d2c, & addr=a77b0d2c
I/mm-camera( 1272): LSC_Calibration: addr=a77b1b00, & addr=a77b1b00
I/mm-camera( 1272): LSC_Calibration: addr=a77b28d4, & addr=a77b28d4
I/mm-camera( 1272): LSC_Calibration: addr=a77b36a8, & addr=a77b36a8
I/mm-camera( 1272): LSC_Calibration: addr=a77b447c, & addr=a77b447c
I/mm-camera-s5k3h1gx_u( 1272): s5k3h1gx_process_start: [LSC Calibration] LSC is valid and set NEW mesh value
I/mm-camera( 1272): [AWB Calibration] fuse_id : 0x0, 0x0, 0x4, 0x216df4
I/mm-camera( 1272): [AWB Calibration] fail to read /data/awb_cal, try another file
I/mm-camera( 1272): [AWB Calibration] read from file OK: /sys/android_camera_awb_cal/awb_cal
I/mm-camera( 1272): [AWB Calibration] nandflash data: 0xc1b, 0x2d2, 0x2a5, 0x0, 0x0, 0x4, 0x216df4, 0xf8a3e887
I/mm-camera( 1272): [AWB Calibration] check sum=f8a3e887, OK
I/mm-camera( 1272): [AWB Calibration] valid bit and fuseID pass, use new white points
I/mm-camera( 1272): [AWB Calibration] use light version: v3
I/mm-camera-s5k3h1gx_u( 1272): s5k3h1gx_register: table = 0xa77df5f0
I/mm-camera-s5k3h1gx_u( 1272): get snapshot size pointer:0xa7725e39
D/mm-camera( 1272): sensor_led_ctrl_init: camfd = 22
D/mm-camera( 1272): af_init_process_exhaustive_search sensor->af_exhaust_downhill_allowance 2, sensor->af_exhaust_fv_drop_allowance 0.800000
I/mm-camera( 1272): startCamera: camsensor name s5k3h1gx, flash 1
I/mm-camera( 1272): sctrl:0xa77dea50
I/mm-camera( 1272): sctrl->fn_table:0xa7726991
I/mm-camera( 1272): sctrl->fn_table.get_snapshot_sizes:0xa7725e39
I/mm-camera-s5k3h1gx_u( 1272): get table
D/mm-camera( 1272): startCamera X
D/mm-camera( 1272): initDefaultParameters E
D/mm-camera( 1272): product 11
D/mm-camera( 1272): init thumbnail width: 640, height: 480
D/mm-camera( 1272): native_access_parm: fd 16, type 78, length 2
D/mm-camera( 1272): native_access_parm: fd 16, type 1, length 32
W/mm-camera( 1272): native_access_parm: error (No such file or directory): fd 16, type 1, length 32, status 0
D/mm-camera( 1272): native_access_parm: fd 16, type 68, length 4
D/mm-camera( 1272): native_access_parm: fd 16, type 69, length 4
D/mm-camera( 1272): native_access_parm: fd 16, type 70, length 4
V/mm-camera( 1272): setParameters: E params = 0x292f4
D/mm-camera( 1272): requested preview size 640 x 480
D/mm-camera( 1272): requested picture size 3264 x 2448
D/mm-camera( 1272): requested Fps Range min: 9000 x max: 28261
D/mm-camera( 1272): native_access_parm: fd 16, type 21, length 4
D/mm-camera( 1272): native_access_parm: fd 16, type 15, length 4
D/mm-camera( 1272): native_access_parm: fd 16, type 14, length 4
D/mm-camera( 1272): setFlash 0
D/mm-camera( 1272): native_access_parm: fd 16, type 49, length 4
D/mm-camera( 1272): In config_proc_CAMERA_SET_PARM_LED_MODE: 0
D/mm-camera( 1272): set_led_mode = 0, led_ctrl_p->led_mode = 0
D/mm-camera( 1272): flip-video = -1
V/mm-camera( 1272): Set zoom=0 40
D/mm-camera( 1272): native_access_parm: fd 16, type 2, length 4
I/mm-camera( 1272): Setting Contrast is 5
D/mm-camera( 1272): native_access_parm: fd 16, type 6, length 4
D/mm-camera( 1272): [ATS][adjust_contrast][complete]
I/mm-camera( 1272): Setting Brightness is 3
D/mm-camera( 1272): native_access_parm: fd 16, type 7, length 4
I/mm-camera( 1272): Setting Saturation is 5
D/mm-camera( 1272): native_access_parm: fd 16, type 11, length 4
D/mm-camera( 1272): [ATS][adjust_saturation][complete]
I/mm-camera( 1272): Setting Sharpness is 10
D/mm-camera( 1272): native_access_parm: fd 16, type 9, length 4
D/mm-camera( 1272): [ATS][adjust_sharpness][complete]
D/mm-camera( 1272): native_access_parm: fd 16, type 12, length 4
D/mm-camera( 1272): not defined touch-focus yet, or AP without touch-focus function
I/mm-camera( 1272): Before Setting coordinate x:320 y:240
I/mm-camera( 1272): Setting coordinate x:2 y:2
D/mm-camera( 1272): native_access_parm: fd 16, type 64, length 4
D/mm-camera( 1272): native_access_parm: fd 16, type 73, length 18
D/mm-camera( 1272): native_access_parm: fd 16, type 26, length 4
D/mm-camera( 1272): native_access_parm: fd 16, type 62, length 4
D/mm-camera( 1272): native_access_parm: fd 16, type 8, length 4
V/mm-camera( 1272): setThumbnailSize w=640 h=480
D/mm-camera( 1272): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
V/mm-camera( 1272): setParameters: X
D/mm-camera( 1272): initDefaultParameters X
D/mm-camera( 1272): createInstance: X created hardware=0x292f0
V/mm-camera( 1272): encodeData: E
D/mm-camera( 1272): encodeData: Do nothing
V/mm-camera( 1272): encodeData: X
D/dalvikvm( 1672): GC_EXTERNAL_ALLOC freed 506K, 56% free 2938K/6663K, external 1875K/2177K, paused 24ms
D/dalvikvm( 1672): GC_FOR_MALLOC freed 166K, 57% free 2898K/6663K, external 1731K/2177K, paused 16ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 8.269MB for 1440010-byte allocation
D/dalvikvm( 1672): GC_FOR_MALLOC freed 5K, 47% free 4299K/8071K, external 1635K/2147K, paused 15ms
D/dalvikvm( 1672): GC_CONCURRENT freed 0K, 47% free 4299K/8071K, external 1635K/2147K, paused 2ms+2ms
W/WindowManager( 1379): App freeze timeout expired.
W/WindowManager( 1379): Force clearing freeze: AppWindowToken{4056c198 token=HistoryRecord{4056b038 com.android.camera/.Camera}}
E/msm7x30.gralloc( 1379): cannot flush handle 0x3f2fa8 (offs=5de000 len=177000)
D/dalvikvm( 1672): GC_FOR_MALLOC freed 1418K, 65% free 2897K/8071K, external 1635K/2147K, paused 16ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 7.849MB for 1099569-byte allocation
D/dalvikvm( 1672): GC_FOR_MALLOC freed 3K, 51% free 3967K/8071K, external 1635K/2147K, paused 15ms
D/dalvikvm( 1672): GC_CONCURRENT freed 0K, 51% free 3967K/8071K, external 1704K/2147K, paused 3ms+2ms
D/dalvikvm( 1672): GC_FOR_MALLOC freed 1085K, 65% free 2897K/8071K, external 1635K/2147K, paused 17ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 8.878MB for 2178751-byte allocation
D/dalvikvm( 1672): GC_FOR_MALLOC freed 3K, 51% free 5021K/10247K, external 1635K/2147K, paused 15ms
D/dalvikvm( 1672): GC_CONCURRENT freed <1K, 51% free 5021K/10247K, external 1734K/2147K, paused 2ms+2ms
D/dalvikvm( 1672): GC_FOR_MALLOC freed 2138K, 72% free 2898K/10247K, external 1635K/2147K, paused 15ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 9.144MB for 2456026-byte allocation
D/dalvikvm( 1672): GC_FOR_MALLOC freed 3K, 49% free 5293K/10247K, external 1635K/2147K, paused 15ms
D/dalvikvm( 1672): GC_CONCURRENT freed 0K, 49% free 5293K/10247K, external 1635K/2147K, paused 2ms+2ms
D/dalvikvm( 1672): GC_FOR_MALLOC freed 2411K, 72% free 2898K/10247K, external 1635K/2147K, paused 15ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 8.813MB for 2109569-byte allocation
D/dalvikvm( 1672): GC_FOR_MALLOC freed 3K, 52% free 4954K/10247K, external 1635K/2147K, paused 15ms
D/dalvikvm( 1672): GC_CONCURRENT freed <1K, 52% free 4954K/10247K, external 1695K/2147K, paused 2ms+2ms
D/dalvikvm( 1672): GC_FOR_MALLOC freed 2071K, 72% free 2898K/10247K, external 1635K/2147K, paused 16ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 8.095MB for 1355975-byte allocation
D/dalvikvm( 1672): GC_FOR_MALLOC freed 3K, 59% free 4218K/10247K, external 1635K/2147K, paused 15ms
D/dalvikvm( 1379): GC_EXPLICIT freed 662K, 49% free 4268K/8327K, external 1625K/2137K, paused 59ms
D/dalvikvm( 1672): GC_CONCURRENT freed 0K, 59% free 4219K/10247K, external 1635K/2147K, paused 2ms+2ms
D/dalvikvm( 1672): GC_FOR_MALLOC freed 1738K, 72% free 2902K/10247K, external 1635K/2147K, paused 15ms
I/dalvikvm-heap( 1672): Grow heap (frag case) to 8.287MB for 1552568-byte allocation
D/dalvikvm( 1672): GC_CONCURRENT freed 3K, 57% free 4415K/10247K, external 1635K/2147K, paused 2ms+2ms
W/ActivityManager( 1379): Activity idle timeout for HistoryRecord{4056b038 com.android.camera/.Camera}
I/ActivityManager( 1379): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher
/com.android.launcher2.Launcher } from pid 1379
W/ActivityManager( 1379): Activity pause timeout for HistoryRecord{4056b038 com.android.camera/.Camera}
I/WindowManager( 1379): Setting rotation to 0, animFlags=1
I/ActivityManager( 1379): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=5}
V/RenderScript_jni( 1581): surfaceCreated
V/RenderScript_jni( 1581): surfaceChanged
E/msm7x30.gralloc( 1497): cannot flush handle 0x2ff940 (offs=a75000 len=c3000)
V/RenderScript_jni( 1581): surfaceChanged
W/InputManagerService( 1379): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@407041c8

Firstly i am not sure what this issue is

E/msm7x30.gralloc( 1379): cannot flush handle 0x40ce08 (offs=2ee000 len=168000)

But its not to with the camera as it happens a lot without the camera being used.

W/mm-camera( 1272): native_access_parm: error (No such file or directory): fd 16, type 1, length 32, status 0

Appears to be the only error i can see but i think it is part of libcamera.so that is proprietary.

Any got any clues to where i need to look at how to fix this issue?