[Samsung Galaxy Nexus] Regina Rainbow:
Camera Bug still there

So, the Camera Bug is still there and very unpredictable. I've tried to reproduce it or find some kind of pattern, but I'm afraid most of the time it's just random: Sometimes Snap/Stock Camera can't connect after several hours of uptime, sometimes it happens after days - or even right after a reboot, when normally a reboot fixes the problem. On my Gnex (Maguro) every app that connects to the camera (Snap, QR-Reader, etc.) can trigger the bug; the app crashes with a notice that it couldn't connect to the camera. The only way to get the camera up again is a reboot. This is a shortened logcat of Snap/Camera crashing with active hal-debugging (for full logs please see attachments):

08-13 10:55:38.902 V/CameraHolder( 7163): open camera 0

08-13 10:55:38.925 E/CameraService(27286): connectLegacy: camera HAL module version 1 doesn't support connecting to legacy HAL devices!

08-13 10:55:38.925 W/Camera ( 7163): An error occurred while connecting to camera 0: -38 (Function not implemented)

08-13 10:55:38.925 V/CAM_AndroidCameraManagerImpl( 7163): openLegacy failed. Using open instead

08-13 10:55:38.926 I/CameraService(27286): CameraService::connect call (PID 7163 "org.cyanogenmod.snap", camera ID 0) for HAL version default and Camera API version 1

08-13 10:55:38.926 I/CameraService(27286): onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0

08-13 10:55:38.927 W/AudioFlinger(27286): acquireAudioSessionId() unknown client 7163 for session 64

08-13 10:55:38.968 D/NuPlayerDriver(27286): notifyListener_l(0x40f97e60), (1, 0, 0)

08-13 10:55:38.968 W/AudioFlinger(27286): acquireAudioSessionId() unknown client 7163 for session 65

08-13 10:55:39.003 D/NuPlayerDriver(27286): notifyListener_l(0x40f98160), (1, 0, 0)

08-13 10:55:39.003 W/AudioFlinger(27286): acquireAudioSessionId() unknown client 7163 for session 66

08-13 10:55:39.040 D/NuPlayerDriver(27286): notifyListener_l(0x40f981c0), (1, 0, 0)

08-13 10:55:39.043 I/CameraClient(27286): Opening camera 0

08-13 10:55:39.047 I/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraHal_Module.cpp:636 camera_device_open - camera_device open

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:213 dump - ================================

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:214 dump - Dumping properties for camera: 0

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-antibanding-default = auto

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-antibanding-values = auto,50hz,60hz,off

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-auto-convergence-mode = frame

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-auto-convergence-mode-values =

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-auto-exposure-lock = false

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-auto-exposure-lock-supported = true

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-brightness-default = 50

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-camera-name = S5K4E1GA

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-contrast-default = 100

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-effect-default = none

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-effect-values = none,negative,solarize,sepia,mono,natural,vivid,color-swap,blackwhite,whiteboard,blackboard,aqua,posterize

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-ev-compensation-default = 0

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-ev-compensation-max = 30

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-ev-compensation-min = -30

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-ev-compensation-step = 0.1

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-exif-make = Samsung

08-13 10:55:39.047 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-exif-model = Galaxy Nexus

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-exposure-mode-default = auto

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-exposure-mode-values = auto,night,backlighting,spotlight,sports,snow,beach,aperture,small-aperture

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-facing = back

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-flash-mode-default = off

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-flash-mode-values = off,on,auto,torch

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-focus-mode-default = auto

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-focus-mode-values = off,continuous-video,continuous-picture,auto,macro,infinity,infinity,portrait,extended

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-framerate-range-default = 30000,30000

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-framerate-range-ext-values = (15000,15000),(20000,20000),(24000,24000),(15000,30000),(30000,30000)

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-framerate-range-values = (15000,15000),(20000,20000),(24000,24000),(15000,30000),(30000,30000)

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-gbce-default = false

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-gbce-supported = false

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-glbce-default = false

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-glbce-supported = false

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-horizontal-angle = 54.8

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-ipp-default = ldc-nsf

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-ipp-values = off,ldc,nsf,ldc-nsf

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-iso-mode-default = auto

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-iso-mode-values = auto,100,200,400,800

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-jpeg-quality-default = 95

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-jpeg-thumbnail-quality-default = 60

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-jpeg-thumbnail-size-default = 160x120

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-jpeg-thumbnail-size-values = 640x480,160x120,200x120,320x240,512x384,352x144,176x144,96x96,0x0

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-manual-convergence = 0

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-manual-exposure-max = 0

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-manual-exposure-min = 0

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-manual-exposure-step = 1

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-manual-gain-iso-max = 800

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-manual-gain-iso-min = 100

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-manual-gain-iso-step = 100

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-max-fd-hw-faces = 35

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-max-fd-sw-faces = 0

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-max-focus-areas = 10

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-max-num-metering-areas = 10

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-max-picture-height = 1960

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-max-picture-width = 2608

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-mechanical-misalignment-correction-supported = false

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-mode-values = high-quality,video-mode,high-performance,high-quality-zsl,zoom-bracketing

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-orientation = 90

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-picture-format-default = jpeg

