[myTouch 4G Android Development] zipsnet:
Camera Fix

here's where I am so far: (I stopped for a couple of days to build a new rom which is almost done)

---------------------- SNIP LOG ---------------------------

/CameraService( 1199): CameraService started (pid=1199)^M

D/CameraHAL( 1199): camera_get_number_of_cameras: number:2^M

/CameraService( 1199): CameraService started (pid=1199)^M

D/CameraHAL( 1199): camera_get_number_of_cameras: number:2^M

D/CameraHAL( 1199): camera_get_camera_info: id:0 faceing:0 orientation: 90^M

D/CameraHAL( 1199): camera_get_camera_info: id:1 faceing:1 orientation: 270^M

V/CameraHolder( 1847): open camera 0^M

D/CameraHAL( 1199): camera_get_camera_info: id:0 faceing:0 orientation: 90^M

I/CameraService( 1199): Opening camera 0^M

I/CameraHAL( 1199): camera_device open^M

I/QualcommCameraHardware( 1199): openCameraHardware: call createInstance^M

D/QualcommCameraHardware( 1199): createInstance: E^M

D/QualcommCameraHardware( 1199): Storing the current target type as 2 ^M

D/QualcommCameraHardware( 1199): constructor EX^M

D/QualcommCameraHardware( 1199): startCamera E^M

D/QualcommCameraHardware( 1199): loading liboemcamera at 0xb000e6f8^M

I/QualcommCameraHardware( 1199): Set main cam^M

I/mm-camera( 1199): set sensor selection :0^M

D/memalloc( 1300): /dev/pmem: Freeing buffer base:0x4c4c4000 size:1536000 offset:12165120 fd:247^M

I/QualcommCameraHardware( 1199): Open Device node : /dev/msm_camera/control0^M

I/mm-camera( 1199): Open Device node : /dev/msm_camera/config0 ^M

I/mm-camera( 1199): [AWB Calibration] from kernel: fuse_id: 0x0, 0x0, 0x4, 0xa05c7d^M

I/mm-camera-s5k4e1gx_u( 1199): awiiAttr _u read 0^M

I/mm-camera-s5k4e1gx_u( 1199): Inside s5k4e1gx_process_start ^M

I/mm-camera( 1199): [LSC Calibration]Sensor_set_mesh^M

I/mm-camera( 1199): [LSC Calibration] : call awb_get_fuseid^M

I/mm-camera( 1199): Read /data/lsc_cal fail^M

I/mm-camera( 1199): Read from file OK: /data/lsc_cal or /sys/android_camera_awb_cal/awb_cal^M

I/mm-camera( 1199): [LSC Calibration]: lsc_checksum=464db956, lsc_verify=c1b^M

I/mm-camera( 1199): [LSC Calibration]: fuseid_1=0,fuseid_2=0,fuseid_3=1,fuseid_4=3239c3, sfuse.fuse_id_word1=0,sfuse.fuse_id_word2=0,sfuse.fuse_id_word3=4,sfuse.fuse_id_word4=a05c7d^M

I/mm-camera( 1199): Sensor_set_mesh: valid bit or fuse id is wrong^M

I/mm-camera-s5k4e1gx_u( 1199): s5k4e1gx_process_start:[LSC Calibration] set default LSC GS mesh^M

I/mm-camera( 1199): [AWB Calibration] fuse_id : 0x0, 0x0, 0x4, 0xa05c7d^M

I/mm-camera( 1199): [AWB Calibration] fail to read /data/awb_cal, try another file^M

I/mm-camera( 1199): [AWB Calibration] read from file OK: /sys/android_camera_awb_cal/awb_cal^M

I/mm-camera( 1199): [AWB Calibration] nandflash data: 0xc1b, 0x2f4, 0x29c, 0x0, 0x0, 0x1, 0x3239c3, 0x9b885bf5^M

I/mm-camera( 1199): [AWB Calibration] check sum=9b885bf5, OK^M

I/mm-camera( 1199): [AWB Calibration] fuse ID not same,do nothing and leave^M

I/mm-camera-s5k4e1gx_u( 1199): s5k4e1gx_process_start: Glacier: preview_init_whitebalance = CAMERA_WB_FLUORESCENT^M

I/mm-camera-s5k4e1gx_u( 1199): s5k4e1gx_register: table = 0xa77df5f0^M

I/mm-camera-s5k4e1gx_u( 1199): get snapshot size pointer:0xa7724181^M

D/mm-camera( 1199): sensor_led_ctrl_init: camfd = 26^M

D/mm-camera( 1199): af_init_process_exhaustive_search sensor->af_exhaust_downhill_allowance 2, sensor->af_exhaust_fv_drop_allowance 0.800000^M

I/QualcommCameraHardware( 1199): startCamera: camsensor name s5k4e1gx, flash 1^M

I/mm-camera( 1199): sctrl:0xa77dea50^M

I/mm-camera( 1199): sctrl->fn_table:0xa7724841^M

I/mm-camera( 1199): sctrl->fn_table.get_snapshot_sizes:0xa7724181^M

I/mm-camera-s5k4e1gx_u( 1199): get table^M

D/QualcommCameraHardware( 1199): startCamera X^M

D/QualcommCameraHardware( 1199): loading libposteffect at 0x0^M

