[Galaxy S II Q&A, Help & Troubleshooting] TvBTvB:
So, I have the same problem as you. My camera fails on every rom/firmware I flash :(

So I've decided to check the logcat (from clicking camera icon to Camera Failed error):

D/alogcat ( 6407): starting ...
D/alogcat ( 6407): stopped
W/SurfaceFlinger( 5153): AtchDlg:org.jtb.alogcat/org.jtb.alogcat.LogActivity[31] is not removed from mLayerMap
I/CheckinService( 5389): Preparing to send checkin request
I/EventLogService( 5389): Accumulating logs since 1312713718936
D/ResourceType( 5389): calling getConfigurations
D/ResourceType( 5389): called getConfigurations size=239
I/WindowOrientationListener( 5153): orientation = 4.2183824 Tilt = 60.83625 -- 0 , 4 , 7
I/CheckinTask( 5389): Sending checkin request (1366 bytes)
D/dalvikvm( 5389): GC_CONCURRENT freed 442K, 49% free 3230K/6279K, external 0K/512K, paused 3ms+5ms
D/dalvikvm( 5389): GC_CONCURRENT freed 426K, 49% free 3212K/6279K, external 0K/512K, paused 1ms+1ms
D/dalvikvm( 5389): GC_CONCURRENT freed 426K, 49% free 3220K/6279K, external 0K/512K, paused 1ms+2ms
D/InputReader( 5153): Input event: value=1
I/ScreenCaptureAction( 5153): updateHomeKeyPressed(), pressed = true
I/HomeKeyDoubleClick( 5153): addAction() is called. action = 0 canceled = false
I/HomeKeyDoubleClick( 5153): in addAction(), now add
I/HomeKeyDoubleClick( 5153): in addAction(), down event. now call postCheckRunnable().
I/HomeKeyDoubleClick( 5153): postCheckRunnable() is called
I/HomeKeyDoubleClick( 5153): in postCheckRunnable(), now posting.
I/HomeKeyDoubleClick( 5153): in postCheckRunnable(), posting success.
D/InputReader( 5153): Input event: value=0
I/ScreenCaptureAction( 5153): updateHomeKeyPressed(), pressed = false
I/HomeKeyDoubleClick( 5153): addAction() is called. action = 1 canceled = false
I/HomeKeyDoubleClick( 5153): in addAction(), now add
I/WindowOrientationListener( 5153): orientation = 8.335007 Tilt = 60.30219 -- 0 , 4 , 8
I/HomeKeyDoubleClick( 5153): run() is called *****************************************************
I/HomeKeyDoubleClick( 5153): isSingleClick() is called
I/HomeKeyDoubleClick( 5153): list value = (0) 0 (1) 1
I/HomeKeyDoubleClick( 5153): in isSingleClick() true
I/HomeKeyDoubleClick( 5153): -------------------------------single clicked
I/HomeKeyDoubleClick( 5153): singleClickJob() is called.
I/HomeKeyDoubleClick( 5153): in singleClickJob(), mSentHomeDownToApp is false. Now call launchHomeFromHotKey()
I/HomeKeyDoubleClick( 5153): launchHomeFromHotKey() is called.
I/HomeKeyDoubleClick( 5153): in launchHomeFromHotKey(), now call startDockOrHome(), #2
I/HomeKeyDoubleClick( 5153): reset() is called
I/HomeKeyDoubleClick( 5153): in reset() after reset, mPosted = false mHomeActionList.size() = 0
V/alogcat ( 6407): save instance
V/alogcat ( 6407): paused
I/OrientationDebug( 5153): [pwm] in updateOrientationListenerLp()
V/OrientationDebug( 5153): in updateOrientationListenerLp(), Screen status=true, current orientation=2, SensorEnabled=false
I/OrientationDebug( 5153): [pwm] needSensorRunningLp(), return false #3
D/dalvikvm( 6407): GC_CONCURRENT freed 478K, 57% free 3017K/6983K, external 291K/518K, paused 1ms+3ms
W/SurfaceFlinger( 5153): Toast[30] is not removed from mLayerMap
D/alogcat ( 6407): stopping ...
D/CLIPBOARD( 6407): Hide Clipboard dialog at Starting input: finished by someone else... !
D/alogcat ( 6407): stopped
D/ResourceType( 5389): calling getConfigurations
D/ResourceType( 5389): called getConfigurations size=239
I/CheckinTask( 5389): Checkin success: https://android.clients.google.com/checkin (1 requests sent)
I/CheckinService( 5389): From server: Intent { act=android.server.checkin.FOTA_CANCEL }
I/WindowOrientationListener( 5153): orientation = 14.456771 Tilt = 54.097214 -- 1 , 5 , 7
I/InputReader( 5153): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=0
I/InputDispatcher( 5153): Delivering touch to current input target: action: 0, channel '40b07e38 com.fede.launcher/com.fede.launcher.Launcher (server)'
I/InputReader( 5153): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=0
I/InputDispatcher( 5153): Delivering touch to current input target: action: 1, channel '40b07e38 com.fede.launcher/com.fede.launcher.Launcher (server)'
I/OrientationDebug( 5153): [pwm] in updateOrientationListenerLp()
V/OrientationDebug( 5153): in updateOrientationListenerLp(), Screen status=true, current orientation=0, SensorEnabled=false
I/OrientationDebug( 5153): [pwm] needSensorRunningLp(), return false #3
I/TvOut-Observer( 5153): setTvoutOrientation rotation = 1
E/TvOut-Observer( 5153): TvoutSetOrientation
D/Mms/MmsApp( 5522): [start] onConfigurationChanged(),newConfig={ scale=1.0 imsi=204/4 loc=nl_NL touch=3 keys=1/1/2 nav=1/1 orien=2 layout=34 uiMode=17 seq=6 FlipFont=0}
V/Mms/LayoutManager( 5522): -> LayoutManager.onConfigurationChanged().
V/Mms/HVGALayoutParameters( 5522): HVGALayoutParameters.<init>(11).
V/Mms/LayoutManager( 5522): LayoutParameters: HVGA-P: 320x480
D/Mms/MmsApp( 5522): [end] onConfigurationChanged(),newConfig={ scale=1.0 imsi=204/4 loc=nl_NL touch=3 keys=1/1/2 nav=1/1 orien=2 layout=34 uiMode=17 seq=6 FlipFont=0}
V/AbstractCameraActivity( 6122): onCreate
V/Camera ( 6122): onCreate
E/AXLOG ( 6122): Total-CameraPreviewLoading**StartU[1312713731911]**
E/AXLOG ( 6122): Total-CameraUILoading(TSP)**StartU[1312713731912]**
D/SensorManager( 6122): registerListener :: handle = 0 name= K3DH Acceleration Sensor delay= 200000 Listener= android.view.OrientationEventListener$SensorEventListenerImpl@405d6fb8
D/SensorManager( 6122): registerListener :: handle = 0 name= K3DH Acceleration Sensor delay= 200000 Listener= android.view.OrientationEventListener$SensorEventListenerImpl@405d9698
V/Camera ( 6122): resizeForPreviewAspectRatio
V/PreviewFrameLayout( 6122): setAspectRatio 1.3333333333333333
V/CameraEngine( 6122): changeEngineState => 0(CeStateIdle)
V/MenuDimController( 6122): refreshButtonDim: menuid=14 modeid=0
V/MenuDimController( 6122): refreshButtonDim: menuid=13 modeid=0
V/MenuDimController( 6122): refreshButtonDim: menuid=10 modeid=0
D/SensorManager( 6122): registerListener :: handle = 0 name= K3DH Acceleration Sensor delay= 200000 Listener= android.view.OrientationEventListener$SensorEventListenerImpl@405dca18
E/AXLOG ( 6122): GLSurfaceCreate**StartU[1312713731976]**
E/AXLOG ( 6122): onCreate-End**End[1312713731976]**[64]**[]**
V/Camera ( 6122): onResume
E/AXLOG ( 6122): surfaceCreate**StartU[1312713731977]**
V/CameraEngine( 6122): changeEngineState => 0(CeStateIdle)
V/CameraEngine( 6122): scheduleStartEngine
V/CeRequestQueue( 6122): addRequest
D/CeRequestQueue( 6122): [0 ]
V/CeRequestQueue( 6122): sending START_FIRST_REQUEST
V/CameraEngine( 6122): schedulePostInit
V/CeRequestQueue( 6122): addRequest
D/CeRequestQueue( 6122): [0 2 ]
V/CameraEngine( 6122): scheduleSetAllParams
V/CeRequestQueue( 6122): addRequest
D/CeRequestQueue( 6122): [0 2 10 ]
V/Camera ( 6122): Extra is null
V/MenuDimController( 6122): refreshButtonDim: menuid=0 modeid=0
V/CameraEngine( 6122): scheduleStartPreview
V/CeRequestQueue( 6122): addRequest
D/CeRequestQueue( 6122): [0 2 10 3 ]
I/GLThread( 6122): starting tid=18
I/GLThread( 6122): noticed surfaceView surface lost tid=18
D/dalvikvm( 6122): GC_CONCURRENT freed 259K, 48% free 3101K/5959K, external 1802K/2049K, paused 1ms+3ms
E/Camera ( 6122): Initialize Camera Sound
V/MenuDimController( 6122): refreshButtonDim: menuid=22 modeid=0
V/MenuDimController( 6122): refreshButtonDim: menuid=117 modeid=0
V/CheckMemory( 6122): Available Storage Size is 11409162240
V/CheckMemory( 6122): Available Storage Size is 11409162240
I/AudioService( 5153): AudioFocus requestAudioFocus() from android.media.AudioManager@405c93b8com.sec.android.app.camera.AbstractCameraActivity$14@40596fa8
V/AbstractCameraActivity( 6122): onResume
I/AbstractCameraActivity( 6122): restarting inactivity timer...
E/CameraEngine( 6122): searchForInitialLastContentUri - mSearchingLastContentUriThread is running
D/MediaPlayerService( 5141): getPlayerType. Ln=832
D/MediaPlayerService( 5141): createPlayer. type=4
D/MediaPlayerService( 5141): create StagefrightPlayer
V/AwesomePlayer( 5141): constructor
V/AwesomePlayer( 5141): reset
V/AwesomePlayer( 5141): cancelPlayerEvents (keepBufferingGoing=0)
V/AwesomePlayer( 5141): setAudioSink
V/AwesomePlayer( 5141): setDataSource (44, 724301, 4967)
V/AwesomePlayer( 5141): cancelPlayerEvents (keepBufferingGoing=0)
I/MediaExtractor( 5141): Autodetected media content as 'application/ogg' with confidence 0.20
V/AwesomePlayer( 5141): mBitrate = -1 bits/sec
V/AwesomePlayer( 5141): prepareAsync
V/AwesomePlayer( 5141): initAudioDecoder
V/AwesomePlayer( 5141): mime = audio/vorbis
I/OMXCodec( 5141): OMXCodec::Create matchComponentName ((null)), flags (0)
V/AwesomePlayer( 5141): play
W/OggExtractor( 5141): readNextPacket err -1004
V/AwesomePlayer( 5141): MEDIA_PLAYBACK_COMPLETE
V/AwesomePlayer( 5141): cancelPlayerEvents (keepBufferingGoing=1)
V/AwesomePlayer( 5141): reset
V/AwesomePlayer( 5141): cancelPlayerEvents (keepBufferingGoing=0)
V/AwesomePlayer( 5141): reset
V/AwesomePlayer( 5141): cancelPlayerEvents (keepBufferingGoing=0)
V/AwesomePlayer( 5141): destructor
V/AwesomePlayer( 5141): reset
V/AwesomePlayer( 5141): cancelPlayerEvents (keepBufferingGoing=0)
V/SettingsProvider( 5153): system <- value=0 name=screen_brightness_mode
V/SettingsProvider( 5153): property: sys.settings_system_version=7
V/SettingsProvider( 5153): notifying: content://settings/system/screen_brightness_mode
E/AbstractCameraActivity( 6122): bAutoBrightness = true, VALUES = 0.53999996
I/AbstractCameraActivity( 6122): onResume : SCREEN_BRIGHTNESS_MODE - mAutomatic:1 bTurnOnScrAB:true
I/GLThread( 6122): onResume tid=18
E/AXLOG ( 6122): onResume-End**End[1312713732079]**[102]**[]**
V/Camera ( 6122): onReceive [android.intent.action.BATTERY_CHANGED]
V/Camera ( 6122): handleBatteryChanged : Level = 60/100, Status = 3, battPlugged = 0, battTemp = 310
V/CeRequestQueue( 6122): startFirstRequest
V/CeStateIdle( 6122): HandleRequest - 0
V/CameraEngine( 6122): doStartEngineAsync
V/CameraEngine( 6122): changeEngineState => 1(CeStateInitializing)
V/CameraEngine( 6122): opening camera device...
E/AXLOG ( 6122): HW Open**StartU[1312713732086]**
E/SecCamera-JNI-Java( 6122): SecCamera.open()
E/SecCamera-JNI-Java( 6122): SecCamera()
I/SecCameraHardwareInterface( 5141): SecCameraHardwareInterface created: pid=5141, cameraId=0
D/SecCameraHardware( 5141): init E
V/SecCameraHardware( 5141): FimcV4l2 init: /dev/video0, fd(29)
V/SecCameraHardware( 5141): FimcV4l2 init: camera[0] M5MO
I/ActivityManager( 5153): Displayed com.sec.android.app.camera/.Camera: +333ms
I/libfimc ( 5153): bool SecFimc::create(SecFimc::FIMC_DEV, fimc_overlay_mode, unsigned int):: Fimc reserved memory =0x57da0000
E/Surface ( 6122): Surface::init token -2 identity 36
V/CameraEngine( 6122): surfaceCreated
V/CameraEngine( 6122): surfaceChanged w=640 h=480
E/AXLOG ( 6122): surfaceCreate**EndU[1312713732129]**
V/CameraEngine( 6122): resetPreviewSize()- WH: 640 480
E/CameraEngine( 6122): resetPreviewSize()- mParameters is null
V/CameraEngine( 6122): scheduleStartPreview
V/CeRequestQueue( 6122): addRequest
D/CeRequestQueue( 6122): [0 2 10 3 3 ]
I/GLThread( 6122): noticed surfaceView surface acquired tid=18
W/EglHelper( 6122): start() tid=18
I/ ( 6122): !@Mali Android API Version : 7 [1312713732]
W/EglHelper( 6122): createContext com.google.android.gles_jni.EGLContextImpl@40557888 tid=18
I/GLThread( 6122): noticing that we want render notification tid=18
W/GLThread( 6122): egl createSurface
W/EglHelper( 6122): createSurface() tid=18
E/lights ( 5153): write_int : /sys/class/backlight/pwm-backlight/brightness 137
W/SurfaceFlinger( 5153): Starting com.sec.android.app.camera[34] is not removed from mLayerMap
I/AbstractCameraActivity( 6122): restarting inactivity timer...
D/CLIPBOARD( 5371): Hide Clipboard dialog at Starting input: finished by someone else... !
V/CameraEngine( 6122): got message...{ what=100 when=-33ms }
V/CeStateInitializing( 6122): HandleMessage - 100
W/IInputConnectionWrapper( 5371): showStatusIcon on inactive InputConnection
D/dalvikvm( 5371): GC_EXPLICIT freed 28K, 53% free 3307K/6919K, external 7448K/7924K, paused 24ms
W/GLThread( 6122): onSurfaceCreated
V/TwGLRenderer( 6122): onSurfaceCreated
W/GLThread( 6122): onSurfaceChanged(800, 480)
V/TwGLRenderer( 6122): onSurfaceChanged width=800 height=480
E/AXLOG ( 6122): GLSurfaceCreate**EndU[1312713732208]**
E/AXLOG ( 6122): SideMenu-loading**StartU[1312713732210]**
I/GLThread( 6122): sending render notification tid=18
D/dalvikvm( 6122): GC_EXTERNAL_ALLOC freed 186K, 47% free 3230K/6023K, external 1651K/1653K, paused 22ms
D/dalvikvm( 6122): GC_EXTERNAL_ALLOC freed 159K, 48% free 3160K/6023K, external 508K/855K, paused 20ms
D/dalvikvm( 6122): GC_EXTERNAL_ALLOC freed 27K, 48% free 3134K/6023K, external 1376K/1774K, paused 24ms
D/dalvikvm( 6122): GC_EXTERNAL_ALLOC freed 8K, 48% free 3153K/6023K, external 2764K/2779K, paused 18ms
D/dalvikvm( 6122): GC_EXTERNAL_ALLOC freed 6K, 48% free 3159K/6023K, external 1695K/1753K, paused 17ms
I/WindowOrientationListener( 5153): orientation = 14.66404 Tilt = 59.303234 -- 0 , 4 , 8
D/dalvikvm( 6122): GC_EXTERNAL_ALLOC freed 7K, 48% free 3170K/6023K, external 2001K/2013K, paused 19ms
E/AXLOG ( 6122): SideMenu-loading**EndU[1312713732522]**
E/AXLOG ( 6122): Total-CameraUILoading(TSP)**EndU[1312713732522]**
V/ImageList( 6122): getImagePath
E/SecCameraHardware( 5141): FimcV4l2 init: error -1, VIDIOC_S_INPUT
E/SecCameraHardware( 5141): initCamera X: error, /dev/video0
V/SecCameraHardware( 5141): FimcV4l2 deinit EX
E/SecCameraHardware( 5141): createInstance: error, camera cannot be initialiezed
I/SecCameraHardwareInterface( 5141): camera hardware is null, the camera is in use by another process
I/SecCameraHardwareInterface( 5141): SecCameraHardwareInterface destroyed: pid=5141
E/CameraService( 5141): Fail to open camera hardware (id=0)
E/CameraEngine( 6122): service cannot connect. critical exception occured.
E/CameraEngine( 6122): ErrorMessageHandler.handleMessage (-1)
D/dalvikvm( 6122): GC_EXTERNAL_ALLOC freed 50K, 47% free 3198K/6023K, external 1520K/1721K, paused 82ms
V/SecCamera-JNI-Cpp( 6122): release camera
I/WindowOrientationListener( 5153): orientation = 11.625884 Tilt = 59.390648 -- 0 , 4 , 8
W/SurfaceFlinger( 5153): Toast[33] is not removed from mLayerMap
I/WindowOrientationListener( 5153): orientation = 10.625814 Tilt = 58.930744 -- 0 , 4 , 8
I/InputReader( 5153): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=0
I/InputDispatcher( 5153): Delivering touch to current input target: action: 0, channel '40a61730 com.sec.android.app.camera/com.sec.android.app.camera.Camera (server)'
I/InputReader( 5153): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=0
I/InputDispatcher( 5153): Delivering touch to current input target: action: 1, channel '40a61730 com.sec.android.app.camera/com.sec.android.app.camera.Camera (server)'
V/Camera ( 6122): onPause
V/Camera ( 6122): onFocusStateChanged : 0
V/CeRequestQueue( 6122): removeRequest - deleteFirst:9 deleteFirst:true
V/CameraEngine( 6122): changeEngineState => 7(CeStateShutdown)
V/CameraEngine( 6122): doStopPreviewSync
V/CameraEngine( 6122): changeEngineState => 2(CeStateInitialized)
E/AXLOG ( 6122): StopPreview**End[1312713734794]**[0]**[]**
V/CameraEngine( 6122): doStopEngineSync
V/CameraEngine( 6122): changeEngineState => 0(CeStateIdle)
V/CameraEngine( 6122): changeEngineState => 7(CeStateShutdown)
V/AbstractCameraActivity( 6122): onPause
I/AbstractCameraActivity( 6122): onPause : SCREEN_BRIGHTNESS_MODE - mAutomatic:1 bTurnOnScrAB:true
V/SettingsProvider( 5153): system <- value=1 name=screen_brightness_mode
V/SettingsProvider( 5153): property: sys.settings_system_version=8
V/SettingsProvider( 5153): notifying: content://settings/system/screen_brightness_mode
I/SecHardwareInterface( 6122): setmDNIeOutDoor (false)
I/SecHardwareInterface( 6122): setAmoledVideoGamma (false)
I/GLThread( 6122): onPause tid=18
I/Main thread( 6122): onPause waiting for mPaused.
I/GLThread( 6122): mPaused is now true tid=18
I/GLThread( 6122): releasing EGL surface because paused tid=18
W/EglHelper( 6122): destroySurface() tid=18
W/EglHelper( 6122): finish() tid=18
I/GLThread( 6122): releasing EGL context because paused tid=18
V/MenuResourceDepot( 6122): clearInvisibleViews
I/OrientationDebug( 5153): [pwm] in updateOrientationListenerLp()
V/OrientationDebug( 5153): in updateOrientationListenerLp(), Screen status=true, current orientation=2, SensorEnabled=false
I/OrientationDebug( 5153): [pwm] needSensorRunningLp(), return false #3
D/dalvikvm( 5153): GC_EXPLICIT freed 675K, 36% free 7541K/11783K, external 1690K/2038K, paused 53ms
I/TvOut-Observer( 5153): setTvoutOrientation rotation = 0
E/TvOut-Observer( 5153): TvoutSetOrientation
D/Mms/MmsApp( 5522): [start] onConfigurationChanged(),newConfig={ scale=1.0 imsi=204/4 loc=nl_NL touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=7 FlipFont=0}
V/Mms/LayoutManager( 5522): -> LayoutManager.onConfigurationChanged().
V/Mms/HVGALayoutParameters( 5522): HVGALayoutParameters.<init>(11).
V/Mms/LayoutManager( 5522): LayoutParameters: HVGA-P: 320x480
D/Mms/MmsApp( 5522): [end] onConfigurationChanged(),newConfig={ scale=1.0 imsi=204/4 loc=nl_NL touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=7 FlipFont=0}
W/SurfaceFlinger( 5153): com.sec.android.app.camera/com.sec.android.app.camera.Camera[38] is not removed from mLayerMap
V/Camera ( 6122): onDestroy
I/GLThread( 6122): noticed surfaceView surface lost tid=18
I/GLThread( 6122): exiting tid=18
W/SurfaceFlinger( 5153): SurfaceView[37] is not removed from mLayerMap
D/SensorManager( 6122): unregisterListener:: disable all sensors for this listener, listener = android.view.OrientationEventListener$SensorEventListenerImpl@405dca18
V/MenuResourceDepot( 6122): onDestroy
V/MenuResourceDepot( 6122): clearAllMenus
V/MenuResourceDepot( 6122): clearing...
D/SensorManager( 6122): unregisterListener:: disable all sensors for this listener, listener = android.view.OrientationEventListener$SensorEventListenerImpl@405d9698
D/SensorManager( 6122): unregisterListener:: disable all sensors for this listener, listener = android.view.OrientationEventListener$SensorEventListenerImpl@405d6fb8
V/AbstractCameraActivity( 6122): onDestroy
I/AudioService( 5153): AudioFocus abandonAudioFocus() from android.media.AudioManager@405c93b8com.sec.android.app.camera.AbstractCameraActivity$14@40596fa8
W/SurfaceFlinger( 5153): com.sec.android.app.camera/com.sec.android.app.camera.Camera[35] is not removed from mLayerMap
E/lights ( 5153): write_int : /sys/class/backlight/pwm-backlight/brightness 69
W/IInputConnectionWrapper( 6122): showStatusIcon on inactive InputConnection
I/WindowOrientationListener( 5153): orientation = 7.72201 Tilt = 63.252975 -- 0 , 4 , 8
I/InputReader( 5153): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=0
I/InputDispatcher( 5153): Delivering touch to current input target: action: 0, channel '40b07e38 com.fede.launcher/com.fede.launcher.Launcher (server)'
I/InputReader( 5153): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=0
I/InputDispatcher( 5153): Delivering touch to current input target: action: 1, channel '40b07e38 com.fede.launcher/com.fede.launcher.Launcher (server)'
I/WindowOrientationListener( 5153): orientation = 0.47451782 Tilt = 54.12152 -- 1 , 5 , 7
I/InputReader( 5153): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=0
I/InputDispatcher( 5153): Delivering touch to current input target: action: 0, channel '40b07e38 com.fede.launcher/com.fede.launcher.Launcher (server)'
I/InputReader( 5153): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=0
I/InputDispatcher( 5153): Delivering touch to current input target: action: 1, channel '40b07e38 com.fede.launcher/com.fede.launcher.Launcher (server)'
I/OrientationDebug( 5153): [pwm] in updateOrientationListenerLp()
V/OrientationDebug( 5153): in updateOrientationListenerLp(), Screen status=true, current orientation=-1, SensorEnabled=false
I/OrientationDebug( 5153): [pwm] needSensorRunningLp(), return false #3
D/alogcat ( 6407): stopping ...
D/alogcat ( 6407): canceling periodic saves
D/alogcat ( 6407): starting ...
V/alogcat ( 6407): started
V/alogcat ( 6407): resumed
D/InputReader( 5153): Input event: value=1
D/dalvikvm( 5153): GC_EXPLICIT freed 114K, 37% free 7497K/11783K, external 1649K/2038K, paused 55ms
I/InputDispatcher( 5153): Delivering key to current input target: action: 0, channel '40b34068 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
W/KeyCharacterMap( 6407): No keyboard for id 0
W/KeyCharacterMap( 6407): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
D/dalvikvm( 6407): GC_CONCURRENT freed 289K, 55% free 3153K/6983K, external 333K/518K, paused 1ms+2ms
D/InputReader( 5153): Input event: value=0
I/InputDispatcher( 5153): Delivering key to current input target: action: 1, channel '40b34068 org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'
D/dalvikvm( 5371): GC_EXPLICIT freed 42K, 53% free 3311K/6919K, external 7448K/7924K, paused 180ms
D/CLIPBOARD( 5371): Hide Clipboard dialog at Starting input: finished by someone else... !
I/WindowOrientationListener( 5153): orientation = 13.218376 Tilt = 64.26102 -- 0 , 4 , 8
I/WindowOrientationListener( 5153): orientation = 1.6376774 Tilt = 61.556522 -- 0 , 4 , 8
D/GTalkService( 5389): [GTalkConnection.1] setInternalNetworkState: type=1, state=CONNECTED
I/WindowOrientationListener( 5153): orientation = 3.4520965 Tilt = 61.73048 -- 0 , 4 , 8
D/dalvikvm( 5389): GC_CONCURRENT freed 419K, 49% free 3221K/6279K, external 0K/512K, paused 3ms+3ms
D/MobileDataStateTracker( 5153): default Received state= CONNECTING, old= CONNECTING, reason= (unspecified), apnTypeList= default,supl,mmsapndroid
W/SurfaceFlinger( 5153): Toast[41] is not removed from mLayerMap
D/dalvikvm( 5389): GC_CONCURRENT freed 470K, 50% free 3188K/6279K, external 0K/512K, paused 2ms+1ms
D/dalvikvm( 5389): GC_CONCURRENT freed 464K, 50% free 3186K/6279K, external 0K/512K, paused 2ms+2ms
D/dalvikvm( 6407): GC_CONCURRENT freed 457K, 56% free 3090K/6983K, external 300K/518K, paused 2ms+2ms
I/InputReader( 5153): dispatchTouch::touch event's action is 0, pending(waiting finished signal)=0
I/InputDispatcher( 5153): Delivering touch to current input target: action: 0, channel '409f3918 AtchDlg:org.jtb.alogcat/org.jtb.alogcat.LogActivity (server)'

I think the most significant lines are these:

E/SecCameraHardware( 5141): FimcV4l2 init: error -1, VIDIOC_S_INPUT
E/SecCameraHardware( 5141): initCamera X: error, /dev/video0
V/SecCameraHardware( 5141): FimcV4l2 deinit EX
E/SecCameraHardware( 5141): createInstance: error, camera cannot be initialiezed
I/SecCameraHardwareInterface( 5141): camera hardware is null, the camera is in use by another process
I/SecCameraHardwareInterface( 5141): SecCameraHardwareInterface destroyed: pid=5141
E/CameraService( 5141): Fail to open camera hardware (id=0)
E/CameraEngine( 6122): service cannot connect. critical exception occured.
E/CameraEngine( 6122): ErrorMessageHandler.handleMessage (-1)

So the camera is in use by another process, does anyone know how to find out which process?

Thanks