Hi All,
I use USB camera on imx6dl. I cannot use 5M pixel to take picture but 2M pixel is OK. do you have any suggestion?
Thanks.
logcat says:
01-01 00:38:39.994 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 2 but its state was 0
01-01 00:38:40.263 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 3 but its state was 0
01-01 00:38:40.327 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 4 but its state was 0
01-01 00:38:40.425 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 2 but its state was 0
01-01 00:38:40.560 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 1 but its state was 0
01-01 00:38:40.663 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 3 but its state was 0
01-01 00:38:40.784 1332 1332 I CAM_CaptureModule: rudolph add takePictureNow.
01-01 00:38:40.791 1332 1332 I CAM_FilmstripView: [ViewItem:0] mData.renderThumbnail()
01-01 00:38:40.792 1332 1929 V CameraCaptureSession: Session 0: captureBurst - requests [android.hardware.camera2.CaptureRequest@5e4fd072], callback com.android.camera.one.v2.camera2proxy.AndroidCameraCaptureSessionProxy$AndroidCaptureCallback@6b80ada handler Handler (android.os.Handler) {1e0832a}
01-01 00:38:40.850 1332 1924 W LegacyRequestMapper: convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
01-01 00:38:40.850 1332 1924 W LegacyRequestMapper: Only received metering rectangles with weight 0.
01-01 00:38:40.851 1332 1924 W LegacyRequestMapper: mapAeAndFlashMode - Ignore control.aeMode == ON_AUTO_FLASH;camera does not support it
01-01 00:38:40.851 1332 1924 W LegacyMetadataMapper: convertAfModeToLegacy - ignoring unsupported mode 4, defaulting to fixed
01-01 00:38:40.851 1332 1924 W LegacyRequestMapper: convertRequestToMetadata - Ignoring android.lens.focusDistance false, only 0.0f is supported
01-01 00:38:40.911 208 1918 I FslCameraHAL: const camera_metadata_t* Camera::constructDefaultRequestSettings(int32_t):0: type=2
01-01 00:38:41.050 208 252 I FslCameraHAL: ae precature trigger
01-01 00:38:41.206 208 1915 I FslCameraHAL: int32_t VideoStream::configure(android::sp<Stream>): w:800, h:600, sensor format:0x14, stream format:0x103, fps:30, num:3
01-01 00:38:41.208 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 1 but its state was 0
01-01 00:38:41.213 208 252 I FslCameraHAL: virtual int32_t UvcDevice::UvcStream::onDeviceStopLocked()
01-01 00:38:41.240 208 252 I FslCameraHAL: virtual int32_t DMAStream::freeBuffersLocked()
01-01 00:38:41.240 208 252 I FslCameraHAL: freeBufferToIon buffer num:3
01-01 00:38:41.241 208 252 I FslCameraHAL: virtual int32_t UvcDevice::UvcStream::onDeviceConfigureLocked()
01-01 00:38:41.241 208 252 I FslCameraHAL: virtual int32_t DMAStream::onDeviceConfigureLocked()
01-01 00:38:41.241 208 252 I FslCameraHAL: virtual int32_t USPStream::onDeviceConfigureLocked()
01-01 00:38:41.241 208 252 I FslCameraHAL: virtual int32_t MMAPStream::onDeviceConfigureLocked()
01-01 00:38:41.241 208 252 I FslCameraHAL: Width * Height 2592 x 1944 format YUYV, fps: 15
01-01 00:38:41.253 208 252 I FslCameraHAL: virtual int32_t DMAStream::allocateBuffersLocked()
01-01 00:38:41.253 208 252 I FslCameraHAL: allocateBufferFromIon buffer num:2
01-01 00:38:41.339 208 252 I FslCameraHAL: phyalloc ptr:0xa8122000, phy:0x2ff00000, ionSize:10121216
01-01 00:38:41.400 208 252 I FslCameraHAL: phyalloc ptr:0xa6a0a000, phy:0x30900000, ionSize:10121216
01-01 00:38:41.400 208 252 I FslCameraHAL: virtual int32_t UvcDevice::UvcStream::onDeviceStartLocked()
01-01 00:38:41.401 208 252 I FslCameraHAL: buf[0] length:10077696
01-01 00:38:41.401 208 252 I FslCameraHAL: buf[1] length:10077696
01-01 00:38:41.438 1332 1332 W AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client; transfer 4, track 48000 Hz, output 44100 Hz
01-01 00:38:41.443 208 431 W audio_hw_primary: out_set_parameters routing=2, ret 0, out -1243028160
01-01 00:38:41.454 208 430 W audio_hw_primary: ret -32, pcm write 768 error wait error: hw 0x40980 app 0x40f80 avail 0x0
01-01 00:38:41.454 208 430 W audio_hw_primary: : Unknown error -32
01-01 00:38:44.878 208 431 W audio_hw_primary: no standby
01-01 00:38:44.951 1332 1924 E RequestThread-0: Hit timeout for jpeg callback!
01-01 00:38:44.951 1332 1924 W CaptureCollector: Jpeg buffers dropped for request: 1
01-01 00:38:44.952 1332 1907 E CameraDevice-JV-0: Lost output buffer reported for frame 83
01-01 00:38:44.965 1332 1924 W LegacyRequestMapper: convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
01-01 00:38:44.965 1332 1924 W LegacyRequestMapper: Only received metering rectangles with weight 0.
01-01 00:38:44.966 1332 1924 W LegacyRequestMapper: mapAeAndFlashMode - Ignore control.aeMode == ON_AUTO_FLASH;camera does not support it
01-01 00:38:44.966 1332 1924 W LegacyMetadataMapper: convertAfModeToLegacy - ignoring unsupported mode 4, defaulting to fixed
01-01 00:38:44.967 1332 1924 W LegacyRequestMapper: convertRequestToMetadata - Ignoring android.lens.focusDistance false, only 0.0f is supported
01-01 00:38:44.979 208 437 E Camera2Client: startPreviewL: Can't start preview in state STILL_CAPTURE
01-01 00:38:44.981 1332 1924 E RequestThread-0: Received device exception during capture call:
01-01 00:38:44.981 1332 1924 E RequestThread-0: java.lang.RuntimeException: startPreview failed
01-01 00:38:44.981 1332 1924 E RequestThread-0: at android.hardware.Camera.startPreview(Native Method)
01-01 00:38:44.981 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager.startPreview(RequestThreadManager.java:288)
01-01 00:38:44.981 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager.doPreviewCapture(RequestThreadManager.java:330)
01-01 00:38:44.981 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager.-wrap3(RequestThreadManager.java)
01-01 00:38:44.981 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager$5.handleMessage(RequestThreadManager.java:802)
01-01 00:38:44.981 1332 1924 E RequestThread-0: at android.os.Handler.dispatchMessage(Handler.java:98)
01-01 00:38:44.981 1332 1924 E RequestThread-0: at android.os.Looper.loop(Looper.java:148)
01-01 00:38:44.981 1332 1924 E RequestThread-0: at android.os.HandlerThread.run(HandlerThread.java:61)
01-01 00:38:44.981 1332 1924 I CameraDeviceState: Legacy camera service transitioning to state ERROR
01-01 00:38:44.985 208 825 E Camera2Client: startPreviewL: Can't start preview in state STILL_CAPTURE
01-01 00:38:44.987 1332 1924 E RequestThread-0: Received device exception during capture call:
01-01 00:38:44.987 1332 1924 E RequestThread-0: java.lang.RuntimeException: startPreview failed
01-01 00:38:44.987 1332 1924 E RequestThread-0: at android.hardware.Camera.startPreview(Native Method)
01-01 00:38:44.987 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager.startPreview(RequestThreadManager.java:288)
01-01 00:38:44.987 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager.doPreviewCapture(RequestThreadManager.java:330)
01-01 00:38:44.987 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager.-wrap3(RequestThreadManager.java)
01-01 00:38:44.987 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager$5.handleMessage(RequestThreadManager.java:802)
01-01 00:38:44.987 1332 1924 E RequestThread-0: at android.os.Handler.dispatchMessage(Handler.java:98)
01-01 00:38:44.987 1332 1924 E RequestThread-0: at android.os.Looper.loop(Looper.java:148)
01-01 00:38:44.987 1332 1924 E RequestThread-0: at android.os.HandlerThread.run(HandlerThread.java:61)
01-01 00:38:44.993 1332 1794 E CAM_FatalErrorHandler: Handling Camera Access Failure:
01-01 00:38:44.993 1332 1794 E CAM_FatalErrorHandler: java.lang.Exception
01-01 00:38:44.993 1332 1794 E CAM_FatalErrorHandler: at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84)
01-01 00:38:44.993 1332 1794 E CAM_FatalErrorHandler: at com.android.camera.one.v2.Camera2OneCameraOpenerImpl$1.onError(Camera2OneCameraOpenerImpl.java:154)
01-01 00:38:44.993 1332 1794 E CAM_FatalErrorHandler: at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks$1.run(CameraDeviceImpl.java:1697)
01-01 00:38:44.993 1332 1794 E CAM_FatalErrorHandler: at android.os.Handler.handleCallback(Handler.java:739)
01-01 00:38:44.993 1332 1794 E CAM_FatalErrorHandler: at android.os.Handler.dispatchMessage(Handler.java:95)
01-01 00:38:44.993 1332 1794 E CAM_FatalErrorHandler: at android.os.Looper.loop(Looper.java:148)
01-01 00:38:44.993 1332 1794 E CAM_FatalErrorHandler: at android.os.HandlerThread.run(HandlerThread.java:61)
01-01 00:38:44.993 1332 1794 E CAM_CameraUtil: Show fatal error dialog
01-01 00:38:45.078 197 509 E BufferQueueProducer: [com.android.camera2/com.android.camera.CameraLauncher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count
01-01 00:38:46.898 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 0 but its state was 0
01-01 00:38:47.632 208 252 E FslCameraHAL: getGpsCoordinates: error reading jpeg Coordinates tag
01-01 00:38:47.633 208 252 E FslCameraHAL: getGpsTimeStamp: error reading jpeg TimeStamp tag
01-01 00:38:47.633 208 252 E FslCameraHAL: getGpsProcessingMethod: error reading jpeg ProcessingMethod tag
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph Max number of EXIF elements already inserted 1
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph Max number of EXIF elements already inserted 1
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph Max number of EXIF elements already inserted 1
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph Max number of EXIF elements already inserted 1
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph Max number of EXIF elements already inserted 1
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph Max number of EXIF elements already inserted 1
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph add for jpegRotation=0
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph add for degreesToExifOrientation degrees=0
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph add for exif_orient to insertElement exif_orient=1
01-01 00:38:47.633 208 252 E FslCameraHAL: rudolph Max number of EXIF elements already inserted 1
01-01 00:38:47.635 1332 1926 I CameraDeviceState: Legacy camera service transitioning to state CAPTURING
01-01 00:38:47.636 1332 1926 E CameraDeviceState: Cannot call capture while in state: 0
01-01 00:38:47.645 208 825 E Camera2Client: startPreviewL: Can't start preview in state STILL_CAPTURE
01-01 00:38:47.647 1332 1924 E RequestThread-0: Received device exception during capture call:
01-01 00:38:47.647 1332 1924 E RequestThread-0: java.lang.RuntimeException: startPreview failed
01-01 00:38:47.647 1332 1924 E RequestThread-0: at android.hardware.Camera.startPreview(Native Method)
01-01 00:38:47.647 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager.startPreview(RequestThreadManager.java:288)
01-01 00:38:47.647 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager.doPreviewCapture(RequestThreadManager.java:330)
01-01 00:38:47.647 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager.-wrap3(RequestThreadManager.java)
01-01 00:38:47.647 1332 1924 E RequestThread-0: at android.hardware.camera2.legacy.RequestThreadManager$5.handleMessage(RequestThreadManager.java:802)
01-01 00:38:47.647 1332 1924 E RequestThread-0: at android.os.Handler.dispatchMessage(Handler.java:98)
01-01 00:38:47.647 1332 1924 E RequestThread-0: at android.os.Looper.loop(Looper.java:148)
01-01 00:38:47.647 1332 1924 E RequestThread-0: at android.os.HandlerThread.run(HandlerThread.java:61)
01-01 00:38:47.712 208 431 W audio_hw_primary: out_set_parameters routing=2, ret 0, out -1243028160
01-01 00:38:47.722 208 430 W audio_hw_primary: ret -32, pcm write 768 error wait error: hw 0x25080 app 0x25680 avail 0x0
01-01 00:38:47.722 208 430 W audio_hw_primary: : Unknown error -32
01-01 00:38:47.899 511 521 I art : Background partial concurrent mark sweep GC freed 18349(1333KB) AllocSpace objects, 26(536KB) LOS objects, 33% free, 5MB/8MB, paused 2.076ms total 134.883ms
01-01 00:38:47.906 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 3 but its state was 0
01-01 00:38:47.966 208 1412 E BufferQueueConsumer: [GraphicBufferSource] releaseBuffer: attempted to release buffer slot 2 but its state was 0
01-01 00:38:48.272 511 525 W ActivityManager: Activity pause timeout for ActivityRecord{fd441d u0 com.android.camera2/com.android.camera.CameraLauncher t7 f}
01-01 00:38:48.367 197 509 E BufferQueueProducer: [com.android.launcher/com.android.launcher2.Launcher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count
01-01 00:38:48.927 1173 1232 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
01-01 00:38:49.466 208 252 I FslCameraHAL: insertExifThumbnailImage. ReplaceThumbnail(). ret=1
01-01 00:38:49.537 1332 1906 I RequestThread-0: Received jpeg.
01-01 00:38:49.537 1332 1906 W CaptureCollector: jpegProduced called with no jpeg request on queue!
01-01 00:38:49.537 1332 1906 E RequestThread-0: Dropping jpeg frame.
01-01 00:38:50.816 208 431 W audio_hw_primary: no standby
Hi Joan,
From my log message. Framerate is 15 and data format is YUYV. Thanks.