08-13 10:55:39.048 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-picture-format-values = unused,yuv420sp,yuv420p,yuv422i-yuyv,rgb565,bayer-rggb,jpeg

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-picture-size-default = 320x240

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-picture-size-values = 2608x1960,2592x1944,2592x1728,2592x1458,2400x1350,2304x1296,2240x1344,2160x1440,2112x1728,2112x1188,2048x1536,2016x1512,2016x1134,2000x1600,1920x1080,1600x1200,1600x900,1536x864,1408x792,1344x756,1280x1024,1280x720,1152x864,1280x960,1024x768,640x480,320x240

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-preview-format-default = yuv420sp

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-preview-format-values = yuv420sp,yuv420p,yuv422i-yuyv,yuv420p

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-preview-frame-rate-default = 30

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-preview-frame-rate-ext-values = 15,20,24,30

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-preview-frame-rate-values = 15,20,24,30

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-preview-size-default = 640x480

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-preview-size-values = 1920x1080,1280x720,960x720,800x480,720x576,720x480,768x576,640x480,320x240,352x288,240x160,176x144,160x120,128x96

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-raw-height-values = 1960

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-raw-width-values = 2608

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-required-image-bufs = 1

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-required-preview-bufs = 6

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-s3d-cap-frame-layout =

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-s3d-cap-frame-layout-values =

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-s3d-prv-frame-layout =

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-s3d-prv-frame-layout-values =

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-saturation-default = 100

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-scene-mode-default = auto

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-scene-mode-values = auto,closeup,landscape,aqua,sports,mood,night-portrait,night-indoor,fireworks,document,barcode,super-night,cine,old-film,action,beach,candlelight,night,party,portrait,snow,steadyphoto,sunset,theatre

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-zoom-stages = 60

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - prop-zoom-supported = true

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - sensor-orientation = 0

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - video-size = 1920x1080

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:219 dump - video-size-values = 1920x1080,1280x720,960x720,800x480,720x576,720x480,768x576,640x480,320x240,352x288,240x160,176x144,160x120,128x96

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraParameters.cpp:222 dump - --------------------------------

08-13 10:55:39.049 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraHal.cpp:4209 initialize - Sensor index= 0; Sensor name= S5K4E1GA

08-13 10:55:39.057 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:4276 OMXCameraAdapter_Factory - New OMX Camera adapter instance created for sensor 0

08-13 10:55:39.071 V/CAM_UI ( 7163): Using mdp_preview_content (MDP path)

08-13 10:55:39.118 I/OMXClient( 7163): Using client-side OMX mux.

08-13 10:55:39.125 E/NFC ( 7163): could not retrieve NFC service

08-13 10:55:39.167 I/OMXClient( 7163): Using client-side OMX mux.

08-13 10:55:39.178 V/CAM_PhotoModule( 7163): On resume.

08-13 10:55:39.178 V/CAM_PhotoModule( 7163): Executing onResumeTasks.

08-13 10:55:39.205 D/CAM_Activity( 7163): send the turn off Flashlight broadcast

08-13 10:55:39.237 D/OpenGLRenderer( 7163): Use EGL_SWAP_BEHAVIOR_PRESERVED: false

