Camera dont work on Nexus7. Android 4.2 (Bug #2567)
Description
Camera dont work on Nexus 7. Android 4.2. OpenCV 2.4.3, OpenCV Manager 2.2
11-22 19:28:55.410: I/ActivityManager(446): Start proc com.google.android.apps.maps:FriendService for broadcast com.google.android.apps.maps/com.google.googlenav.friend.android.ServiceReceiver: pid=2086 uid=10034 gids={50034, 3003, 1015, 1028}
11-22 19:28:55.410: I/ActivityManager(446): No longer want com.google.android.gm (pid 1195): empty #17
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): Libraries folder found: /data/app-lib/org.opencv.lib_v24_tegra3-1/
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): CameraWrapperConnector::connectToLib: folderPath=/data/app-lib/org.opencv.lib_v24_tegra3-1/
11-22 19:28:55.430: E/CAMERA_ACTIVITY(2018): ||libnative_camera_r2.3.3.so
11-22 19:28:55.430: E/CAMERA_ACTIVITY(2018): ||libnative_camera_r4.0.3.so
11-22 19:28:55.430: E/CAMERA_ACTIVITY(2018): ||libnative_camera_r4.1.1.so
11-22 19:28:55.430: E/CAMERA_ACTIVITY(2018): ||libnative_camera_r2.2.0.so
11-22 19:28:55.430: E/CAMERA_ACTIVITY(2018): ||libnative_camera_r3.0.1.so
11-22 19:28:55.430: E/CAMERA_ACTIVITY(2018): ||libnative_camera_r4.0.0.so
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): try to load library 'libnative_camera_r4.1.1.so'
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app-lib/org.opencv.lib_v24_tegra3-1/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"..."
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): try to load library 'libnative_camera_r4.0.3.so'
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app-lib/org.opencv.lib_v24_tegra3-1/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"..."
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): try to load library 'libnative_camera_r4.0.0.so'
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app-lib/org.opencv.lib_v24_tegra3-1/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"..."
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): try to load library 'libnative_camera_r3.0.1.so'
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app-lib/org.opencv.lib_v24_tegra3-1/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"..."
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): try to load library 'libnative_camera_r2.3.3.so'
11-22 19:28:55.430: D/CAMERA_ACTIVITY(2018): Loaded library '/data/app-lib/org.opencv.lib_v24_tegra3-1/libnative_camera_r2.3.3.so'
11-22 19:28:55.430: D/OpenCV_NativeCamera(2018): CameraHandler::initCameraConnect(0x69c38061, 0, 0x63ef8770, 0x0)
11-22 19:28:55.430: D/OpenCV_NativeCamera(2018): Connecting to CameraService v 2.3
11-22 19:28:55.450: I/AwesomePlayer(128): setDataSource_l(URL suppressed)
11-22 19:28:55.460: I/Sample::FpsMeter(2018): 40,00 FPS
11-22 19:28:55.470: I/AwesomePlayer(128): setDataSource_l(URL suppressed)
11-22 19:28:55.490: I/CameraClient(128): Opening camera 0
11-22 19:28:55.490: D/dalvikvm(2086): GC_CONCURRENT freed 164K, 5% free 7762K/8092K, paused 2ms+2ms, total 23ms
11-22 19:28:55.490: D/dalvikvm(2086): WAIT_FOR_CONCURRENT_GC blocked 5ms
11-22 19:28:55.500: I/NvOmxCamera(128): HAL_camera_device_open: open camera 0
11-22 19:28:55.510: I/Sample::FpsMeter(2018): 21,00 FPS
11-22 19:28:55.530: E/(128): ioctl SetWhiteBalance failed: 1
11-22 19:28:55.530: E/NvOmxCameraSettingsParser(128): Param type 70 not supported
11-22 19:28:55.530: I/NvOmxCamera(128): HAL_camera_device_open: opened camera 0 (0x418f0500)
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Instantiated new CameraHandler (0x69c38061, 0x63ef8770)
11-22 19:28:55.530: I/OpenCV_NativeCamera(2018): 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
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Cameras: (null)
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Picture Sizes: 320x240,480x480,640x480,800x600,1024x768,1280x720,1280x960
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Picture Formats: jpeg,jfif,exif
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Preview Sizes: 176x144,320x240,352x288,480x480,640x480,704x576,720x408,720x480,720x576,768x432,800x448,960x720,1280x720
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Preview Formats: yuv420p,yuv420sp
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Preview Frame Rates: 5,8,10,15,20,24,25,30
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Thumbnail Sizes: 0x0,320x240
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Whitebalance Modes: auto,incandescent,fluorescent,daylight
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Effects: mono,negative,none,posterize,sepia,aqua,solarize,nv-vivid,nv-emboss
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Scene Modes: (null)
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Focus Modes: fixed
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Antibanding Options: off,auto,50hz,60hz
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Supported Flash Modes: (null)
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): initCameraConnect: preview format is set to yuv420sp
11-22 19:28:55.530: D/OpenCV_NativeCamera(2018): Starting preview
11-22 19:28:55.560: I/Sample::FpsMeter(2018): 23,00 FPS
11-22 19:28:55.580: D/dalvikvm(2086): GC_CONCURRENT freed 214K, 5% free 8054K/8440K, paused 2ms+2ms, total 22ms
11-22 19:28:55.580: D/dalvikvm(2086): WAIT_FOR_CONCURRENT_GC blocked 8ms
11-22 19:28:55.600: D/NvOsDebugPrintf(128): NvMMLiteBlockCreate : Block : BlockType = 1
11-22 19:28:55.600: D/NvOsDebugPrintf(128): NvMMLiteJPEGEncGetBufferRequirements : BufferSize 1843200
11-22 19:28:55.610: I/Sample::FpsMeter(2018): 22,00 FPS
11-22 19:28:55.630: D/(128): Camera fd open as: 128
11-22 19:28:55.640: I/ActivityManager(446): No longer want com.google.android.music:main (pid 1509): empty #17
11-22 19:28:56.110: D/NvOsDebugPrintf(128): Image Physically rotated in DZ
11-22 19:28:56.110: D/NvOsDebugPrintf(128): NvMMExif_Orientation_0_Degrees= 1
11-22 19:28:56.110: D/OpenCV_NativeCamera(2018): Preview started successfully
11-22 19:28:56.110: I/Choreographer(2018): Skipped 41 frames! The application may be doing too much work on its main thread.
11-22 19:28:56.110: I/Sample::FpsMeter(2018): 20,00 FPS
11-22 19:28:56.130: I/Sample::SurfaceView(2018): surfaceCreated
11-22 19:28:56.130: I/Sample::SurfaceView(2018): setupCamera(0, 0)
11-22 19:28:56.130: E/CAMERA_ACTIVITY(2018): calling (*pGetPropertyC)(0x653a6650, 2)
11-22 19:28:56.130: D/OpenCV_NativeCamera(2018): CameraHandler::getProperty(2)
11-22 19:28:56.130: D/OpenCV_NativeCamera(2018): CameraHandler::setProperty(0, 176.000000)
11-22 19:28:56.130: D/OpenCV_NativeCamera(2018): CameraHandler::setProperty(1, 144.000000)
11-22 19:28:56.130: I/Sample::SurfaceView(2018): surfaceChanged
11-22 19:28:56.130: I/Sample::SurfaceView(2018): Starting processing thread
11-22 19:28:56.130: I/Sample::SurfaceView(2018): setupCamera(800, 1172)
11-22 19:28:56.130: D/OpenCV_NativeCamera(2018): CameraHandler::applyProperties()
11-22 19:28:56.130: D/OpenCV_NativeCamera(2018): CameraHandler::applyProperties()
11-22 19:28:56.130: D/OpenCV_NativeCamera(2018): CameraHandler::applyProperties(): before previousCameraHandler->closeCameraConnect
11-22 19:28:56.170: I/Sample::FpsMeter(2018): 20,00 FPS
11-22 19:28:56.200: D/(128): Camera fd close (MI1040)
11-22 19:28:56.220: I/CameraClient(128): Destroying camera 0
11-22 19:28:56.220: W/NvOmxCamera(128): Already called release()
11-22 19:28:56.220: I/Sample::FpsMeter(2018): 20,00 FPS
11-22 19:28:56.220: D/OpenCV_NativeCamera(2018): CameraHandler::applyProperties(): after previousCameraHandler->closeCameraConnect
11-22 19:28:56.220: D/OpenCV_NativeCamera(2018): CameraHandler::applyProperties(): before initCameraConnect
11-22 19:28:56.220: D/OpenCV_NativeCamera(2018): CameraHandler::initCameraConnect(0x69c38061, 0, 0x63ef8770, 0x69562ba4)
11-22 19:28:56.220: D/OpenCV_NativeCamera(2018): Connecting to CameraService v 2.3
11-22 19:28:56.220: I/CameraClient(128): Opening camera 0
11-22 19:28:56.220: I/NvOmxCamera(128): HAL_camera_device_open: open camera 0
11-22 19:28:56.230: E/(128): ioctl SetWhiteBalance failed: -1
11-22 19:28:56.230: E/NvOmxCameraSettingsParser(128): Param type 70 not supported
11-22 19:28:56.230: I/NvOmxCamera(128): HAL_camera_device_open: opened camera 0 (0x418da080)
11-22 19:28:56.230: D/OpenCV_NativeCamera(2018): Instantiated new CameraHandler (0x69c38061, 0x63ef8770)
11-22 19:28:56.230: I/OpenCV_NativeCamera(2018): initCameraConnect: Setting paramers from previous camera handler
11-22 19:28:56.230: D/OpenCV_NativeCamera(2018): Starting preview
11-22 19:28:56.230: D/OpenCV_NativeCamera(2018): CameraHandler destructor is called
11-22 19:28:56.270: D/NvOsDebugPrintf(128): NvMMLiteBlockCreate : Block : BlockType = 1
11-22 19:28:56.270: I/Sample::FpsMeter(2018): 20,00 FPS
11-22 19:28:56.280: D/NvOsDebugPrintf(128): NvMMLiteJPEGEncGetBufferRequirements : BufferSize 1843200
11-22 19:28:56.300: D/(128): Camera fd open as: 128
11-22 19:28:56.790: D/NvOsDebugPrintf(128): Image Physically rotated in DZ
11-22 19:28:56.790: D/NvOsDebugPrintf(128): NvMMExif_Orientation_0_Degrees= 1
11-22 19:28:56.790: D/OpenCV_NativeCamera(2018): Preview started successfully
11-22 19:28:56.790: D/OpenCV_NativeCamera(2018): CameraHandler::applyProperties(): after initCameraConnect, handler=0x68a266f8
11-22 19:28:56.790: E/CAMERA_ACTIVITY(2018): calling (*pGetPropertyC)(0x68a266f8, 0)
11-22 19:28:56.790: D/OpenCV_NativeCamera(2018): CameraHandler::getProperty(0)
11-22 19:28:56.790: E/CAMERA_ACTIVITY(2018): calling (*pGetPropertyC)(0x68a266f8, 1)
11-22 19:28:56.790: D/OpenCV_NativeCamera(2018): CameraHandler::getProperty(1)
11-22 19:28:56.950: D/dalvikvm(892): GC_CONCURRENT freed 542K, 9% free 8991K/9876K, paused 2ms+2ms, total 26ms
11-22 19:28:56.950: D/dalvikvm(892): WAIT_FOR_CONCURRENT_GC blocked 14ms
11-22 19:28:58.370: W/ThrottleService(446): unable to find stats for iface rmnet0
11-22 19:28:59.070: I/ActivityManager(446): No longer want com.google.android.gsf.login (pid 1233): empty #17
: E/(): Device disconnected
Associated revisions
Merge pull request #2567 from apavlenko:fix_compare_scalar
History
Updated by Vadim Pisarevsky over 12 years ago
- Target version set to 2.4.4
- Assignee set to Alexander Smorkalov
- Category set to android
Updated by Alexander Smorkalov over 12 years ago
- Status changed from Open to Done
Updated by Andrey Kamaev over 12 years ago
Tim, please stop posting the same issue several times. The resolution will not be changed because of multiple tickets.
- Status changed from Done to Cancelled
Updated by Cédric Vidal-Duvernet over 12 years ago
Hello Tim,
I have exactly the same error message as you:
11-22 19:28:55.530: E/(128): ioctl SetWhiteBalance failed: -1
11-22 19:28:55.530: E/NvOmxCameraSettingsParser(128): Param type 70 not supported
(Occurs only on Nexus7, in my camera init code)
Have you finally solved this problem ?
Thank you for your feedback.
Updated by TIm Timov about 12 years ago
Hello, Cédric Vidal-Duvernet
Yes, after upgrade OpenCV Manager, problem was fixed