Another Buffer overrun problem

Support and queries relating to all previous versions of ZoneMinder
Locked
Magnus Olsson
Posts: 10
Joined: Wed Oct 04, 2006 6:42 am

Another Buffer overrun problem

Post 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 :)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Magnus Olsson
Posts: 10
Joined: Wed Oct 04, 2006 6:42 am

Post by Magnus Olsson »

Thank you for your reply James, but no there should not be any extra cron jobs beside the default ones.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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?
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

also check you dont have red colouring on and stats etc
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Magnus Olsson
Posts: 10
Joined: Wed Oct 04, 2006 6:42 am

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
Locked