[HTC Sensation] awacker89:
So for about a week now I've been struggling with a "Can't connect to camera" error. Disable HW overlay or not, it just keeps happening. I've seen at least one other complaint from someone that the camera has inexplicably just stopped working all together, but most everyone seems to be fine. I captured a couple logcats of the situation. Hope this leads to a fix, I miss my camera!

I/mm-camera(14288): config_proc_CAMERA_START_VIDEO: received CAMERA_START_VIDEO!, ctrl->state = 26
E/mm-camera(14288): CAMERA_START_VIDEO illegal state, ctrl->state = 26
E/mm-camera(14288): Fatal Error: config_proc_ctrl_command cmd=57 is pending, new cmd=57
I/mm-camera(14288): config_proc_ctrl_command: pendingCtrlCmd 0x98e138
I/mm-camera(14288): VFE_RESET_ACK ctrl->state 22
D/mm-camera(14288): ctrl->mode 0
D/mm-camera(14288): vfe_util_get_sensor_info: mode=3
D/mm-camera(14288): vfe_util_get_sensor_info: ctrl->sensorCtrl.sensor.op_mode=3
D/mm-camera(14288): vfe_util_get_sensor_info: pre_mode=0 ctrl->mode=0
D/mm-camera(14288): vfe_util_get_sensor_info: Done sensor_get_info rc=1
D/android.widget.GridLayout( 325): vertical constraints: y7-y0>=922, y7-y6<=47, y6-y5<=0, y5-y4<=0, y4-y3<=35, y3-y2<=35, y2-y1<=38, y1-y0<=144 are inconsistent; permanently removing: y7-y6<=47.
E/mm-camera-s5k3h1gx_u(14288): s5k3h1gx failed 193
D/mm-camera(14288): vfe_util_update_meshrolloff: input mesh 3280x2464 output mesh 3280x2464
D/android.widget.GridLayout( 325): horizontal constraints: x1-x0>=0, x2-x1>=0, x3-x0>=214, x4-x3>=96, x5-x4>=300, x5-x0<=540 are inconsistent; permanently removing: x5-x0<=540.
I/InputReader( 325): Reconfiguring input devices. changes=0x00000004
I/InputReader( 325): Device reconfigured: id=4, name='cy8c-touchscreen', surface size is now 540x960, mode is 1
E/mm-camera(14288): VPE AXI config: MSM_CAM_IOCTL_AXI_CONFIG failed!
I/mm-camera(14288): Calling vfe_start_video

I/ActivityManager( 325): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.gallery3d/com.android.camera.CameraLauncher bnds=[399,475][528,651] u=0} from pid 628
I/ActivityManager( 325): Start proc com.android.gallery3d for activity com.android.gallery3d/com.android.camera.CameraLauncher: pid=5516 uid=10018 gids={1006, 3003, 1015, 1028}
I/ActivityManager( 325): Process com.google.android.apps.plus (pid 1037) has died.
I/ActivityManager( 325): Process com.pandora.android (pid 3053) has died.
W/ActivityManager( 325): Scheduling restart of crashed service com.pandora.android/.PandoraService in 5000ms
I/ActivityManager( 325): Start proc com.pandora.android for service com.pandora.android/.PandoraService: pid=5582 uid=10058 gids={3003, 3002, 3001, 1015, 1028}
I/ActivityManager( 325): START {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.cyanogenmod.trebuchet/.Launcher u=0} from pid 325
W/WindowManager( 325): Failure taking screenshot for (246x437) to layer 21055
W/ActivityManager( 325): Activity pause timeout for ActivityRecord{40fbdb50 com.android.gallery3d/com.android.camera.CameraLauncher}
I/ActivityManager( 325): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.gallery3d/com.android.camera.CameraLauncher bnds=[399,475][528,651] u=0} from pid 628
W/ActivityManager( 325): Activity stop timeout for ActivityRecord{40fbdb50 com.android.gallery3d/com.android.camera.CameraLauncher}
I/ActivityManager( 325): Activity reported stop, but no longer stopping: ActivityRecord{40fbdb50 com.android.gallery3d/com.android.camera.CameraLauncher}
I/WindowManager( 325): Input event dispatching timed out sending to com.android.gallery3d/com.android.camera.CameraLauncher
W/ActivityManager( 325): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 325): Activity idle timeout for ActivityRecord{40fbdb50 com.android.gallery3d/com.android.camera.CameraLauncher}
E/ActivityManager( 325): ANR in com.android.gallery3d (com.android.gallery3d/com.android.camera.CameraLauncher)
E/ActivityManager( 325): Reason: keyDispatchingTimedOut
E/ActivityManager( 325): Load: 5.52 / 11.38 / 9.22

W/ActivityManager( 325): Force finishing activity com.android.gallery3d/com.android.camera.CameraLauncher
W/WindowManager( 325): Failure taking screenshot for (246x437) to layer 21055
I/ActivityManager( 325): Killing ProcessRecord{410375f0 5516:com.android.gallery3d/u0a18}: user's request
I/ActivityManager( 325): Process com.android.gallery3d (pid 5516) has died.
I/WindowState( 325): WIN DEATH: Window{414e71f0 com.android.gallery3d/com.android.camera.CameraLauncher paused=true}
I/WindowState( 325): WIN DEATH: Window{414ee110 SurfaceView paused=false}
I/WindowManager( 325): WINDOW DIED Window{414e71f0 com.android.gallery3d/com.android.camera.CameraLauncher paused=true}

