Page 1 of 1

ov511 based camera + buffer overrun

Posted: Sat Apr 03, 2004 3:12 pm
by luke_mac
Hi

I get the following in /var/log/messages:

Apr 5 00:49:10 shark zmc-d0[21195]: INF [Study: 86000 - Capturing at 2.99 fps]
Apr 5 00:49:10 shark zmc-d0[21195]: WAR [Buffer overrun at index 0 ]
Apr 5 00:49:44 shark zmc-d0[21195]: WAR [Buffer overrun at index 0 ]
...
Apr 5 00:50:17 shark zmc-d0[21195]: WAR [Buffer overrun at index 0 ]
Apr 5 00:50:51 shark zmc-d0[21195]: WAR [Buffer overrun at index 0 ]

The buffer overrun occurs at various index values. In this instance it was at 0.

There are no images produced the images directory, nor any events in the events directory.
I have verified that the camera works in XawTV.

I had to set 'Whether to allow errors in setting video config to be fatal' to 'no' as this was causing a seg. fault in zmc when it tries VIDIOCSWIN ioctl. Having this set to 'yes' caused the following messages would appear in the log:

Apr 5 01:08:27 shark zma-m1[13644]: ERR [Shared memory not initialised by capture daemon]
Apr 4 11:08:27 shark kernel: drivers/usb/media/ov511.c: Requested dimensions are too small
Apr 5 01:08:27 shark zmc-d0[13645]: ERR [Failed to set window attributes: Invalid argument]

Any help would be appreciated.
Luke

Re: ov511 based camera + buffer overrun

Posted: Sat Apr 03, 2004 3:21 pm
by luke_mac
Correction - zmc would exit with status 255 (not seg. fault), however zma is the one that seg. faults:
Program received signal SIGSEGV, Segmentation fault.

0x08050259 in Zone::CheckAlarms(Image const*) (this=0xc8ab2b0,
delta_image=0xc8ab1b8) at zm_zone.cpp:111
111 if ( (*pdiff > min_pixel_threshold) && (!max_pixel_threshold || (*pdiff < max_pixel_threshold)) )
Current language: auto; currently c++
(gdb)
(gdb)
(gdb) where
#0 0x08050259 in Zone::CheckAlarms(Image const*) (this=0xc8ab2b0,
delta_image=0xc8ab1b8) at zm_zone.cpp:111
#1 0x0805b22d in Monitor::Compare(Image const&) (this=0xc89f3b0,
comp_image=@0xc8aac18) at zm_monitor.cpp:1392
#2 0x08058528 in Monitor::Analyse() (this=0xc89f3b0) at zm_monitor.cpp:654
#3 0x0804a9a2 in main (argc=3, argv=0xbffff994) at zma.cpp:161

Thanks
Luke