[Sony Cross-Device Development Themes and Apps] CN@:
Great work [MENTION=5491189]xperiaz2[/MENTION].:good:

I'm running CM12.1 0731 build on s4 I9500.

When I click on Camera icon it gives FC,but I can use the CAM through AR effect app.

Here's a log I took.

D/ExynosCameraHWInterface( 2443): DEBUG(int android::check_camera_state(android::CAMERA_STATE, int)):camera(0) state(1:eek:PENED->5:PREVIEW_STOPPED) is valid
I/ExynosCameraHWImpl( 2443): stopPreviewLocked
I/ExynosCameraHWImpl( 2443): stopPreviewLocked m_startStopLock.lock()
D/ExynosCameraHWImpl( 2443): [INFO] stopPreview in
I/ExynosCameraHWImpl( 2443): [INFO] cancelAutoFocus
D/ExynosCamera( 2443): [bool ExynosCamera::cancelAutoFocus()] (8068) focusMode : 1
E/ExynosCamera( 2443): ERR(bool ExynosCamera::cancelAutoFocus()):Camera was closed
W/ExynosCameraHWImpl( 2443): DEBUG(void android::ExynosCameraHWImpl::m_disableMsgType(int, bool)):m_msgEnabled = 0x0, disable msgType = 0x410
D/ExynosCameraHWImpl( 2443): DEBUG(virtual void android::ExynosCameraHWImpl::stopPreview()):preview not running, doing nothing
D/ExynosCameraHWImpl( 2443): [INFO] stopPreview (1062) out
W/ExynosCameraHWImpl( 2443): DEBUG(void android::ExynosCameraHWImpl::m_restoreMsgType()):m_storedMsg = 0x0, m_msgEnabled before = 0x0
I/ExynosCameraHWImpl( 2443): stopPreviewLocked m_startStopLock.unlock()
I/ExynosCameraHWInterface( 2443): [INFO] (void android::HAL_camera_device_stop_preview(camera_device*):395):camera(0) out from stopPreviewLocked()
I/ExynosCameraHWInterface( 2443): [INFO] (void android::HAL_camera_device_stop_preview(camera_device*):399):camera(0) unlocked..
I/ExynosCameraHWInterface( 2443): [INFO] (void android::HAL_camera_device_stop_preview(camera_device*):404):camera(0) out
I/ExynosCameraHWImpl( 2443): [INFO] cancelPicture
I/ExynosCameraHWInterface( 2443): [INFO] (void android::HAL_camera_device_release(camera_device*):642):camera(0) in
D/ExynosCameraHWInterface( 2443): DEBUG(int android::check_camera_state(android::CAMERA_STATE, int)):camera(0) state(2) checking...
D/ExynosCameraHWInterface( 2443): DEBUG(int android::check_camera_state(android::CAMERA_STATE, int)):camera(0) state(5:PREVIEW_STOPPED->2:RELEASED) is valid
I/ExynosCameraHWImpl( 2443): [INFO] release
D/ExynosCameraHWImpl( 2443): DEBUG(m_videoThreadFuncWrapper:7912): SIGNAL(m_videoCondition) - recevied
D/ExynosCameraHWImpl( 2443): DEBUG(virtual void android::ExynosCameraHWImpl::release()): exit burstPanoramaThread Thread
D/ExynosCameraHWImpl( 2443): DEBUG(virtual void android::ExynosCameraHWImpl::release()): exit burstPanoramaCSCThread Thread
E/libcsc ( 2443): csc_deinit:: unsupported csc_hw_type
E/libcsc ( 2443): csc_deinit:: unsupported csc_hw_type
E/libcsc ( 2443): csc_deinit:: unsupported csc_hw_type
D/ExynosCamera( 2443): [bool ExynosCamera::destroy()] (2600)
D/ExynosCamera( 2443): [bool ExynosCamera::closePreview()] (12258)
D/ExynosCamera( 2443): [bool ExynosCamera::closePicture()] (12301)
D/ExynosCamera( 2443): [bool ExynosCamera::closeIs3a0(CAMERA_SENSOR)] (12350)
D/ExynosCamera( 2443): [bool ExynosCamera::closeIs3a0(CAMERA_SENSOR)] (12350)
D/ExynosCamera( 2443): [bool ExynosCamera::closeIs3a0(CAMERA_SENSOR)] (12350)
D/ExynosCamera( 2443): [bool ExynosCamera::closeIs3a1(CAMERA_SENSOR)] (12401)
D/ExynosCamera( 2443): [bool ExynosCamera::closeIs3a1(CAMERA_SENSOR)] (12401)
D/ExynosCamera( 2443): [bool ExynosCamera::closeIs3a1(CAMERA_SENSOR)] (12401)
D/ExynosCamera( 2443): [bool ExynosCamera::deinitSensor()] (12054)
D/ExynosCamera( 2443): [bool ExynosCamera::closeSensor()] (12099)
D/ExynosCamera( 2443): [bool ExynosCamera::closeIsp()] (12148)
D/ExynosCamera( 2443): [bool ExynosCamera::closePreview2()] (12978)
D/ExynosCamera( 2443): [bool ExynosCamera::closePicture2()] (13021)
D/ExynosCamera( 2443): [bool ExynosCamera::deinitSensor2()] (12857)
D/ExynosCamera( 2443): [bool ExynosCamera::closeSensor2()] (12893)
D/ExynosCamera( 2443): [bool ExynosCamera::closeIsp2()] (12935)
D/ExynosCamera( 2443): [bool ExynosCamera::closePreviewLpzsl()] (13812)
D/ExynosCamera( 2443): [bool ExynosCamera::closePictureLpzsl()] (13855)
D/ExynosCamera( 2443): [bool ExynosCamera::deinitSensorLpzsl()] (13677)
D/ExynosCamera( 2443): [bool ExynosCamera::closeSensorLpzsl()] (13720)
D/ExynosCamera( 2443): [bool ExynosCamera::closeIspLpzsl()] (13769)
I/ExynosCameraHWInterface( 2443): [INFO] (void android::HAL_camera_device_release(camera_device*):653):camera(0) out from release()
I/ExynosCameraHWInterface( 2443): [INFO] (void android::HAL_camera_device_release(camera_device*):657):camera(0) unlocked..
I/ExynosCameraHWInterface( 2443): [INFO] (void android::HAL_camera_device_release(camera_device*):662):camera(0) out
I/CameraClient( 2443): Destroying camera 0
I/ExynosCameraHWInterface( 2443): [INFO] (int android::HAL_camera_device_close(hw_device_t*):218): in
I/ExynosCameraHWInterface( 2443): [INFO] (int android::HAL_camera_device_close(hw_device_t*):223):camera(0)
D/ExynosCameraHWInterface( 2443): DEBUG(int android::check_camera_state(android::CAMERA_STATE, int)):camera(0) state(3) checking...
D/ExynosCameraHWInterface( 2443): DEBUG(int android::check_camera_state(android::CAMERA_STATE, int)):camera(0) state(2:RELEASED->3:CLOSED) is valid
I/ExynosCameraHWInterface( 2443): [INFO] (int android::HAL_camera_device_close(hw_device_t*):232):camera(0) locked..
I/ExynosCameraHWInterface( 2443): [INFO] (int android::HAL_camera_device_close(hw_device_t*):235):camera(0) unlocked..
I/ExynosCameraHWImpl( 2443): [INFO] release
I/ExynosCameraHWImpl( 2443): [INFO] ExynosCameraHWImpl is deleted!
I/ExynosCameraHWInterface( 2443): [INFO] (int android::HAL_camera_device_close(hw_device_t*):243):camera(0)
I/ExynosCameraHWInterface( 2443): [INFO] (int android::HAL_camera_device_close(hw_device_t*):246): out
D/NuPlayerDriver( 2443): reset(0xb38311c0)
D/NuPlayerDriver( 2443): notifyResetComplete(0xb38311c0)
D/NuPlayerDriver( 2443): reset(0xb38312e0)
D/NuPlayerDriver( 2443): notifyResetComplete(0xb38312e0)
D/TaskPersister( 3159): removeObsoleteFile: deleting file=452_task.xml
I/art ( 3159): Explicit concurrent mark sweep GC freed 103088(6MB) AllocSpace objects, 10(503KB) LOS objects, 33% free, 32MB/48MB, paused 1.686ms total 130.484ms

I attached full log.

How to fix it?