[cpia] webcamII + USB + vic : segmentation fault

Johannes Erdfelt jerdfelt@sventech.com
Wed, 8 Mar 2000 12:20:05 -0500


On Wed, Mar 08, 2000, Nicolas FAIVRET <nicolas.faivret@ago.fr> wrote:
> >I got this when I compiled my kernel for SMP but the CPiA modules were 
> >compiled for UP. 
> 
> Thanks, It works. 
> 
> V4l: trying /dev/video0... ok, CPiA Camera 
> V4l:   color; size: 48x48 => 352x288 
> V4l:   ports: Camera 
> V4l:   depth=0, palette=rgb24 
> V4l:  ==> format { 411 422 cif } size { small cif } port { Camera } 
> V4l: trying /dev/video1... open: Aucun périphérique de ce type 
> V4l: trying /dev/video2... open: Aucun périphérique de ce type 
> V4l: trying /dev/video3... open: Aucun périphérique de ce type 
> v4l: mmap()'ed buffer size = 0xc6000 
> 
> But I can't grab, I get a segmentation fault on 
> 
> void V4lGrabber::start() 
> { 
> ---->>> if (-1 == ioctl(fd_, VIDIOCMCAPTURE, &gb_even)) 
> 
> with gb_even.frame = 0
>      gb_even.height = 288
>      gb_even.width = 352
>      gb_even.format = 7
> 
>      fd_ = 15
> 
> Where can I see the cpia error returned ?
> 
> If someone have a USB webcamII which works fine with vic under linux, 
> I would like to know the linux kernel version to use. 

Check your kernel log (ie run dmesg). A seg fault in ioctl usually means
the kernel oopsed (not always, but usually).

JE