[Nexus S Q&A, Help & Troubleshooting] svekl:
Hi again, guys. I collected logcat logs from the moment of starting camera to it's death. But I'm not familiar to andoid sources, so, please, anyone can help me to understand, where is the problem?

I/ActivityManager( 306): START {act=android.intent.action.MAIN cat=[android.int
ent.category.LAUNCHER] flg=0x10200000 cmp=com.android.gallery3d/com.android.came
ra.CameraLauncher u=0} from pid 622
I/ActivityManager( 306): Start proc com.android.gallery3d for activity com.andr
oid.gallery3d/com.android.camera.CameraLauncher: pid=2726 uid=10016 gids={1006,
3003, 1015, 1023, 1028}
I/ActivityThread( 2726): Pub com.android.gallery3d.provider: com.android.gallery
3d.provider.GalleryProvider
V/CameraHolder( 2726): open camera 1
I/CameraService( 134): Opening camera 1
I/CameraHardwareSec( 134): int android::HAL_camera_device_open(const hw_module_
t*, char const*, hw_device_t**): open camera 1
E/SecCamera( 134): initCamera: m_cam_fd(26), m_jpeg_fd(0)
I/SecCamera( 134): Name of input channel[1] is S5KA3DFX
E/SecCamera( 134): initCamera: m_cam_fd2(27)
I/SecCamera( 134): Name of input channel[1] is S5KA3DFX
I/SecCamera( 134): initCamera : initialized
I/SecCamera( 134): Name of input channel[1] is S5KA3DFX
I/CameraHardwareSec( 134): int android::HAL_camera_device_open(const hw_module_
t*, char const*, hw_device_t**): opened camera 1 (0x40ccef90)
I/AwesomePlayer( 134): setDataSource_l('/system/media/audio/ui/camera_click.ogg
')
I/CameraHardwareSec( 134): int android::CameraHardwareSec::previewThreadWrapper
(): starting
I/CameraHardwareSec( 134): int android::CameraHardwareSec::previewThreadWrapper
(): calling mSecCamera->stopPreview() and waiting
W/SecCamera( 134): int android::SecCamera::stopPreview(): doing nothing because
m_flag_camera_start is zero
E/WVMExtractor( 134): IsWidevineMedia not found in libwvm.so
I/AwesomePlayer( 134): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg'
)
E/WVMExtractor( 134): IsWidevineMedia not found in libwvm.so
V/StateManager( 2726): startState class com.android.gallery3d.app.PhotoPage
D/OrientationManager( 2726): lock orientation to portrait
V/camera ( 2726): mSceneMode auto
V/camera ( 2726): Color effect value =none
V/camera ( 2726): autoExposure value =center
V/camera ( 2726): antiBanding value =auto
D/CameraSettings( 2726): Parameters: [camera-mode=0, effect-values=none,mono,neg
ative,sepia, effect=none, exposure-compensation-step=0.5, exposure-compensation=
0, focal-length=0.9, focus-distances=0.20,0.25,Infinity, focus-mode-values=fixed
, focus-mode=fixed, horizontal-view-angle=51.2, jpeg-quality=90, jpeg-thumbnail-
height=120, jpeg-thumbnail-quality=100, jpeg-thumbnail-size-values=160x120,0x0,
jpeg-thumbnail-width=160, max-exposure-compensation=4, min-exposure-compensation
=-4, picture-format-values=jpeg, picture-format=jpeg, picture-size-values=640x48
0, picture-size=640x480, preview-format-values=yuv420sp,yuv420p, preview-format=
yuv420sp, preview-fps-range-values=(7500,30000), preview-fps-range=7500,30000, p
review-frame-rate-values=15, preview-frame-rate=15, preview-size-values=640x480,
320x240,176x144, preview-size=640x480, recording-hint=false, rotation=0, vertica
l-view-angle=39.4, video-frame-format=yuv420p, whitebalance-values=auto,incandes
cent,fluorescent,daylight,cloudy-daylight, whitebalance=auto]
V/camera ( 2726): mSceneMode auto
V/camera ( 2726): Color effect value =none
V/camera ( 2726): autoExposure value =center
V/camera ( 2726): antiBanding value =auto
D/CameraSettings( 2726): Parameters: [camera-mode=0, effect-values=none,mono,neg
ative,sepia, effect=none, exposure-compensation-step=0.5, exposure-compensation=
0, focal-length=0.9, focus-distances=0.20,0.25,Infinity, focus-mode-values=fixed
, focus-mode=fixed, horizontal-view-angle=51.2, jpeg-quality=90, jpeg-thumbnail-
height=120, jpeg-thumbnail-quality=100, jpeg-thumbnail-size-values=160x120,0x0,
jpeg-thumbnail-width=160, max-exposure-compensation=4, min-exposure-compensation
=-4, picture-format-values=jpeg, picture-format=jpeg, picture-size-values=640x48
0, picture-size=640x480, preview-format-values=yuv420sp,yuv420p, preview-format=
yuv420sp, preview-fps-range-values=(7500,30000), preview-fps-range=7500,30000, p
review-frame-rate-values=15, preview-frame-rate=15, preview-size-values=640x480,
320x240,176x144, preview-size=640x480, recording-hint=false, rotation=0, vertica
l-view-angle=39.4, video-frame-format=yuv420p, whitebalance-values=auto,incandes
cent,fluorescent,daylight,cloudy-daylight, whitebalance=auto]
V/camera ( 2726): startPreview
E/WVMExtractor( 134): IsWidevineMedia not found in libwvm.so
I/Thumbnail( 2726): Fail to load bitmap. java.io.FileNotFoundException: /data/da
ta/com.android.gallery3d/files/last_thumb: open failed: ENOENT (No such file or
directory)
D/CameraStorage( 2726): External storage state=mounted
D/libEGL ( 2726): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL ( 2726): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
E/SecCamera( 134): ERR(int android::fimc_v4l2_streamon(int)):VIDIOC_STREAMON fa
iled
E/SecCamera( 134): int android::SecCamera::startPreview()::748 fail. errno: I/O
error, m_camera_id = 1
E/CameraHardwareSec( 134): ERR(android::status_t android::CameraHardwareSec::st
artPreviewInternal()):Fail on mSecCamera->startPreview()
I/CameraHardwareSec( 134): int android::CameraHardwareSec::previewThreadWrapper
(): return from wait
I/CameraHardwareSec( 134): int android::CameraHardwareSec::previewThreadWrapper
(): calling mSecCamera->stopPreview() and waiting
W/SecCamera( 134): int android::SecCamera::stopPreview(): doing nothing because
m_flag_camera_start is zero
I/CameraHardwareSec( 134): int android::CameraHardwareSec::previewThreadWrapper
(): return from wait
I/CameraHardwareSec( 134): int android::CameraHardwareSec::previewThreadWrapper
(): exiting
W/SecCamera( 134): int android::SecCamera::stopPreview(): doing nothing because
m_flag_camera_start is zero
W/SecCamera( 134): int android::SecCamera::stopRecord(): doing nothing because
m_flag_record_start is zero
I/SecCamera( 134): DeinitCamera: m_cam_fd(26)
I/SecCamera( 134): DeinitCamera: m_cam_fd2(27)
E/CameraHardwareSec( 134): preview window is NULL!
I/CameraService( 134): Destroying camera 1
I/CameraHardwareSec( 134): int android::HAL_camera_device_close(hw_device_t*)
I/SecCamera( 134): DeinitCamera : already deinitialized
W/dalvikvm( 2726): threadid=13: thread exiting with uncaught exception (group=0x
415f0300)
E/AndroidRuntime( 2726): FATAL EXCEPTION: Camera Handler Thread
E/AndroidRuntime( 2726): java.lang.RuntimeException: startPreview failed
E/AndroidRuntime( 2726): at android.hardware.Camera.startPreview(Native M
ethod)
E/AndroidRuntime( 2726): at com.android.camera.CameraManager$CameraHandle
r.handleMessage(CameraManager.java:128)
E/AndroidRuntime( 2726): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 2726): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2726): at android.os.HandlerThread.run(HandlerThread.ja
va:60)
W/AudioFlinger( 134): session id 34 not found for pid 134
W/AudioFlinger( 134): session id 35 not found for pid 134
W/ActivityManager( 306): Force finishing activity com.android.gallery3d/com.a
ndroid.camera.CameraLauncher
D/libEGL ( 2726): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
D/OpenGLRenderer( 2726): Enabling debug mode 0
D/ActivityBase( 2726): set CameraRelativeFrame as Rect(0, 0 - 480, 640)
D/PhotoView( 2726): compensation = 0, CameraRelativeFrame = Rect(0, 0 - 480, 640
), mCameraRect = Rect(0, 0 - 480, 640)
I/GalleryEGLConfigChooser( 2726): Config chosen: R5 G6 B5 A0 D24 S8 ID7 CAVEAT12
344
I/GLRootView( 2726): onSurfaceChanged: 480x800, gl10: com.google.android.gles_jn
i.GLImpl@41c22808
I/GLRootView( 2726): layout content pane 480x800 (compensation 0)
D/PhotoView( 2726): compensation = 0, CameraRelativeFrame = Rect(0, 0 - 480, 640
), mCameraRect = Rect(0, 0 - 480, 640)
D/dalvikvm( 2726): GC_FOR_ALLOC freed 873K, 30% free 5885K/8387K, paused 55ms, t
otal 57ms
I/dalvikvm-heap( 2726): Grow heap (frag case) to 14.594MB for 635812-byte alloca
tion
I/ActivityManager( 306): Displayed com.android.gallery3d/com.android.camera.Cam
eraLauncher: +1s240ms (total +33s607ms)
W/InputMethodManagerService( 306): Focus gain on non-focused client com.android
.internal.view.IInputMethodClient$Stub$Proxy@41bb0f00 (uid=10016 pid=2726)
I/ActivityManager( 306): Process com.android.deskclock (pid 2377) has died.
W/ActivityManager( 306): Activity pause timeout for ActivityRecord{419e0178 com
.android.gallery3d/com.android.camera.CameraLauncher}
D/dalvikvm( 755): GC_EXPLICIT freed 510K, 59% free 3465K/8387K, paused 60ms+4ms
, total 630ms
D/SiMiClock( 1293): onUpdate
D/SiMiClock( 1293): onUpdate - 5
D/dalvikvm( 1293): GC_CONCURRENT freed 1809K, 72% free 2423K/8387K, paused 10ms+
49ms, total 145ms
I/Process ( 2726): Sending signal. PID: 2726 SIG: 9
W/InputMethodManagerService( 306): Window already focused, ignoring focus gain
of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41eaed38 attribute=n
ull
I/WindowState( 306): WIN DEATH: Window{41be2c20 SurfaceView paused=false}
I/ActivityManager( 306): Process com.android.gallery3d (pid 2726) has died.
I/WindowState( 306): WIN DEATH: Window{41985468 com.android.gallery3d/com.andro
id.camera.CameraLauncher paused=false}

My current ROM is CNA 3.6.6. Only front face camera crashes, but even in factory roms.