Web lists-archives.com

Re: [Spca50x-devs] webcam recognized by driver but freeze the apps




Le vendredi 6 avril 2007 09:33, vous avez écrit :
> Hello Emmanuel,
>
> It seems from the logs of spcaview that a system break occured, which is
> usually caused by pressing ctrl-c.  Did you try pressing ctrl-c or does
> this debug data output by itself?

I did press ctrl-c to stop the process otherwise it would be still running...
What surprise me is that it said 2 frames decoded whether i let it run 2s or 
10min.

> Also, did you try running the programs as root instead of a normal user. 
> Sometimes, the drivers create restricted device files.
Yes i tried as root.Actually,the logs i sended are the result of program 
running as root.

> Buck
>
>
>
> emmanuel simonnet <manusim1@xxxxxxx> wrote: Sorry,i send the message too
> fast.
>
> Here is the result of syslog :
>
> Apr  5 19:59:44 ordimanu kernel: usb 3-4.1: new full speed USB device using
> ehci_hcd and address 3
> Apr  5 19:59:44 ordimanu kernel: usb 3-4.1: configuration #1 chosen from 1
> choice
> Apr  5 19:59:45 ordimanu kernel: Linux video capture interface: v1.00
> Apr  5 19:59:45 ordimanu
> kernel: /home/manu/dwnld/gspcav1-20070110/gspca_core.c: USB SPCA5XX camera
> found.(SPCA561A)
> Apr  5 19:59:45 ordimanu
> kernel: /home/manu/dwnld/gspcav1-20070110/gspca_core.c:
> [spca5xx_probe:3983] Camera type S561
> Apr  5 19:59:45 ordimanu
> kernel: /home/manu/dwnld/gspcav1-20070110/gspca_core.c:
> [spca5xx_getcapability:1189] maxw 352 maxh 288 minw 160 minh 120
> Apr  5 19:59:45 ordimanu kernel: usbcore: registered new driver gspca
> Apr  5 19:59:45 ordimanu
> kernel: /home/manu/dwnld/gspcav1-20070110/gspca_core.c: gspca driver
> 01.00.12 registered
> Apr  5 20:00:00 ordimanu ntpd[6400]: synchronized to LOCAL(0), stratum=10
> Apr  5 20:00:00 ordimanu ntpd[6400]: kernel time sync disabled 0041
> Apr  5 20:00:49 ordimanu
> kernel: /home/manu/dwnld/gspcav1-20070110/Sunplus/spca561.h:
> [spca561_init:493] Find spca561 USB Product ID 561
> Apr  5 20:00:49 ordimanu
> kernel: /home/manu/dwnld/gspcav1-20070110/gspca_core.c:
> [spca5xx_set_light_freq:1858] Sensor currently not support light frequency
> banding filters.
> Apr  5 20:00:49 ordimanu
> kernel: /home/manu/dwnld/gspcav1-20070110/gspca_core.c:
> [gspca_set_isoc_ep:881] ISO EndPoint found 0x81 AlternateSet 13
> Apr  5 20:00:49 ordimanu
> kernel: /home/manu/dwnld/gspcav1-20070110/gspca_core.c:
> [gspca_set_isoc_ep:881] ISO EndPoint found 0x81 AlternateSet 13
>
> the result of log/messages and the log of spcaview are in the joined files
>
> Le jeudi 5 avril 2007 14:12, vous avez écrit :
> > Hello Emmanuel,
> >
> >   Sorry, but there aren't any logs in this email.  Unless you are saying
> > that no logs are printed out.  /log/messages and /log/syslog would both
> > be useful.
> >
> >   Buck
> >
> > emmanuel simonnet  wrote:
> >
> >   Le jeudi 5 avril 2007 05:58, vous avez écrit :
> > > Hello Emmanuel,
> > >
> > > It is strange, because I did manage to run spcaview and the camera does
> > > work. My problem so far only occured with Kopete, but I did not try to
> > > run it on many programs yet so it is hard to tell to what extent the
> > > problem is.
> > >
> > > For your problem, I think perhaps that there is a Kernel mismatch issue
> > > that while the device-driver modules loads into the kernel, it cannot
> > > use it properlly.
> > >
> > > Try doing tail -f /var/log/syslog in a console while starting the
> > > program and see if anything comes up.
> >
> > Here is the answer of var/log/messages while starting spcaview
> >
> > What hint could you get?
> >
> > Thanks for any help
> >
> > > Later,
> > > Buck
> > >
> > > emmanuel simonnet wrote:
> > > Hello,
> > > At least i'm not alone.Though,my pb seems a little bit different.My cam
> > > doesn't freeze the system but only the program running it,and whatever
> > > program it is.I tried kopete,camorama,camstream,ekiga,spcaview with
> > > still the same pb: the camera red light ignites and the program
> > > freezes.
> > >
> > > Does your camera works with other program?
> > >
> > > Le mercredi 4 avril 2007 17:05, vous avez écrit :
> > > > Hello Emmanuel!
> > > >
> > > > I am using Logitech Traveler Quickcam and whenever I try to configure
> > > > it in Kopete, a KDE utlity, the entire system freezes. This happens
> > > > both under root and user logins.
> > > >
> > > > I still have not found a solution.
> > > >
> > > > Buck
> > > >
> > > > emmanuel simonnet wrote:
> > > > Hi
> > > >
> > > > Anyone knows what the pb could be?
> > > > I don't know what to try.
> > > >
> > > > Thanks
> > > >
> > > > Le samedi 31 mars 2007 08:40, emmanuel simonnet a écrit :
> > > > > Hi
> > > > >
> > > > > I have a no-brand webcam id 04fc:0561 recognized as a Sunplus
> > > > > Flexcam 100.As this type of cam is in the list of cams supported by
> > > > > the driver,i installed gspca on my system (Mandriva 2007.0 kernel
> > > > > 2.6.17-5). The cam is recognized by the driver (spca561) but every
> > > > > app i tried freeze.
> > > > >
> > > > > The output of spcaview looks like it takes only 2 frames and wait.
> > > > >
> > > > > I join the output of var/log/messages with debug=4.
> > > > >
> > > > > Any help to solve this pb would be appreciated.If you need any
> > > > > other info or test,just ask
> > > > >
> > > > > Thanks
> > > > > Emmanuel
> > > >
> > > > ---------------------------------------------------------------------
> > > >-- -- Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > > share your opinions on IT & business topics through brief surveys-and
> > > > earn cash
> > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DE
> > > >VD EV _______________________________________________
> > > > Spca50x-devs mailing list
> > > > Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
> > > > https://lists.sourceforge.net/lists/listinfo/spca50x-devs
> > > >
> > > >
> > > >
> > > > ---------------------------------
> > > > Finding fabulous fares is fun.
> > > > Let Yahoo! FareChase search your favorite travel sites to find flight
> > > > and hotel bargains.
> > >
> > > ---------------------------------
> > > Looking for earth-friendly autos?
> > > Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
> >
> > ---------------------------------
> > We won't tell. Get more on shows you hate to love
> > (and love to hate): Yahoo! TV's Guilty Pleasures list.
>
> Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_open:1894] opening
> Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca50x_alloc:1653]
> entered Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca50x_alloc:1673]
> frame[0] @ fab01000 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca50x_alloc:1673]
> frame[1] @ fac2d008 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca50x_alloc:1679]
> leaving Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/Sunplus/spca561.h: [spca561_init:493]
> Find spca561 USB Product ID 561 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_setMode:1259]
> spca5xx set mode asked w 320 h 240 p 4 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_setMode:1338]
> Found code 1 method 0 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_setMode:1340] Soft
> Win width height 320 x 240 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_setMode:1342] Hard
> Win width height 320 x 240 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c:
> [spca5xx_set_light_freq:1858] Sensor currently not support light frequency
> banding filters. Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [gspca_init_transfert:957]
> get iso nbalt 13 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [gspca_set_isoc_ep:866]
> enter get iso ep Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [gspca_set_isoc_ep:873]
> test ISO EndPoint  129 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [gspca_set_isoc_ep:881] ISO
> EndPoint found 0x81 AlternateSet 13 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [gspca_init_transfert:964]
> packet size 845 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [gspca_init_transfert:1011]
> Submit URB Now Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_open:1940] Open
> done Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x803C7601 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2004]
> VIDIOCGCAP e5595e14 : Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0xC0307602 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x40307603 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0xC0307602 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x80887614 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2180]
> VIDIOCGMBUF: f6695080 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_mmap:2491] mmap:
> 2461696 (259000) bytes Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x40107613 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2193]
> CMCAPTURE Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2195] CM
> frame: 0, size: 320x240, format: 15 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x40107613 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2193]
> CMCAPTURE Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2195] CM
> frame: 1, size: 320x240, format: 15 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x800E7606 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2078]
> VIDIOCGPICT: depth=12, palette=4 Mar 31 08:31:09 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/Sunplus/spca561.h:
> [spca561_getcontrast:729] get contrast 38464 Mar 31 08:31:09 ordimanu
> kernel:
> Mar 31 08:31:10 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x400E7607 Mar 31 08:31:10 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2090]
> VIDIOCSPICT Mar 31 08:31:10 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2097]
> Setting depth=24, palette=15 Mar 31 08:31:10 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x40047612 Mar 31 08:31:10 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2273]
> syncing to frame 0, grabstate = 1 Mar 31 08:31:12 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x40107613 Mar 31 08:31:12 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2193]
> CMCAPTURE Mar 31 08:31:12 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2195] CM
> frame: 0, size: 320x240, format: 15 Mar 31 08:31:12 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x40047612 Mar 31 08:31:12 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2273]
> syncing to frame 1, grabstate = 1 Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:1997]
> do_IOCtl: 0x40107613 Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2193]
> CMCAPTURE Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_do_ioctl:2195] CM
> frame: 1, size: 320x240, format: 15 Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_close:1957]
> spca50x_close Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca50x_stop_isoc:1128]
> *** Stopping capture *** Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca50x_isoc_irq:1095]
> device not open Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca50x_stop_isoc:1133]
> *** Capture stopped *** Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_dealloc:1699]
> entered dealloc Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_dealloc:1712]
> buffer memory deallocated Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_dealloc:1715]
> leaving dealloc Mar 31 08:31:13 ordimanu kernel:
> /home/manu/dwnld/gspcav1-20070110/gspca_core.c: [spca5xx_close:1974]
> Release ressources done [user@localhost ~] spcaview -s 320x240
>  Spcaview version: 1.1.4 date: 27:11:2005 (C) mxhaard@xxxxxxxx
>  size width: 320 height: 240
> Initializing SDL.
> SDL initialized.
> bpp 3 format 15
> Using video device /dev/video0.
> Initializing v4l.
> **************** PROBING CAMERA *********************
> Camera found: Flexcam 100 Camera
> Bridge found: SPCA561
> Bridge find SPCA561 number 9
> StreamId: GBRG Camera
> Bridge find SPCA561 number 9
> Available Resolutions width 352  heigth 288 native
> Available Resolutions width 320  heigth 240 native *
> Available Resolutions width 176  heigth 144 native
> Available Resolutions width 160  heigth 120 native
> unable to probe size !!
> *****************************************************
>  grabbing method default MMAP asked
> VIDIOCGMBUF size 2457616  frames 2  offets[0]=0 offsets[1]=1228808
> VIDIOCGPICT
> brightnes=1920 hue=0 color=0 contrast=38464 whiteness=0
> depth=12 palette=15
> VIDIOCSPICT
> brightness=1920 hue=0 color=0 contrast=38464 whiteness=0
> depth=24 palette=15
>
> cvsync err
>
> : Interrupted system call
>
> cvsync err
>
> : Interrupted system call
>
> Used 10121ms for 2 images => 5060ms/image 0fps.
> Quiting SDL.
> Decoded frames:2 Average decode time: 0.000000
> unmapping
> closing
> closed
> Destroy Picture thread ...
> Quiting....
>
>
>
> ---------------------------------
> Don't get soaked.  Take a quick peek at the forecast
>  with theYahoo! Search weather shortcut.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs