Re: uvcvideo kernel panic when using libv4l

2009-12-16 Thread leandro Costantino
That sould be the correct. Pablo, note that using svv.c with read method as implemented there, should work ok. http://moinejf.free.fr/svv.c On Wed, Dec 16, 2009 at 7:51 AM, Pablo Baena pba...@gmail.com wrote: With that patch, libv4l throws an error at some point, no crashes so far though:

Re: uvcvideo kernel panic when using libv4l

2009-12-16 Thread Laurent Pinchart
Hi Pablo, On Wednesday 16 December 2009 07:51:20 Pablo Baena wrote: With that patch, libv4l throws an error at some point, no crashes so far though: libv4l2: error dequeuing buf: Invalid argument read error 22, Invalid argument Could you please try this updated patch ? diff -r

Re: uvcvideo kernel panic when using libv4l

2009-12-16 Thread Pablo Baena
Yes! This patch worked. So far I got no kernel panic, and image is correct. Will be testing today to see if something comes up, but so far it's doing great. Thank you! On Wed, Dec 16, 2009 at 7:49 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Pablo, On Wednesday 16 December

Re: uvcvideo kernel panic when using libv4l

2009-12-15 Thread Laurent Pinchart
Hi Leandro and Pablo, could you please try the following patch ? It closes a race window that I believe could be at the core of your kernel panic. diff -r c1f376eae978 linux/drivers/media/video/uvc/uvc_queue.c --- a/linux/drivers/media/video/uvc/uvc_queue.c Sat Dec 12 18:57:17 2009 +0100 +++

Re: uvcvideo kernel panic when using libv4l

2009-12-15 Thread Pablo Baena
With that patch, libv4l throws an error at some point, no crashes so far though: libv4l2: error dequeuing buf: Invalid argument read error 22, Invalid argument On Tue, Dec 15, 2009 at 9:12 PM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Leandro and Pablo, could you please try

Re: uvcvideo kernel panic when using libv4l

2009-12-13 Thread Laurent Pinchart
Hi Costantino, thanks for investigating the problem. On Sunday 13 December 2009 08:48:24 lcostant...@gmail.com wrote: There seems to be a 'kind of race', when queue and dequeue buffer as in capture.c (attached on the first mail) it's used. This could be easily detected on a kernel with

Re: uvcvideo kernel panic when using libv4l

2009-12-10 Thread Laurent Pinchart
Hi Pablo, On Monday 07 December 2009 18:18:11 Pablo Baena wrote: I get a kernel panic when running the attached sample code. I run it as: $ gcc capture.c -o capture $ export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so $ ./capture -d/dev/video0 -c1000 -r -r tells it to capture using

Re: uvcvideo kernel panic when using libv4l

2009-12-10 Thread Pablo Baena
Can you tell me how to obtain such backtrace? This is a hard panic and I don't know how to obtain a backtrace, since the keyboard gets unresponsive. On Thu, Dec 10, 2009 at 11:19 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Pablo, On Monday 07 December 2009 18:18:11 Pablo

Re: uvcvideo kernel panic when using libv4l

2009-12-10 Thread Laurent Pinchart
On Thursday 10 December 2009 16:26:19 Pablo Baena wrote: Can you tell me how to obtain such backtrace? This is a hard panic and I don't know how to obtain a backtrace, since the keyboard gets unresponsive. Once the kernel crashes in interrupt context there's not much you can do. One solution