This patch adds a loop when reading from the frame image pipe. I was getting occasional "Incomplete" messages (in which case, the frame is dropped), even though the whole frame was sent to the pipe. The problem is that all the data was not available in the pipe for zmf when it read from the pipe. Adding the loop allows it to read the entire frame.
The patch was incorrectly posted the first time. I have since posted it to the wiki page here:
http://www.zoneminder.com/wiki/index.php/1.24.2_Patches
The patch seems to be working well for me, I hope it will help others too.
Andy
[REPOSTED PATCH] Fix "Incomplete read of frame image da
[REPOSTED PATCH] Fix "Incomplete read of frame image da
Last edited by genanr on Mon Feb 22, 2010 7:55 pm, edited 5 times in total.
How to use this patch
This patch looks good if its working. I like to use it but, because I get a lot of these errors, i dont no how to patch the original zmf.cpp file. Never worked with C and i'm not shure what the ! chars and so on mean.
-
- Posts: 440
- Joined: Sat Sep 25, 2004 12:45 am
- Location: Fulton, MO
Re: How to use this patch
!= is "does not equal" or "not equal to"Cgroesser wrote:This patch looks good if its working. I like to use it but, because I get a lot of these errors, i dont no how to patch the original zmf.cpp file. Never worked with C and i'm not shure what the ! chars and so on mean.
Trying to patch this
Oke I got the meaning of the ! chars. But whet I try to patch this on the original i got a warning like this:
patch: **** Premature `---' at line 17; check line numbers at line 4. I think this means there are some lines missing in the patch. Mayby something went wrong when cutting and paste this patch to this forum. Is there somebody who has done this with succes??
Chris
patch: **** Premature `---' at line 17; check line numbers at line 4. I think this means there are some lines missing in the patch. Mayby something went wrong when cutting and paste this patch to this forum. Is there somebody who has done this with succes??
Chris
Incompete frame patch repost
Yeah, the posted patch was wrong. Leaving HTML on messed up the patch, even though it was in a code block. It will be posted once I get the thing to post correctly.
I put the patch on the ZoneMinder Wiki
Get it here:
http://www.zoneminder.com/wiki/index.php/1.24.2_Patches
Andy
I put the patch on the ZoneMinder Wiki
Get it here:
http://www.zoneminder.com/wiki/index.php/1.24.2_Patches
Andy
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: [REPOSTED PATCH] Fix "Incomplete read of frame image da
Works like a champ on 1.25.0. Any chance we can get this in future versions?
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: [REPOSTED PATCH] Fix "Incomplete read of frame image da
I recently upgraded to 1.25.0 and was surprised that this patch was not included in the source. Perhaps the author is not aware. I'll post a link to this thread as a feature request and see if we get a bite.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
- knight-of-ni
- Posts: 2404
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: [REPOSTED PATCH] Fix "Incomplete read of frame image da
Just posted this:
http://www.zoneminder.com/forums/viewto ... =8&t=18324
http://www.zoneminder.com/forums/viewto ... =8&t=18324
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/