Can't connect to camera - htc one x at&t (cm10)

Sriramreloaded

New member
Jan 28, 2013
2
0
0
My camera app started to freeze on open. This issue started to happen all of a sudden.
Thinking it to be software issue , I installed Cm10.(got rid of the stock)

It did not fix the issue. It does work sometimes but very rarely.
I keep getting "Can't connect to camera". Sometimes I get "gallery isnt responding".

I found the following stack trace

V/CameraHolder( 9656): open camera 0
W/CameraService( 139): CameraService::connect X (pid 9656) rejected (existing client).
E/CameraHolder( 9656): fail to connect Camera
E/CameraHolder( 9656): java.lang.RuntimeException: Fail to connect to camera service
E/CameraHolder( 9656): at android.hardware.Camera.native_setup(Native Method)
E/CameraHolder( 9656): at android.hardware.Camera.<init>(Camera.java:323)
E/CameraHolder( 9656): at android.hardware.Camera.open(Camera.java:283)
E/CameraHolder( 9656): at com.android.camera.CameraManager.cameraOpen(CameraManager.java:224)
E/CameraHolder( 9656): at com.android.camera.CameraHolder.open(CameraHolder.java:151)
E/CameraHolder( 9656): at com.android.camera.Util.openCamera(Util.java:308)
E/CameraHolder( 9656): at com.android.camera.Camera$CameraStartUpThread.run(Camera.java:312)

Do any one have any idea what could be going on ?
 
I'd try clearing the camera app cache. If that doesn't work then rebooting to recovery and clearing cache/dalvik.


Sent from my Nexus 7 using Android Central Forums
 
And if clearing the cache doesn't work, do a dirty flash (flash the Rom over itself without wiping). This will overwrite any corrupted or missing files with the correct ones.
 
Do you have any themes in use? I just had the same issue and when I have my blackout theme active my camera doesn't work. Without the theme it works just fine. Try it.