On Wednesday 06 February 2008, Jean-Christophe Jice Cardot wrote:
> ok here it is. xawtv crash with uvcvideo rel 173, webcam philips spc1000nc.
>
> the crash must be a bug in xawtv (?). In libng/grab-ng.c, line 235 says:
> for (i = 0; attr->choices[i].str != NULL; i++)
>
> but for one of the attr(ibutes), attr->choices is NULL, which leads to
> segfault. For information, the attribute's name is "Exposure, Auto" (which
> must be different from another attribute whose name is "Exposure, Auto
> Priority" and whose possible values are true/false).
>
> this attribute comes from the following v4l init code (add_attrs):
>
> static void
> grabber_init(void)
> {
> drv = ng_vid_open(ng_dev.video,NULL,NULL,0,&h_drv);
> if (NULL == drv) {
> fprintf(stderr,"no grabber device available\n");
> exit(1);
> }
> f_drv = drv->capabilities(h_drv);
> add_attrs(drv->list_attrs(h_drv));
> }
>
> where list_attrs is :
> static struct ng_attribute* v4l2_attrs(void *handle)
> {
> struct v4l2_handle *h = handle;
> return h->attr;
> }
>
> hence the faulty attribute comes directly from the driver (if I get it
> right). Is it normal that the attribute has no possible choice (so it would
> be an xawtv bug) or could it be a driver's bug? (I must admit I'm stuck
> there...)
xawtv shouldn't crash, but it might be a problem in the driver. Could you
please try with SVN r179 (or newer) ?
Best regards,
Laurent Pinchart
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel