zoneminder mixing up my sources

Support and queries relating to all previous versions of ZoneMinder
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

er.... good luck

James
mdaughtrey
Posts: 32
Joined: Sat Sep 17, 2005 4:10 pm

Post by mdaughtrey »

Ok, looking into the log dump a little further...
Phil/Cordel, does this request to zms look OK?

GET /zm.php?view=watchfeed&mode=&mid=9&scale=100&control= HTTP/1.1

"mode" is missing a parameter and "control" has a space.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

That's not actually the request to zms, but it will be in that page generated. An empty mode I think will just cause it to use the default and I think control is just blank, the space separates the url from the protocol. If you can get the contents of the page generated by your request it might tell us a bit more.

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

My earlier input suggested this was a client issue and i thought it was a power issue. I noticed this morning that my home machine (windows fx53 1Gb Raptor Raid 0) was doing it to. A close and open fised it but obviously i was wrong

James
mdaughtrey
Posts: 32
Joined: Sat Sep 17, 2005 4:10 pm

Post by mdaughtrey »

Phil: a strings-filtered Ethereal capture of the session is at http://salem.dyndns.org/zmlogs/zm.dmp.txt
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It's a bit of a long shot but have you tried changing your zms path to nph-zms rather than just zms? I'm a little concerned to see chunked encoding in your transfer log and I'm wondering if this messes things up at all. Using an nph script should prevent your httpd from interfering with the stream.

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

I have changed mine (in options - paths
And its less of a problem ie its done it once since and cleared itself which normally it doesnt. It was just after a restart mind of zm if this has anything to do with it

James
mdaughtrey
Posts: 32
Joined: Sat Sep 17, 2005 4:10 pm

Post by mdaughtrey »

Ok, I'll give it a shot tonight.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Scap that still doing it
Damn
Sorry

James
mdaughtrey
Posts: 32
Joined: Sat Sep 17, 2005 4:10 pm

Post by mdaughtrey »

I'll do another Ethereal capture of it anyway, see if it shows up any clues.

I'll also enable debugging on zms.
mdaughtrey
Posts: 32
Joined: Sat Sep 17, 2005 4:10 pm

Post by mdaughtrey »

It hasn't changed anything - I still see the alternating jpegs on Ethereal. I've run out of time for this evening; I'll enable debug output on zms tomorrow, suggestions appreciated in the meantime.
mdaughtrey
Posts: 32
Joined: Sat Sep 17, 2005 4:10 pm

Post by mdaughtrey »

Started looking through the zms debug output, see ***:

Sep 22 23:05:00 salem last message repeated 11 times
Sep 22 23:05:00 salem zms[667]: INF [16/20: ]
Sep 22 23:05:00 salem zms[667]: INF [Image size 19185]
Sep 22 23:05:00 salem zms[667]: INF [shared_data 4098e000]
Sep 22 23:05:01 salem last message repeated 13 times
Sep 22 23:05:01 salem zms[667]: INF [17/20: ]
Sep 22 23:05:01 salem zms[667]: INF [Image size 19185]
Sep 22 23:05:01 salem zms[667]: INF [shared_data 4098e000]
Sep 22 23:05:01 salem zms[667]: INF [19/20: ]
*** Sep 22 23:05:01 salem zms[667]: INF [Image size 21770] ***
Sep 22 23:05:01 salem zms[667]: INF [shared_data 4098e000]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I don't think this is a zms issue but really zmc. I had turned on Record and mocord on your machine for 20 seconds each. The captured images in the events directories were alternating as well. What ever zmc does zms will follow. So the problem is not in the streaming but in the capture.
mdaughtrey
Posts: 32
Joined: Sat Sep 17, 2005 4:10 pm

Post by mdaughtrey »

Ok, noted. I'll go back to looking at zmc.
mdaughtrey
Posts: 32
Joined: Sat Sep 17, 2005 4:10 pm

Post by mdaughtrey »

You know what though...earlier logs indicated that zmc was sticking with the program as far as capture goes - the same image size was getting picked up every time. This makes me think that there's some problem with the way the shared memory is being used.
In my last posted log, the "x/y" indicates the current last written index (x) and the total number of buffers for that source (y). It's odd that the index jumps around and back again, and that every time it jumps, zms gets the wrong image.
Locked