Hi, I trying to use the Qualcomm (libqcamera) Camera HAL to connect to camera. I used the static function openCameraHardware() of ui/ CameraHardwareInterface.h to connect to the camera but I get segmentation fault.
Following is the code that I used - sp<android::CameraHardwareInterface> chi; chi= android::openCameraHardware(); Following is the crash dump -- V/QualcommCameraHardware( 398): createInstance: E V/QualcommCameraHardware( 398): constructor EX V/QualcommCameraHardware( 398): setParameters: E params = 0xbece13d8 V/QualcommCameraHardware( 398): requested size 480 x 320 V/QualcommCameraHardware( 398): actual size 480 x 320 V/QualcommCameraHardware( 398): initCameraParameters: E V/QualcommCameraHardware( 398): loading libqcamera V/QualcommCameraHardware( 398): waiting for REX to initialize. V/QualcommCameraHardware( 398): Received REX-ready signal. V/QualcommCameraHardware( 398): REX is ready. V/QualcommCameraHardware( 398): starting REX emulation V/QualcommCameraHardware( 398): init camera: waiting for QCS_IDLE I/DEBUG ( 32): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 32): Build fingerprint: 'htc_asia_india/htc_magic/ sapphire/sapphire:1.5/2.16.720.2/38755:user/release-keys' I/DEBUG ( 32): pid: 398, tid: 404 >>> com.marakana <<< I/DEBUG ( 32): signal 11 (SIGSEGV), fault addr 0000081a I/DEBUG ( 32): r0 a94aa8a8 r1 0000081a r2 a94aa8a8 r3 00000008 I/DEBUG ( 32): r4 a94aa8a8 r5 a94c77dc r6 a94cea3c r7 bece12dc I/DEBUG ( 32): r8 45253e38 r9 afe39dd0 10 a949bec1 fp 00000001 I/DEBUG ( 32): ip a94c78ec sp 45353e1c lr a9419a4f pc afe1b97c cpsr 80000030 I/DEBUG ( 32): #00 pc 0001b97c /system/lib/libc.so I/DEBUG ( 32): #01 pc 00019a4c /system/lib/ libqcamera.so I/DEBUG ( 32): #02 pc 00093396 /system/lib/ libqcamera.so I/DEBUG ( 32): #03 pc 00094094 /system/lib/ libqcamera.so I/DEBUG ( 32): #04 pc 0008ab58 /system/lib/ libqcamera.so I/DEBUG ( 32): #05 pc 0009b4d0 /system/lib/ libqcamera.so I/DEBUG ( 32): #06 pc 0009b71a /system/lib/ libqcamera.so I/DEBUG ( 32): #07 pc 0009bf08 /system/lib/ libqcamera.so I/DEBUG ( 32): #08 pc 0000f880 /system/lib/libc.so I/DEBUG ( 32): #09 pc 0000f3f4 /system/lib/libc.so I/DEBUG ( 32): stack: I/DEBUG ( 32): 45353ddc 00000000 I/DEBUG ( 32): 45353de0 00000000 I/DEBUG ( 32): 45353de4 00000000 Regards Mayank -- You received this message because you are subscribed to the Google Groups "Android Discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-discuss?hl=en.
