[Android Q&A, Help & Troubleshooting] michael.the.don:
i was trying to port a rom...the port was near sucessfull...everything is working fine...but the camera says"cannot connect to camera"...please help.

here is the logcat...

E/mm-camera(24372): qcamsvr_start: old_mode = 3f

E/CAMERA FRAME_PROC(24372): FRAME_PROC_comp_create: FRAME_PROC_comp_create success

E/mm-camera(24372): qcamsvr_load_gesture_lib Error opening gesture library

E/mm-camera(24372): Cannot init Gesture library

E/ThermalDaemon( 896): CPU[1] offline

E/PPDaemon( 228): MSMFB_NOTIFY_UPDATE stop ioctl failed

E/ ( 150): native_set_parms failed: type 3 length 420 error Connection timed out

E/ ( 150): MM_CAMERA_PARM_DIMENSION Failed.

E/ ( 150): Mymode Preview = 5

E/ ( 150): android::QCameraStream_preview::QCameraStream_preview(int, camera_mode_t): E

E/ ( 150): android::QCameraStream_preview::QCameraStream_preview(int, camera_mode_t): X

E/ ( 150): virtual android::status_t android::QCameraStream_preview::init(): E

E/mm-libcamera2( 150): mm_camera_ch_util_reg_buf_cb: Trying to register

E/mm-libcamera2( 150): mm_camera_ch_util_reg_buf_cb: Done register

E/ ( 150): Mymode Record = 5

E/ ( 150): Mymode Snap = 5

I/mm-still-omx( 150): omxJpegOpen

I/mm-still-omx( 150): OMX_GetHandle: E

I/mm-still-omx( 150): getLibName: cnt =0 componentName=OMX.qcom.image.jpeg.encoder, libName=libimage-jpeg-enc-omx-comp.so

I/mm-still-omx( 150): getLibName: libName=libimage-jpeg-enc-omx-comp.so

I/mm-still-omx( 150): OMX_GetHandle: dlopen for libimage-jpeg-enc-omx-comp.so is successful.

I/mm-still-omx( 150): here address is 0x400446c1

I/mm-still-omx( 150): OMX_GetHandle: dlopen for libimage-jpeg-enc-omx-comp.so is successful.

E/ ( 150): Mymode Preview = 5

E/QCameraHWI_Rdi( 150): android::QCameraStream_Rdi::QCameraStream_Rdi(int, camera_mode_t): E

E/QCameraHWI_Rdi( 150): android::QCameraStream_Rdi::QCameraStream_Rdi(int, camera_mode_t): X

E/mm-libcamera2( 150): mm_camera_ch_util_reg_buf_cb: Trying to register

E/mm-libcamera2( 150): mm_camera_ch_util_reg_buf_cb: Done register

E/ ( 150): QCameraHardwareInterface: X

E/ ( 150): isCameraReady mCameraState 1

E/ ( 150): int android::camera_device_open(const hw_module_t*, char const*, hw_device_t**): end rc 0

E/ ( 150): Qvoid android::set_CallBacks(camera_device*, camera_notify_callback, camera_data_callback, camera_data_timestamp_callback, camera_request_memory, void*): E

E/ ( 150): setCallbacks: E

E/ ( 150): setCallbacks: X

E/ ( 150): enableMsgType: E, msgType =0xd

E/ ( 150): enableMsgType: X, msgType =0xd, mMsgEnabled=0xd

E/ ( 150): processEvent: type :1 E

E/ ( 150): Stop recording issued. Return from process Event

E/ThermalDaemon( 896): Sensor 'MSM_THERM' - 41*C (41984)

E/WVMExtractor( 150): Failed to open libwvm.so

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 5

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

E/MM_OSAL ( 150): ValidateAACFile failed

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

E/WVMExtractor( 150): Failed to open libwvm.so

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 5

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

E/MM_OSAL ( 150): ValidateAACFile failed

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

W/QComExtractorFactory( 150): Didn't match the sniff <=== status = 1

E/ ( 150): Qchar* android::get_parameters(camera_device*): E

E/ ( 150): Qvoid android::put_parameters(camera_device*, char*): E

E/ ( 150): Qchar* android::get_parameters(camera_device*): E

E/ ( 150): Qvoid android::put_parameters(camera_device*, char*): E

E/ ( 150): Qint android::get_camera_info(int, camera_info*): E

E/ ( 150): Qchar* android::get_parameters(camera_device*): E

E/ ( 150): Qvoid android::put_parameters(camera_device*, char*): E

W/dalvikvm(24333): threadid=10: thread exiting with uncaught exception (group=0x41a79360)

E/AndroidRuntime(24333): FATAL EXCEPTION: Thread-750

E/AndroidRuntime(24333): java.lang.NullPointerException

E/AndroidRuntime(24333):	at com.android.camera.Camera.updateCameraParametersPreference(Camera.java:3893)

E/AndroidRuntime(24333):	at com.android.camera.Camera.setCameraParameters(Camera.java:4320)

E/AndroidRuntime(24333):	at com.android.camera.Camera.startPreview(Camera.java:3601)

E/AndroidRuntime(24333):	at com.android.camera.Camera.access$2200(Camera.java:130)

E/AndroidRuntime(24333):	at com.android.camera.Camera$6.run(Camera.java:1714)

E/AndroidRuntime(24333):	at java.lang.Thread.run(Thread.java:856)

I/ActivityManager( 452): Notify an ApplicationCrash

W/ActivityManager( 452): Force finishing activity com.android.camera/.Camera