08-13 10:55:39.259 D/CAM_PhotoModule( 7163): addIdleHandler in first time initialization

08-13 10:55:39.265 D/CameraStorage( 7163): External storage state=mounted

08-13 10:55:39.273 D/CameraStorage( 7163): External storage state=mounted

08-13 10:55:39.275 I/OMXClient( 7163): Using client-side OMX mux.

08-13 10:55:39.394 V/CAM_UI ( 7163): setTransformMatrix: scaledTextureWidth = 720.0, scaledTextureHeight = 960.0

08-13 10:55:39.394 D/CAM_UI ( 7163): mSurfaceTextureUncroppedWidth=720.0mSurfaceTextureUncroppedHeight=960.0

08-13 10:55:39.398 W/linker ( 7163): /system/vendor/lib/hw/gralloc.omap4460.so: unused DT entry: type 0xf arg 0x53b

08-13 10:55:39.398 W/linker ( 7163): /system/vendor/lib/hw/gralloc.omap4460.so: is missing DT_SONAME will use basename as a replacement: "gralloc.omap4460.so"

08-13 10:55:39.399 W/linker ( 7163): /system/vendor/lib/libpvr2d_SGX540_120.so: unused DT entry: type 0xf arg 0x767

08-13 10:55:39.399 W/linker ( 7163): /system/vendor/lib/libpvr2d_SGX540_120.so: is missing DT_SONAME will use basename as a replacement: "libpvr2d_SGX540_120.so"

08-13 10:55:39.401 I/OpenGLRenderer( 7163): Initialized EGL, version 1.4

