Problem: real-time image showing ok, but motion not detect

Support and queries relating to all previous versions of ZoneMinder
Locked
Inferno
Posts: 17
Joined: Sun Jan 30, 2005 4:26 pm
Location: Nizhny Novgorod, Russia
Contact:

Problem: real-time image showing ok, but motion not detect

Post by Inferno »

FC3
ZM 1.20.1
Apache/2.0.52
PHP 4.3.9 (cgi)

Cards in PCI bus:
1. FlyVideo 98 EZ - work OK
2. FlyVideo 98 EZ - Show real-time image ok, but not motion detect
3. Pinnacle PCTV PRO - work OK

ZM 1.20.0 and ZM 1.19.5 - work good

ZM 1.20.1 - worked as far as days without any problems

recompiling dont give result :(

==> /tmp/zmdc.log <==
*** glibc detected *** free(): invalid pointer: 0xf602d008 ***
'zma -m 5' died at 05/02/11 13:12:47, signal 6
*** glibc detected *** double free or corruption: 0xf602d008 ***
'zma -m 2' died at 05/02/11 13:12:50, signal 6
Starting pending process, zma -m 5
'zma -m 5' started at 05/02/11 13:12:57
'zma -m 5' starting at 05/02/11 13:12:57, pid = 9612
Starting pending process, zma -m 2
'zma -m 2' starting at 05/02/11 13:13:00, pid = 9615
'zma -m 2' started at 05/02/11 13:13:00
*** glibc detected *** free(): invalid pointer: 0xf602d008 ***
'zma -m 5' died at 05/02/11 13:13:03, signal 6
*** glibc detected *** double free or corruption: 0xf602d008 ***
'zma -m 2' died at 05/02/11 13:13:06, signal 6

==> /var/log/messages <==
Feb 11 13:12:36 berlin kernel: bttv2: OCERR @ 0b556000,bits: HSYNC OFLOW OCERR*
Feb 11 13:12:37 berlin zma_m4[9546]: INF [Box_Obzor1: 058 - Gone into alert state]
Feb 11 13:12:40 berlin zma_m4[9546]: INF [Box_Obzor1: 068 - Left alarm state (3875) - 39(14) images]
Feb 11 13:12:44 berlin zma_m5[9607]: INF [Debug Level = 0, Debug Log = <none>]
Feb 11 13:12:44 berlin zma_m5[9607]: INF [Warming up]
Feb 11 13:12:44 berlin zma_m2[9608]: INF [Debug Level = 0, Debug Log = <none>]
Feb 11 13:12:44 berlin zma_m2[9608]: INF [Warming up]
Feb 11 13:12:44 berlin zma_m2[9608]: WAR [Approaching buffer overrun, consider increasing ring buffer size]
Feb 11 13:12:44 berlin zma_m4[9546]: INF [Box_Obzor1: 086 - Gone into alarm state]
Feb 11 13:12:45 berlin zma_m4[9546]: INF [Box_Obzor1: 087 - Gone into alert state]
Feb 11 13:12:47 berlin zma_m4[9546]: INF [Box_Obzor1: 097 - Left alarm state (3876) - 21(1) images]
Feb 11 13:12:47 berlin zma_m4[9546]: INF [Box_Obzor1: 100 - Gone into alarm state]
Feb 11 13:12:50 berlin zma_m4[9546]: INF [Box_Obzor1: 112 - Gone into alert state]
Feb 11 13:12:52 berlin zma_m3[9538]: INF [Box_Vxod: 121 - Gone into alarm state]
Feb 11 13:12:53 berlin zma_m4[9546]: INF [Box_Obzor1: 122 - Left alarm state (3877) - 32(12) images]
Feb 11 13:12:53 berlin zma_m3[9538]: INF [Box_Vxod: 122 - Gone into alert state]
Feb 11 13:12:53 berlin zma_m3[9538]: INF [Box_Vxod: 124 - Gone back into alarm state]
Feb 11 13:12:57 berlin zmc_d1[9523]: WAR [Buffer overrun at index 23 ]
Feb 11 13:12:57 berlin zma_m5[9612]: INF [Debug Level = 0, Debug Log = <none>]
Feb 11 13:12:57 berlin zma_m5[9612]: INF [Warming up]

and


Feb 11 13:20:01 berlin zmc_d1[9708]: WAR [Buffer overrun at index 9 ]
Feb 11 13:20:01 berlin crond(pam_unix)[9748]: session opened for user root by (uid=0)
Feb 11 13:20:02 berlin zma_m5[9750]: INF [Debug Level = 0, Debug Log = <none>]
Feb 11 13:20:02 berlin zma_m5[9750]: INF [Warming up]
Feb 11 13:20:03 berlin crond(pam_unix)[9748]: session closed for user root
Feb 11 13:20:17 berlin zmc_d1[9708]: WAR [Buffer overrun at index 35 ]
Feb 11 13:20:23 berlin zmc_d0[9533]: INF [Box_Vxod: 2000 - Capturing at 4.17 fps]
Feb 11 13:20:23 berlin zmc_d0[9533]: INF [Box_Obzor1: 2000 - Capturing at 4.17 fps]
Feb 11 13:20:23 berlin zma_m3[9538]: INF [Box_Vxod: 2000 - Processing at 4.17 fps]
Feb 11 13:20:23 berlin zma_m4[9546]: INF [Box_Obzor1: 2000 - Processing at 4.17 fps]
Feb 11 13:20:27 berlin zmc_d1[9708]: WAR [Buffer overrun at index 35 ]
Feb 11 13:20:28 berlin zma_m5[9754]: INF [Debug Level = 0, Debug Log = <none>]
Feb 11 13:20:28 berlin zma_m5[9754]: INF [Warming up]
Feb 11 13:20:43 berlin zmc_d1[9708]: WAR [Buffer overrun at index 22 ]
Feb 11 13:20:43 berlin zmc_d2[9513]: INF [Vorota: 5000 - Capturing at 9.80 fps]
Feb 11 13:20:52 berlin zmc_d1[9708]: WAR [Buffer overrun at index 22 ]
Feb 11 13:20:55 berlin zma_m1[9518]: INF [Vorota: 5000 - Processing at 9.80 fps]
Feb 11 13:21:02 berlin zmc_d1[9708]: WAR [Buffer overrun at index 22 ]
Feb 11 13:21:11 berlin zmc_d1[9708]: WAR [Buffer overrun at index 22 ]
Feb 11 13:21:13 berlin zma_m5[9757]: INF [Debug Level = 0, Debug Log = <none>]
Feb 11 13:21:13 berlin zma_m5[9757]: INF [Warming up]
Feb 11 13:21:28 berlin zmc_d1[9708]: WAR [Buffer overrun at index 11 ]
Feb 11 13:22:06 berlin last message repeated 4 times
Feb 11 13:22:16 berlin zmc_d1[9708]: WAR [Buffer overrun at index 11 ]
Feb 11 13:22:17 berlin zma_m1[9518]: INF [Vorota: 5793 - Gone into alarm state]
Feb 11 13:22:18 berlin zma_m1[9518]: INF [Vorota: 5796 - Gone into alert state]
Feb 11 13:22:18 berlin zma_m1[9518]: INF [Vorota: 5806 - Left alarm state (3891) - 23(3) images]
Feb 11 13:22:25 berlin zmc_d2[9513]: INF [Vorota: 6000 - Capturing at 9.80 fps]
Feb 11 13:22:26 berlin zmc_d1[9708]: WAR [Buffer overrun at index 11 ]
Feb 11 13:22:35 berlin zmc_d1[9708]: WAR [Buffer overrun at index 11 ]
Feb 11 13:22:38 berlin zma_m1[9518]: INF [Vorota: 6000 - Processing at 9.71 fps]
Feb 11 13:22:39 berlin zma_m5[9759]: INF [Debug Level = 0, Debug Log = <none>]
Feb 11 13:22:39 berlin zma_m5[9759]: INF [Warming up]
Feb 11 13:22:40 berlin zma_m1[9518]: INF [Vorota: 6020 - Gone into alarm state]
Feb 11 13:22:48 berlin zma_m1[9518]: INF [Vorota: 6085 - Gone into alert state]
Feb 11 13:22:49 berlin zma_m1[9518]: INF [Vorota: 6095 - Left alarm state (3892) - 85(65) images]
Feb 11 13:22:50 berlin zma_m1[9518]: INF [Vorota: 6109 - Gone into alarm state]
Feb 11 13:22:50 berlin kernel: bttv2: OCERR @ 0b55601c,bits: HSYNC OFLOW RISCI* OCERR*
Feb 11 13:22:52 berlin zmc_d1[9708]: WAR [Buffer overrun at index 3 ]
Feb 11 13:22:54 berlin zma_m1[9518]: INF [Vorota: 6143 - Gone into alert state]
Feb 11 13:22:55 berlin zma_m1[9518]: INF [Vorota: 6153 - Left alarm state (3893) - 54(34) images]
Feb 11 13:23:02 berlin zmc_d1[9708]: WAR [Buffer overrun at index 3 ]
Feb 11 13:23:21 berlin last message repeated 2 times
Feb 11 13:23:30 berlin zmc_d1[9708]: INF [Sklad1: 1000 - Capturing at 4.17 fps]
Feb 11 13:23:30 berlin zmc_d1[9708]: INF [Box_Obzor2: 1000 - Capturing at 4.17 fps]
Feb 11 13:23:31 berlin zmc_d1[9708]: WAR [Buffer overrun at index 3 ]
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

What size have you set your buffers to, and how busy is your machine when you get alarms?

phil
Inferno
Posts: 17
Joined: Sun Jan 30, 2005 4:26 pm
Location: Nizhny Novgorod, Russia
Contact:

Post by Inferno »

image size 640x480 b/w.
max framerate - 4 fps
buffers and other monitor parameters sets by default.
i am using 2 video in.

Yesterday there was an abnormal load average = 6, though it is usual under the same conditions no more than 2 - 3.
Inferno
Posts: 17
Joined: Sun Jan 30, 2005 4:26 pm
Location: Nizhny Novgorod, Russia
Contact:

Post by Inferno »

As lags of system have started to appear, in logs anything especially informative is not present, though on the console contents of a stack of process zma are thrown out
Inferno
Posts: 17
Joined: Sun Jan 30, 2005 4:26 pm
Location: Nizhny Novgorod, Russia
Contact:

Post by Inferno »

The problem was solved.
It has been connected by that the size of a zone left abroad images (I has changed the size from the big picture on small and the size of a zone has remained from the big picture).
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I am aware that this is probably an issue that needs a little more work. If you define your zones as percentage sizes rather than pixel sizes you can avoid this problem however you will sometimes loose a little accuracy as piels values are rounded.

Phil
Inferno
Posts: 17
Joined: Sun Jan 30, 2005 4:26 pm
Location: Nizhny Novgorod, Russia
Contact:

Post by Inferno »

At percentage definition of zones at me not so high percent of detecting of movement. At pixel definition - result good enough!
Locked