W/ActivityManager( 325): Killing ProcessRecord{40f5d7a0 8610:com.facebook.katana/u0a30}: background ANR
I/ActivityManager( 325): Process com.facebook.katana (pid 8610) has died.
W/ActivityManager( 325): Scheduling restart of crashed service com.facebook.katana/.service.MediaUploadService in 14866ms
W/ActivityManager( 325): Scheduling restart of crashed service com.facebook.katana/.service.FacebookService in 44162ms
W/ActivityManager( 325): Scheduling restart of crashed service com.facebook.katana/.service.vault.VaultSyncService in 240000ms
I/ActivityManager( 325): Start proc com.pandora.android for service com.pandora.android/.PandoraService: pid=9168 uid=10058 gids={3003, 3002, 3001, 1015, 1028}
I/ActivityManager( 325): Start proc com.facebook.katana for service com.facebook.katana/.service.MediaUploadService: pid=9215 uid=10030 gids={3003, 1006, 1015, 1028}
D/PhoneStatusBar( 460): disable: < expand icons alerts ticker system_info back home RECENT* clock >
D/PhoneStatusBar( 460): disable: < expand icons alerts ticker system_info BACK* HOME* RECENT CLOCK* >
--------- beginning of /dev/log/main
D/mm-camera(14288): vfe_util_get_sensor_info: Done sensor_get_info rc=1
E/mm-camera-s5k3h1gx_u(14288): s5k3h1gx failed 193
D/mm-camera(14288): vfe_util_update_meshrolloff: input mesh 3280x2464 output mesh 3280x2464
E/mm-camera(14288): VPE AXI config: MSM_CAM_IOCTL_AXI_CONFIG failed!
I/mm-camera(14288): Calling vfe_start_video
D/Sensors ( 325): handle : 4 en: 1, v010.0 - Try to resolve lock issue
D/Sensors ( 325): lock_status = 63
D/Sensors ( 325): Andy: MPLSensor::enable: lock1
D/Sensors ( 325): mEnabled = 0x10
D/Sensors ( 325): set_power_states++: enabled_sensors: 16 dmp_started: 0
D/Sensors ( 325): Before if statment: cs:0 rs:1 en_ped:0 da_ped:0 en_g:0 da_g:0
D/Sensors ( 325): STOP timerirq_1
D/Sensors ( 325): Starting DMP
I/ ( 325): mpu3050_resume: Resuming to 0070
D/Sensors ( 325): Exit: Starting DMP

Last one...

V/CameraHolder( 9719): open camera 0
W/CameraService(14288): CameraService::connect X (pid 9719) rejected (existing client).
E/CameraHolder( 9719): fail to connect Camera
E/CameraHolder( 9719): java.lang.RuntimeException: Fail to connect to camera service
E/CameraHolder( 9719): at android.hardware.Camera.native_setup(Native Method)
E/CameraHolder( 9719): at android.hardware.Camera.<init>(Camera.java:323)
E/CameraHolder( 9719): at android.hardware.Camera.open(Camera.java:283)
E/CameraHolder( 9719): at com.android.camera.CameraManager.cameraOpen(CameraManager.java:224)
E/CameraHolder( 9719): at com.android.camera.CameraHolder.open(CameraHolder.java:151)
E/CameraHolder( 9719): at com.android.camera.Util.openCamera(Util.java:308)
E/CameraHolder( 9719): at com.android.camera.Camera$CameraStartUpThread.run(Camera.java:298)
V/StateManager( 9719): startState class com.android.gallery3d.app.PhotoPage
V/NFC ( 9719): this device does not have NFC support
D/OrientationManager( 9719): lock orientation to portrait
W/WVMExtractor(14288): Failed to open libwvm.so
D/CameraStorage( 9719): External storage state=mounted
D/libEGL ( 9719): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL ( 9719): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL ( 9719): loaded /system/lib/egl/libGLESv2_adreno200.so
I/Adreno200-EGL( 9719): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)
I/Adreno200-EGL( 9719): Build Date: 07/31/12 Tue
I/Adreno200-EGL( 9719): Local Branch:
I/Adreno200-EGL( 9719): Remote Branch: quic/master
I/Adreno200-EGL( 9719): Local Patches: NONE
I/Adreno200-EGL( 9719): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 + NOTHING
D/memalloc( 136): /dev/pmem: Allocated buffer base:0x4240a000 size:2088960 offset:6230016 fd:41
D/memalloc( 9719): /dev/pmem: Mapped buffer base:0x5d4db000 size:8318976 offset:6230016 fd:63
D/OpenGLRenderer( 9719): Enabling debug mode 0
D/ActivityBase( 9719): set CameraRelativeFrame as Rect(0, 0 - 540, 720)
D/PhotoView( 9719): compensation = 0, CameraRelativeFrame = Rect(0, 0 - 540, 720), mCameraRect = Rect(0, 0 - 540, 720)
I/GalleryEGLConfigChooser( 9719): Config chosen: R5 G6 B5 A0 D24 S8 ID3 CAVEAT12344
D/memalloc( 136): /dev/pmem: Allocated buffer base:0x4240a000 size:1044480 offset:4751360 fd:60
D/memalloc( 9719): /dev/pmem: Mapped buffer base:0x5e002000 size:5795840 offset:4751360 fd:66
D/memalloc( 136): /dev/pmem: Allocated buffer base:0x4240a000 size:626688 offset:8318976 fd:78
D/memalloc( 9719): /dev/pmem: Mapped buffer base:0x5e907000 size:8945664 offset:8318976 fd:69
I/mm-camera(14288): ...config thread select timeout...

Of course, I have no idea what this all means. I just tried to throw in a few example of unique responses to any command involving the camera. I appreciate your consideration! Love the work you've done Bruce!