08-13 10:55:39.434 W/View ( 7163): requestLayout() improperly called by android.view.SurfaceView{c5ff8e8 V.E...... ......ID 0,0-720,1280 #7f0e005a app:id/mdp_preview_content} during layout: running second layout pass

08-13 10:55:39.469 V/CAM_UI ( 7163): surfaceCreated

08-13 10:55:39.469 V/CAM_UI ( 7163): surfaceChanged: width =720, height = 960

08-13 10:55:39.510 I/FocusRingView( 7163): Computing center via view bounds.

08-13 10:55:39.566 I/ActivityManager( 483): Displayed org.cyanogenmod.snap/com.android.camera.CameraLauncher: +1s115ms

08-13 10:55:44.070 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:159	RPC_InstanceInit()

08-13 10:55:44.070 D/DOMX (27286): ERROR: Can't ioctl device, errorno from ioctl = 110

08-13 10:55:44.070 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:55:44.070 D/DOMX (27286): ERROR: Write failed returning status = 0xffffffff

08-13 10:55:44.071 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:55:44.071 D/DOMX (27286): ERROR: failed check:0 - returning error: 0x81001 - Write failed

08-13 10:55:44.071 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:55:44.071 D/DOMX (27286): ERROR: RPC function returned error 0x81001

08-13 10:55:44.071 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:55:44.071 D/DOMX (27286): ERROR: failed check:(eError == OMX_ErrorNone) - returning error: 0x80001001 - Error returned from OMX API in ducati

08-13 10:55:44.071 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:274	RPC_InstanceDeInit()

08-13 10:55:44.071 D/DOMX (27286): ERROR: Close failed on omx fd

08-13 10:55:44.071 D/DOMX (27286): hardware/ti/omap4/domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c:595	OMX_ComponentInit()

08-13 10:55:44.071 D/DOMX (27286): ERROR: rror in Initializing Proxy

08-13 10:55:44.072 E/CameraHal(27286): (450e5930) device/samsung/tuna/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:4306 OMXCameraGetHandle - OMX_GetHandle() failed, error: 0x80001001

08-13 10:55:46.846 V/ConfigResourceUtil( 978): resourceName = config_spn_display_control resourceId = 2130837514resourceValue = false

08-13 10:55:46.848 D/AlarmManagerService( 483): Kernel timezone updated to -120 minutes west of GMT

08-13 10:55:46.863 D/ConnectivityService( 483): notifyType CAP_CHANGED for NetworkAgentInfo [MOBILE (HSPA+) - 111]

08-13 10:55:46.865 D/ConnectivityService( 483): Setting tx/rx TCP buffers to 58254,349525,1048576,58254,349525,1048576

08-13 10:55:46.886 D/ConnectivityService( 483): notifyType IP_CHANGED for NetworkAgentInfo [MOBILE (UMTS) - 111]

08-13 10:55:49.172 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:159	RPC_InstanceInit()

08-13 10:55:49.172 D/DOMX (27286): ERROR: Can't ioctl device, errorno from ioctl = 110

08-13 10:55:49.172 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:55:49.172 D/DOMX (27286): ERROR: Write failed returning status = 0xffffffff

08-13 10:55:49.172 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:55:49.172 D/DOMX (27286): ERROR: failed check:0 - returning error: 0x81001 - Write failed

08-13 10:55:49.172 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:55:49.172 D/DOMX (27286): ERROR: RPC function returned error 0x81001

08-13 10:55:49.172 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:55:49.172 D/DOMX (27286): ERROR: failed check:(eError == OMX_ErrorNone) - returning error: 0x80001001 - Error returned from OMX API in ducati

08-13 10:55:49.172 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:274	RPC_InstanceDeInit()

08-13 10:55:49.172 D/DOMX (27286): ERROR: Close failed on omx fd

08-13 10:55:49.172 D/DOMX (27286): hardware/ti/omap4/domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c:595	OMX_ComponentInit()

08-13 10:55:49.172 D/DOMX (27286): ERROR: rror in Initializing Proxy

08-13 10:55:49.173 E/CameraHal(27286): (450e5930) device/samsung/tuna/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:4306 OMXCameraGetHandle - OMX_GetHandle() failed, error: 0x80001001

08-13 10:55:54.273 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:159	RPC_InstanceInit()

08-13 10:55:54.273 D/DOMX (27286): ERROR: Can't ioctl device, errorno from ioctl = 110

08-13 10:55:54.274 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:55:54.274 D/DOMX (27286): ERROR: Write failed returning status = 0xffffffff

08-13 10:55:54.274 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:55:54.274 D/DOMX (27286): ERROR: failed check:0 - returning error: 0x81001 - Write failed

08-13 10:55:54.274 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:55:54.274 D/DOMX (27286): ERROR: RPC function returned error 0x81001

08-13 10:55:54.274 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:55:54.274 D/DOMX (27286): ERROR: failed check:(eError == OMX_ErrorNone) - returning error: 0x80001001 - Error returned from OMX API in ducati

08-13 10:55:54.274 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:274	RPC_InstanceDeInit()

08-13 10:55:54.274 D/DOMX (27286): ERROR: Close failed on omx fd

08-13 10:55:54.274 D/DOMX (27286): hardware/ti/omap4/domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c:595	OMX_ComponentInit()

08-13 10:55:54.274 D/DOMX (27286): ERROR: rror in Initializing Proxy

08-13 10:55:54.275 E/CameraHal(27286): (450e5930) device/samsung/tuna/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:4306 OMXCameraGetHandle - OMX_GetHandle() failed, error: 0x80001001

08-13 10:55:59.068 I/Sensors ( 483): void mot_cb_wrapper(uint16_t): Got motion callback! Value: 2

08-13 10:55:59.375 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:159	RPC_InstanceInit()

08-13 10:55:59.375 D/DOMX (27286): ERROR: Can't ioctl device, errorno from ioctl = 110

08-13 10:55:59.375 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:55:59.375 D/DOMX (27286): ERROR: Write failed returning status = 0xffffffff

08-13 10:55:59.375 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:55:59.375 D/DOMX (27286): ERROR: failed check:0 - returning error: 0x81001 - Write failed

08-13 10:55:59.375 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:55:59.375 D/DOMX (27286): ERROR: RPC function returned error 0x81001

08-13 10:55:59.375 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:55:59.375 D/DOMX (27286): ERROR: failed check:(eError == OMX_ErrorNone) - returning error: 0x80001001 - Error returned from OMX API in ducati

08-13 10:55:59.375 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:274	RPC_InstanceDeInit()

08-13 10:55:59.376 D/DOMX (27286): ERROR: Close failed on omx fd

08-13 10:55:59.376 D/DOMX (27286): hardware/ti/omap4/domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c:595	OMX_ComponentInit()

08-13 10:55:59.376 D/DOMX (27286): ERROR: rror in Initializing Proxy

08-13 10:55:59.376 E/CameraHal(27286): (450e5930) device/samsung/tuna/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:4306 OMXCameraGetHandle - OMX_GetHandle() failed, error: 0x80001001

08-13 10:56:01.463 I/Sensors ( 483): void mot_cb_wrapper(uint16_t): Got motion callback! Value: 1

08-13 10:56:04.476 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:159	RPC_InstanceInit()

08-13 10:56:04.476 D/DOMX (27286): ERROR: Can't ioctl device, errorno from ioctl = 110

08-13 10:56:04.477 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:56:04.477 D/DOMX (27286): ERROR: Write failed returning status = 0xffffffff

08-13 10:56:04.477 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc_stub.c:204	RPC_GetHandle()

08-13 10:56:04.477 D/DOMX (27286): ERROR: failed check:0 - returning error: 0x81001 - Write failed

08-13 10:56:04.477 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:56:04.477 D/DOMX (27286): ERROR: RPC function returned error 0x81001

08-13 10:56:04.477 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_proxy_common/src/omx_proxy_common.c:2285	OMX_ProxyCommonInit()

08-13 10:56:04.477 D/DOMX (27286): ERROR: failed check:(eError == OMX_ErrorNone) - returning error: 0x80001001 - Error returned from OMX API in ducati

08-13 10:56:04.477 D/DOMX (27286): hardware/ti/omap4/domx/domx/omx_rpc/src/omx_rpc.c:274	RPC_InstanceDeInit()

08-13 10:56:04.477 D/DOMX (27286): ERROR: Close failed on omx fd

08-13 10:56:04.477 D/DOMX (27286): hardware/ti/omap4/domx/omx_proxy_component/omx_camera/src/omx_proxy_camera.c:595	OMX_ComponentInit()

08-13 10:56:04.477 D/DOMX (27286): ERROR: rror in Initializing Proxy

08-13 10:56:04.478 E/CameraHal(27286): (450e5930) device/samsung/tuna/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:4306 OMXCameraGetHandle - OMX_GetHandle() failed, error: 0x80001001

08-13 10:56:04.478 E/CameraHal(27286): (450e5930) device/samsung/tuna/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:127 initialize - OMX_GetHandle -0x80001001

08-13 10:56:04.478 D/CameraHal(27286): (450e5930) device/samsung/tuna/camera/OMXCameraAdapter/OMXCameraAdapter.cpp:398 initialize - Exiting function initialize because of ret 0 eError=80001001

08-13 10:56:04.478 E/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraHal.cpp:4224 initialize - Unable to create or initialize CameraAdapter

08-13 10:56:04.478 E/CameraHal(27286): (450e5930) device/samsung/tuna/camera/CameraHal_Module.cpp:731 camera_device_open - Couldn't initialize camera instance

08-13 10:56:04.478 E/CameraClient(27286): Could not open camera 0: -19

08-13 10:56:04.478 E/CameraClient(27286): initialize: Camera 0: unable to initialize device: No such device (-19)

08-13 10:56:04.479 I/CameraFlashlight(27286): Destroying camera 0

This morning I thought I found a reproducible test case: The QR-Scanner Plugin of Threema Messanger always seemed to trigger the bug, even after a reboot. But now, hours later and after rebooting, it's magically working again. (See attachment for full logcat.) Being absolutely unpredictable, this bug is becoming more and more of a show stopper for me.

[MENTION=2633638]Ziyan[/MENTION] and other affected or interested poeple: Isn't there anything I/we can do, to pin this down systematically? I'm willing to help where I can. (I'm no android coder, but I'm experienced in QA-Testing in linux environments and know how to use git and the android build system reasonably.) I don't know if the logs above are helpful, if not: What could I do to produce more meaningful logs or test cases?

And a final question: May this be hardware related in terms, that there are variants of the Galaxy Nexus with (maybe slightly) different Camera Hardware? I'm asking, because there's people that never see the camera crashing and others - like me - are facing it constantly. And: Does it affect Maguro, Toro and Toro Plus alike?