• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help camera problem evo

I am having the same issue and have restarted my phone 3 times. I hooked up my phone to ddms and here is what is going on:

Code:
07-07 14:06:59.482: WARN/HTCCamera(1002): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$android.view.SurfaceView$2@464b8c00
07-07 14:06:59.482: WARN/HTCCamera(1002): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$  start preview
07-07 14:06:59.482: WARN/CameraThread(1002): CameraHandler Message - START_PREVIEW start mode0
07-07 14:06:59.482: ERROR/CameraThread(1002): open the Camera in start_camera_preview
07-07 14:06:59.482: WARN/CameraSwitch(1002): open main camera
07-07 14:06:59.482: WARN/HTCCamera(1002): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceChanged $$$$$$$$$$$$$$$$$$$$$$$$$$$ w=480 h=800
07-07 14:06:59.482: DEBUG/CameraService(55): CameraService::connect E (pid 1002, client 0x3f9c8)
07-07 14:06:59.482: DEBUG/CameraService(55): CameraService::connect X (pid 1002, new client 0x3f9c8) rejected. (old pid 568, old client 0x587b8)
07-07 14:06:59.492: ERROR/CameraThread(1002): open camera failed
07-07 14:06:59.492: ERROR/CameraThread(1002): java.lang.RuntimeException: Fail to connect to camera service
07-07 14:06:59.492: ERROR/CameraThread(1002):     at android.hardware.Camera.native_setup(Native Method)
07-07 14:06:59.492: ERROR/CameraThread(1002):     at android.hardware.Camera.<init>(Camera.java:118)
07-07 14:06:59.492: ERROR/CameraThread(1002):     at android.hardware.Camera.open(Camera.java:91)
07-07 14:06:59.492: ERROR/CameraThread(1002):     at com.android.camera.CameraThread.start_preview(CameraThread.java:1236)
07-07 14:06:59.492: ERROR/CameraThread(1002):     at com.android.camera.CameraThread$MainHandler.handleMessage(CameraThread.java:295)
07-07 14:06:59.492: ERROR/CameraThread(1002):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-07 14:06:59.492: ERROR/CameraThread(1002):     at android.os.Looper.loop(Looper.java:123)
07-07 14:06:59.492: ERROR/CameraThread(1002):     at com.android.camera.CameraThread.run(CameraThread.java:1765)
07-07 14:06:59.502: INFO/ActivityManager(92): Displayed activity com.android.camera/.CameraEntry: 244 ms (total 244 ms)
07-07 14:06:59.512: DEBUG/PhoneWindow(1002): DebugMonitor class=com.android.camera.CameraEntry focus=true
07-07 14:06:59.532: WARN/HTCCamera(1002): onPause() - start
07-07 14:06:59.532: WARN/HTCCamera(1002): onPause() - mIsUIReady = false
07-07 14:06:59.532: WARN/########## HtcSettingsReceiver ##########(1002): 2010-07-07 02:06:59 535(ms) onReceive-start
07-07 14:06:59.532: WARN/HTCCamera(1002): AudioManager.STREAM_SYSTEM_ENFORCED, to fix volume ,mOriginalVolume = -1
07-07 14:06:59.532: WARN/HTCCamera(1002): onPause() - mFocusingState = NO_FOCUSING
07-07 14:06:59.542: WARN/HTCCamera(1002): OnPause - set mWaitResetSettings to false
07-07 14:06:59.542: WARN/HTCCamera(1002): releaseFaceDetection()
07-07 14:06:59.542: WARN/HTCCamera(1002): onPause mIdle is false
07-07 14:06:59.542: WARN/CameraThread(1002): CameraHandler Message - START_PREVIEW end
07-07 14:06:59.542: WARN/CameraThread(1002): CameraHandler Message - CLOSE_CAMERA start mMode=0
07-07 14:06:59.542: ERROR/CameraThread(1002): mCameraDevice == null in close_camera
07-07 14:06:59.542: WARN/CameraThread(1002): CameraHandler Message - CLOSE_CAMERA end
07-07 14:06:59.582: WARN/HTCCamera(1002): onPause() - end
07-07 14:06:59.602: DEBUG/Sensors(92): close_akm, fd=134
07-07 14:06:59.652: WARN/HTCCamera(1002): doOnPause() - start
07-07 14:06:59.672: WARN/HTCCamera(1002): OnPause - hide UI, set mMainLayout invisible
07-07 14:06:59.672: WARN/HTCCamera(1002): doOnPause() - end
07-07 14:06:59.672: WARN/HTCCamera(1002): initScreenMode() - initiate screen mode from capture mode
07-07 14:06:59.672: WARN/HTCCamera(1002): initScreenMode() - request landscape mode

java.lang.RuntimeException: Fail to connect to camera service - looks like the culprit, but why would it be failing to connect to the camera service? anyone have any ideas?
 
Upvote 0
I had this problem as well after upgraded to 1.47 baseline. However, once I fully charged the handset (100% battery full) and rebooted it, the camera began to function again. Before that, each time I tabbed on the camera icon, it returned to Home screen and threw the same exception on the DDMS console.

EDIT: I charged through the USB cable from my PC. Not from the wall directly.
 
Upvote 0
Hi, after 4 days of resetting and installing diffrent roms, I was about to unroot phone when I went into recovery, hold volume down button and power on, then recovery then advanced and wiped Dalvik Cache. and fixed fix permissions. Then reboot and guess what camera is working (atleast for now). Hope this works for you.
 
Upvote 0
Hi, after 4 days of resetting and installing diffrent roms, I was about to unroot phone when I went into recovery, hold volume down button and power on, then recovery then advanced and wiped Dalvik Cache. and fixed fix permissions. Then reboot and guess what camera is working (atleast for now). Hope this works for you.


Sir what rom, kernel and radio are you using? I did what you said with no luck. Please help.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones