QuickCam Team Forums

Full Version: uvcdynctrl: segmentation fault
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

my problem is partially solved.

I was now able to use the r178 driver and compile uvcdynctrl of libwebcam-0.1.1.

After changing as described in http://www.lavrsen.dk/twiki/bin/view/Mot...x29x112921
motion Version 3.2.10 works.
I can now use the motor controls and do get a 320x240 sized picture.
A /dev/video device ist not needed for this.

However "uvcdynctrl -c" still dies with a segmentation fault:
Listing available controls for device video0:
Segmentation fault

-- Willi

Hello,

I am trying to get a Logitech Sphere MP (046d:08cc) working on debian etch (NSLU2, ARM architecture).

The current UVC driver from berlios works fine. I am able to get a picture using uvccapture-0.4:
./uvccapture -x640 -y480 -q100

Now I want to control the motors and spin the camera.....

However I do have problems with libwebcam-0.1.1:

- I can not compile it,, if I will use the header files from the current UVC driver:

libwebcam-0.1.1/Libs/libwebcam/libwebcam.c: In function 'get_control_id_from_v4l2':
libwebcam-0.1.1/Libs/libwebcam/libwebcam.c:1683: error: 'V4L2_CID_PANTILT_RESET' undeclared (first use in this function)
libwebcam-0.1.1/Libs/libwebcam/libwebcam.c:1683: error: (Each undeclared identifier is reported only once
libwebcam-0.1.1/Libs/libwebcam/libwebcam.c:1683: error: for each function it appears in.)
libwebcam-0.1.1/Libs/libwebcam/libwebcam.c:1688: error: 'V4L2_CID_WHITE_BALANCE_TEMPERATURE_AUTO' undeclared (first use in this function)

- If I use an older version of the UVC drivers (I habe tried r178 and r195) both UVC driver and uvcdynctrl compiles correctly, but after using the new module the camera is not longer detected and usable (not supported by r178 and r195).

- Loading the new current UVC driver module and compiling libwebcam usin g the r178 header files, I do get the following when invoking uvcdynctrl :

server2:/data1/download/webcam/libwebcam-0.1.1/build/Apps/uvcdynctrl# ./uvcdynctrl -vc
[libwebcam] Unknown V4L2 control ID encountered: 10094849
[libwebcam] Unknown V4L2 control ID encountered: 10094850
[libwebcam] Unknown V4L2 control ID encountered: 10094851
Listing available controls for device video0:
Segmentation fault

Strange is that there is no /dev/video device.

dmesg shows:
Linux video capture interface: v2.00
uvcvideo: Found UVC 1.00 device <unnamed> (046d:08cc)
input: UVC Camera (046d:08cc) as /class/input/input12

What can I do?
Any chance to get a new version for libwebcam?

Any help is appreciated.

-- Willi
Hi Willi,

Glad to hear you got at least some of it working. Do you have a crash dump you could send me? Or can you run uvcdynctrl through gdb and tell me where it crashed?
Hello Community

I installed today Debian's Lenny (2.6.26-1) on my ARM-based NSLU2 as 'server' for my 'Logitech Quickcam Sphere AF':
Bus 001 Device 011: ID 046d:0994 Logitech, Inc. QuickCam Orbit/Sphere AF.

After that I compiled and installed r178 uvcvideo.ko and also the libwebcam (0.1.1 and after the trunk). I have imported the newest logitech.xml.
-> Streaming by uvc-streamer works but NOT the motor control by uvc-streamer / libwebcam.

As already described by Willi before I also get a "segmentation fault" failure when I execute the uvcdynctrl -c. Ie gathering the supplied formats (-f) works well.

Because I can't run X11 on my ARM machine I am not able to debug the program in a proper way. I set some printf's and found out that the crash is in the following command:

ret = c_enum_controls(handle, *controls, &req_size, &local_count);

Could you advise me how to make a crash dump or other things I can provide for this problem.

Thank you.
Remo
Reference URL's