Page 1 of 1

Another Buffer overrun problem

Posted: Wed Oct 04, 2006 6:59 am
by Magnus Olsson
Hi all, i have a problem i cant solve. i ran ZM with one camera a few weeks with no problems. but last week it started to get these errors for no reason once something showed up that moved in the picture.

Code: Select all

zmc_dvideo1[2922]: WAR [Buffer overrun at index 52, slow down capture, speed up analysis or increase ring buffer size]
So after some reading here i upped the shared memory to 128mb, no success.

I raised Image Buffer Size to 60, Warm up frames to 25, pre and post buffers to 10 - No success.

I lowered the Max FPS to as far as 1 but no success only took longer to get this buffer overrun.

CPU is running at like 0.05 so it shouldnt have any problems if it tried.

I reloaded all the default settings into the DB to see if i had changed something i shouldn't but still the same.

Does anyone have a good idea what i shall try next, something is seriusly wrong, im starting to think it might be the hardware that has broke down.

Some HW info:
CPU: 1,6Ghz Athlon
Memory: 512Mb
VideoCard: Hauppauge BT878 WinTV @ 320x240 (running grayscale to save memory)
Machine is running Fedora 4 with no other tasks beside running ZM.

Some help is greatly appreciated now, Thank you :)

Posted: Wed Oct 04, 2006 7:46 am
by jameswilson
You dont have a cron job or something running just before your get the over run? I had somethig once that was eating all cycles for about 10 mins causing over runs then it went away on its own. Had to use top to track it down

Posted: Wed Oct 04, 2006 8:21 am
by Magnus Olsson
Thank you for your reply James, but no there should not be any extra cron jobs beside the default ones.

Posted: Thu Oct 05, 2006 4:07 pm
by zoneminder
It does appear that something is slowing down your system when motion is detected. Can you check your zone settings and make sure they are reasonably sensible. If you run 'top' do you see your load average change when you get motion?

Posted: Thu Oct 05, 2006 8:57 pm
by jameswilson
also check you dont have red colouring on and stats etc

Posted: Fri Oct 06, 2006 6:38 am
by Magnus Olsson
i have ZM_CREATE_ANALYSIS_IMAGES on, but it has not been any problems before and i had alot more on at the same time. Now i run at minimum with no color or anything. but it seems very random now, it worked all day yesterday but tonight one cam shutdown with this error the others continued.

Getting kinda anoying to have a unsable system like this. the machine should be capable of running alot of cams with only 340x240 grayscale, i mean it takes about 0.02CPU max for it to run 3 cams analys deamon since i disabled color.

I can try turn off Analysis images im also gonna remove cam id1 and recrate it as a new one to see if it makes any diffrence since the other cams are working now.

Posted: Mon Oct 09, 2006 4:30 pm
by zoneminder
Perhaps you can post your monitor and zone settings so we can see if there is anything odd in there, you can dump them with zmu.