E/QualcommCameraHardware( 1199): could not dlopen libposteffect.so: Cannot load library: load_library[1120]: Library 'libposteffect.so' not found^M

D/QualcommCameraHardware( 1199): static android::sp<android::CameraHardwareInterface> android::QualcommCameraHardware::createInstance(): start GPU manager (-1).^M

D/QualcommCameraHardware( 1199): initDefaultParameters E^M

D/QualcommCameraHardware( 1199): product 6^M

D/QualcommCameraHardware( 1199): init thumbnail width: 640, height: 480^M

W/QualcommCameraHardware( 1199): native_access_parm: error (No such file or directory): fd 25, type 1, length 32, status 0^M

D/QualcommCameraHardware( 1199): requested preview size 640 x 480^M

D/QualcommCameraHardware( 1199): requested picture size 2592 x 1952^M

D/mm-camera( 1199): In config_proc_CAMERA_SET_PARM_LED_MODE: 0^M

D/mm-camera( 1199): set_led_mode = 0, led_ctrl_p->led_mode = 0^M

D/QualcommCameraHardware( 1199): [ATS][adjust_contrast][complete]^M

D/QualcommCameraHardware( 1199): not defined touch-focus yet, or AP without touch-focus function^M

D/QualcommCameraHardware( 1199): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0^M

D/QualcommCameraHardware( 1199): initDefaultParameters X^M

D/QualcommCameraHardware( 1199): createInstance: X created hardware=0x24ee8^M

D/CameraHAL( 1199): camera_set_callbacks^M

D/CameraHAL( 1199): camera_enable_msg_type: type 1037^M

D/CameraHAL( 1199): camera_enable_msg_type: CAMERA_MSG_ERROR^M

D/CameraHAL( 1199): camera_enable_msg_type: CAMERA_MSG_FOCUS^M

D/CameraHAL( 1199): camera_enable_msg_type: CAMERA_MSG_ZOOM^M

D/CameraHAL( 1199): camera_enable_msg_type: CAMERA_MSG_PREVIEW_METADATA^M

I/AwesomePlayer( 1199): setDataSource_l('/system/media/audio/ui/camera_click.ogg')^M

E/OMXCodec( 1199): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'^M

I/AwesomePlayer( 1199): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')^M

E/OMXCodec( 1199): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'^M

D/CameraHAL( 1199): camera_get_parameters^M

D/CameraHAL( 1199): camera_get_parameters^M

D/Camera ( 1847): app passed NULL surface^M

D/CameraHAL( 1199): camera_get_camera_info: id:0 faceing:0 orientation: 90^M

D/CameraHAL( 1199): camera_get_parameters^M

W/Util ( 1847): No preview size match the aspect ratio^M

D/CameraHAL( 1199): camera_set_parameters^M

D/QualcommCameraHardware( 1199): requested preview size 800 x 480^M

D/QualcommCameraHardware( 1199): requested picture size 2592 x 1936^M

D/mm-camera( 1199): In config_proc_CAMERA_SET_PARM_LED_MODE: 0^M

D/mm-camera( 1199): set_led_mode = 0, led_ctrl_p->led_mode = 0^M

D/QualcommCameraHardware( 1199): not defined touch-focus yet, or AP without touch-focus function^M

D/QualcommCameraHardware( 1199): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0^M

D/CameraHAL( 1199): camera_get_parameters^M

V/camera ( 1847): Preview size is 800x480^M

D/CameraHAL( 1199): camera_set_parameters^M

D/QualcommCameraHardware( 1199): requested preview size 800 x 480^M

D/QualcommCameraHardware( 1199): requested picture size 2592 x 1936^M

D/mm-camera( 1199): In config_proc_CAMERA_SET_PARM_LED_MODE: 1^M

D/mm-camera( 1199): set_led_mode = 1, led_ctrl_p->led_mode = 0^M

D/mm-camera( 1199): set_led_state: 0 -> 0^M

D/mm-camera( 1199): set_led_state: 0^M

D/mm-camera( 1199): set_led_state return 0^M

D/mm-camera( 1199): led_ctrl_p->led_mode = 1^M

D/QualcommCameraHardware( 1199): not defined touch-focus yet, or AP without touch-focus function^M

D/QualcommCameraHardware( 1199): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0^M

V/camera ( 1847): startPreview^M

D/CameraHAL( 1199): camera_preview_enabled^M

D/CameraHAL( 1199): camera_set_preview_window^M

D/CameraHAL( 1199): camera_set_preview_window: window is NULL^M

D/CameraHAL( 1199): camera_start_preview^M

D/QualcommCameraHardware( 1199): startPreview E^M

D/QualcommCameraHardware( 1199): initPreview E: preview size=800x480^M

D/QualcommCameraHardware( 1199): initPreview E: preview size=800x480 videosize = 800 x 480^M

D/QualcommCameraHardware( 1199): initPreview : preview size=800x480 videosize = 800 x 480^M

D/QualcommCameraHardware( 1199): initPreview: mFrameThreadWaitLock.lock()^M

D/QualcommCameraHardware( 1199): initPreview: mFrameThreadWaitLock.unlock()^M

----------------------------------- Here is where I need to find out what's going on -----------

F/libc ( 1199): Fatal signal 11 (SIGSEGV) at 0x01477094 (code=1) :eek:

There you have it !

-Z