Native camera does not work on Google Nexus 7 with Android 4.2 (Bug #2547)
Description
D/OpenCV::camera( 2514): CvCapture_Android::CvCapture_Android(0) D/OpenCV::camera( 2514): Library name: libopencv_java.so D/OpenCV::camera( 2514): Library base address: 0x69276000 D/OpenCV::camera( 2514): Libraries folder found: /data/app-lib/org.opencv.samples.tutorial2-2/ D/OpenCV::camera( 2514): CameraWrapperConnector::connectToLib: folderPath=/data/app-lib/org.opencv.samples.tutorial2-2/ E/OpenCV::camera( 2514): ||libnative_camera_r2.3.3.so E/OpenCV::camera( 2514): ||libnative_camera_r4.0.3.so E/OpenCV::camera( 2514): ||libnative_camera_r4.1.1.so E/OpenCV::camera( 2514): ||libnative_camera_r2.2.0.so E/OpenCV::camera( 2514): ||libnative_camera_r3.0.1.so E/OpenCV::camera( 2514): ||libnative_camera_r4.0.0.so D/OpenCV::camera( 2514): try to load library 'libnative_camera_r4.1.1.so' D/OpenCV::camera( 2514): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app-lib/org.opencv.samples.tutorial2-2/libnative_camera_r4.1.1.so, dlerror="Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "_ZN7android11BufferQueueC1Ebi" referenced by "libnative_camera_r4.1.1.so"..." D/OpenCV::camera( 2514): try to load library 'libnative_camera_r4.0.3.so' D/OpenCV::camera( 2514): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app-lib/org.opencv.samples.tutorial2-2/libnative_camera_r4.0.3.so, dlerror="Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "_ZN7android14SurfaceTextureC1Ejbjb" referenced by "libnative_camera_r4.0.3.so"..." D/OpenCV::camera( 2514): try to load library 'libnative_camera_r4.0.0.so' D/OpenCV::camera( 2514): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app-lib/org.opencv.samples.tutorial2-2/libnative_camera_r4.0.0.so, dlerror="Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "_ZN7android14SurfaceTextureC1Ejbj" referenced by "libnative_camera_r4.0.0.so"..." D/OpenCV::camera( 2514): try to load library 'libnative_camera_r3.0.1.so' D/OpenCV::camera( 2514): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app-lib/org.opencv.samples.tutorial2-2/libnative_camera_r3.0.1.so, dlerror="Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "_ZN7android14SurfaceTextureC1Ej" referenced by "libnative_camera_r3.0.1.so"..." D/OpenCV::camera( 2514): try to load library 'libnative_camera_r2.3.3.so' D/OpenCV::camera( 2514): Loaded library '/data/app-lib/org.opencv.samples.tutorial2-2/libnative_camera_r2.3.3.so' D/OpenCV_NativeCamera( 2514): CameraHandler::initCameraConnect(0x695d0d39, 0, 0x68c6e6e8, 0x0) D/OpenCV_NativeCamera( 2514): Connecting to CameraService v 2.3 I/AwesomePlayer( 128): setDataSource_l(URL suppressed) I/AwesomePlayer( 128): setDataSource_l(URL suppressed) I/CameraClient( 128): Opening camera 0 I/NvOmxCamera( 128): HAL_camera_device_open: open camera 0 E/ ( 128): ioctl SetWhiteBalance failed: -1 E/NvOmxCameraSettingsParser( 128): Param type 70 not supported I/NvOmxCamera( 128): HAL_camera_device_open: opened camera 0 (0x412d3288) D/OpenCV_NativeCamera( 2514): Instantiated new CameraHandler (0x695d0d39, 0x68c6e6e8) I/OpenCV_NativeCamera( 2514): initCameraConnect: [antibanding=off;antibanding-values=off,auto,50hz,60hz;auto-exposure-lock=false;auto-exposure-lock-supported=true;auto-exposure-lock-values=false,true;auto-whitebalance-lock=false;auto-whitebalance-lock-supported=true;auto-whitebalance-lock-values=false,true;effect=none;effect-values=mono,negative,none,posterize,sepia,aqua,solarize,nv-vivid,nv-emboss;exposure-compensation=0;exposure-compensation-step=0.1;focal-length=2.080;focus-distances=0.95,1.9,Infinity;focus-mode=fixed;focus-mode-values=fixed;horizontal-view-angle=72.600;jpeg-quality=95;jpeg-thumbnail-height=240;jpeg-thumbnail-quality=90;jpeg-thumbnail-size-values=0x0,320x240;jpeg-thumbnail-width=320;max-exposure-compensation=20;max-num-detected-faces-hw=0;max-num-focus-areas=0;max-num-metering-areas=0;max-zoom=28;metering-areas=(0,0,0,0,0);min-exposure-compensation=-20;nv-flip-preview=off;nv-flip-preview-values=off,vertical,horizontal,both;nv-flip-still=off;nv-flip-still-values=off,vertical,horizontal,both;picture-format=jpeg;picture- D/OpenCV_NativeCamera( 2514): Supported Cameras: (null) D/OpenCV_NativeCamera( 2514): Supported Picture Sizes: 320x240,480x480,640x480,800x600,1024x768,1280x720,1280x960 D/OpenCV_NativeCamera( 2514): Supported Picture Formats: jpeg,jfif,exif D/OpenCV_NativeCamera( 2514): Supported Preview Sizes: 176x144,320x240,352x288,480x480,640x480,704x576,720x408,720x480,720x576,768x432,800x448,960x720,1280x720 D/OpenCV_NativeCamera( 2514): Supported Preview Formats: yuv420p,yuv420sp D/OpenCV_NativeCamera( 2514): Supported Preview Frame Rates: 5,8,10,15,20,24,25,30 D/OpenCV_NativeCamera( 2514): Supported Thumbnail Sizes: 0x0,320x240 D/OpenCV_NativeCamera( 2514): Supported Whitebalance Modes: auto,incandescent,fluorescent,daylight D/OpenCV_NativeCamera( 2514): Supported Effects: mono,negative,none,posterize,sepia,aqua,solarize,nv-vivid,nv-emboss D/OpenCV_NativeCamera( 2514): Supported Scene Modes: (null) D/OpenCV_NativeCamera( 2514): Supported Focus Modes: fixed D/OpenCV_NativeCamera( 2514): Supported Antibanding Options: off,auto,50hz,60hz D/OpenCV_NativeCamera( 2514): Supported Flash Modes: (null) D/OpenCV_NativeCamera( 2514): initCameraConnect: preview format is set to yuv420sp D/OpenCV_NativeCamera( 2514): Starting preview D/NvOsDebugPrintf( 128): NvMMLiteBlockCreate : Block : BlockType = 1 D/NvOsDebugPrintf( 128): NvMMLiteJPEGEncGetBufferRequirements : BufferSize 1843200 D/ ( 128): Camera fd open as: 125 D/NvOsDebugPrintf( 128): Image Physically rotated in DZ D/NvOsDebugPrintf( 128): NvMMExif_Orientation_0_Degrees= 1 D/OpenCV_NativeCamera( 2514): Preview started successfully E/OpenCV::camera( 2514): calling (*pGetPropertyC)(0x68c6ec18, 2) D/OpenCV_NativeCamera( 2514): CameraHandler::getProperty(2) D/dalvikvm( 2514): GC_FOR_ALLOC freed 63K, 3% free 7425K/7640K, paused 19ms, total 19ms I/dalvikvm-heap( 2514): Grow heap (frag case) to 8.976MB for 1658896-byte allocation D/dalvikvm( 2514): GC_FOR_ALLOC freed 1K, 3% free 9044K/9264K, paused 14ms, total 14ms D/OpenCV_NativeCamera( 2514): CameraHandler::setProperty(0, 720.000000) D/OpenCV_NativeCamera( 2514): CameraHandler::setProperty(1, 576.000000) I/NativeCameraView( 2514): Selected camera frame size = (720, 576) D/OpenCV_NativeCamera( 2514): CameraHandler::applyProperties() D/OpenCV_NativeCamera( 2514): CameraHandler::applyProperties() D/OpenCV_NativeCamera( 2514): CameraHandler::applyProperties(): before previousCameraHandler->closeCameraConnect I/Choreographer( 2514): Skipped 50 frames! The application may be doing too much work on its main thread. D/dalvikvm( 2514): GC_CONCURRENT freed 2K, 3% free 9046K/9264K, paused 3ms+2ms, total 26ms D/ ( 128): Camera fd close (MI1040) I/ActivityManager( 481): Displayed org.opencv.samples.tutorial2/.Sample2NativeCamera: +1s51ms I/CameraClient( 128): Destroying camera 0 W/NvOmxCamera( 128): Already called release() D/OpenCV_NativeCamera( 2514): CameraHandler::applyProperties(): after previousCameraHandler->closeCameraConnect D/OpenCV_NativeCamera( 2514): CameraHandler::applyProperties(): before initCameraConnect D/OpenCV_NativeCamera( 2514): CameraHandler::initCameraConnect(0x695d0d39, 0, 0x68c6e6e8, 0x69c62ba4) D/OpenCV_NativeCamera( 2514): Connecting to CameraService v 2.3 I/CameraClient( 128): Opening camera 0 I/NvOmxCamera( 128): HAL_camera_device_open: open camera 0 E/ ( 128): ioctl SetWhiteBalance failed: -1 E/NvOmxCameraSettingsParser( 128): Param type 70 not supported I/NvOmxCamera( 128): HAL_camera_device_open: opened camera 0 (0x42188140) D/OpenCV_NativeCamera( 2514): Instantiated new CameraHandler (0x695d0d39, 0x68c6e6e8) I/OpenCV_NativeCamera( 2514): initCameraConnect: Setting paramers from previous camera handler D/OpenCV_NativeCamera( 2514): CameraHandler destructor is called D/OpenCV_NativeCamera( 2514): Starting preview D/NvOsDebugPrintf( 128): NvMMLiteBlockCreate : Block : BlockType = 1 D/NvOsDebugPrintf( 128): NvMMLiteJPEGEncGetBufferRequirements : BufferSize 1843200 D/ ( 128): Camera fd open as: 125 D/NvOsDebugPrintf( 128): Image Physically rotated in DZ D/NvOsDebugPrintf( 128): NvMMExif_Orientation_0_Degrees= 1 D/OpenCV_NativeCamera( 2514): Preview started successfully D/OpenCV_NativeCamera( 2514): CameraHandler::applyProperties(): after initCameraConnect, handler=0x68c6b780 E/OpenCV::camera( 2514): calling (*pGetPropertyC)(0x68c6b780, 0) D/OpenCV_NativeCamera( 2514): CameraHandler::getProperty(0) E/OpenCV::camera( 2514): calling (*pGetPropertyC)(0x68c6b780, 1) D/OpenCV_NativeCamera( 2514): CameraHandler::getProperty(1) D/Finsky ( 1252): [1] 5.onFinished: Installation state replication succeeded. W/ThrottleService( 481): unable to find stats for iface rmnet0
Associated revisions
History
Updated by Alexander Smorkalov over 12 years ago
- Description changed from D/OpenCV::camera( 2514): CvCapture_Android::CvCapture_Android(0) D/OpenCV::ca... to <pre> D/OpenCV::camera( 2514): CvCapture_Android::CvCapture_Android(0) ... More
Updated by Andrey Kamaev over 12 years ago
- Target version set to 2.4.4
- Status changed from Open to Done
Updated by Cédric Vidal-Duvernet about 12 years ago
Hello Andrey,
On 2012/11/21, in your your activity, I can read: "Bug #2547 (Done): Native camera does not work on Google Nexus 7 with Android 4.2"
But I do not know which (precise) change was made to fix it.
Could you please detail me your fix ?
Thank you.
Updated by Andrey Kamaev about 12 years ago
Cédric, the fix is associated with this issue.
Updated by Andrey Kamaev about 12 years ago
- Target version changed from 2.4.4 to 2.4.3.1