ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
SpikeyGG
Posts: 47
Joined: Mon Oct 15, 2012 12:02 am

ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by SpikeyGG » Sat Nov 04, 2017 5:37 pm

So I'm running ZM 1.30.4 and it looks like I'm getting a lot of this kind of stuff:

Code: Select all

Date/Time		Component	Server	PID	Level	Message								File		Line
11/4/17 11:14 AM	zmf			12781	WAR	Socket closed at remote end					zmf.cpp		312
11/4/17 11:14 AM	zmf			12781	ERR	Only read 219224 bytes of 979149				zmf.cpp		305
11/4/17 11:14 AM	zma_m3			12785	ERR	Incomplete frame write: 219264 of 979189 bytes written		zm_event.cpp	342
11/4/17 11:14 AM	zmf			12781	WAR	Socket closed at remote end					zmf.cpp		312
11/4/17 11:14 AM	zmf			12781	ERR	Only read 219224 bytes of 977295				zmf.cpp		305
11/4/17 11:14 AM	zma_m3			12785	ERR	Incomplete frame write: 219264 of 977335 bytes written		zm_event.cpp	342
I have an IP camera (RLC-410) and it appears to only spit out these error messages when it's capturing an alarmed event, when it's idle it seems to be fine and everything appears to be working correctly. Any idea how to solve these error messages? When they come they come in bulk! Looks like every alarm frame contains an error.

I've attached a longer example screen capture of the log for your viewing pleasure...

Thanks,
-Greg
Attachments
ZM Errors.PNG
ZM Errors.PNG (111.48 KiB) Viewed 2510 times

mcmellenhead
Posts: 2
Joined: Mon Sep 11, 2017 12:23 pm

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by mcmellenhead » Mon Dec 04, 2017 3:14 am

+1 for this issue. Same camera. Same error in the logs

bbunge
Posts: 2445
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by bbunge » Mon Dec 04, 2017 12:49 pm

How do you have the camera configured? Which Linux distro and version?

SpikeyGG
Posts: 47
Joined: Mon Oct 15, 2012 12:02 am

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by SpikeyGG » Sat Dec 09, 2017 6:23 pm

bbunge wrote:
Mon Dec 04, 2017 12:49 pm
How do you have the camera configured? Which Linux distro and version?
The camera is throttled at 6fps and 720p on my setup. I have 5 zones with varying amounts of blob detection in each zone. I'm using RTP/RTSP with the hardcoded IP of the camera using the standard port 554. I'm not sure what kind of details you're looking for on the camera end.

The OS I'm using is Ubuntu:

Code: Select all

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
Codename:       xenial
$

User avatar
knight-of-ni
Posts: 2231
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by knight-of-ni » Mon Dec 11, 2017 9:35 pm

For starters, turn off the frame server under options.
The frame server ends up causing more problems than it attempts to solve.
It has been removed from the latest master branch, and won't be part of the next release of ZoneMinder.
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/

SpikeyGG
Posts: 47
Joined: Mon Oct 15, 2012 12:02 am

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by SpikeyGG » Wed Dec 13, 2017 2:51 am

knnniggett wrote:
Mon Dec 11, 2017 9:35 pm
For starters, turn off the frame server under options.
The frame server ends up causing more problems than it attempts to solve.
It has been removed from the latest master branch, and won't be part of the next release of ZoneMinder.
I just modified that setting on my setup. I'll monitor over the next month and report back.

User avatar
knight-of-ni
Posts: 2231
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by knight-of-ni » Wed Dec 13, 2017 12:58 pm

Excellent. Keep us posted. Best case, that was the root cause of the problem. Worse case, all that noise in your log was masking the root cause of the problem. In either case, progress has been made.
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/

SpikeyGG
Posts: 47
Joined: Mon Oct 15, 2012 12:02 am

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by SpikeyGG » Sat Dec 16, 2017 1:46 pm

Okay, it looks like the original warnings/errors disappeared but now I'm seeing "Unexpected channel selector XXX in RTSP interleaved data" errors and a few other warnings... Here's a screen shot:
ZM Errors2.png
ZM Errors2.png (118.82 KiB) Viewed 2248 times
I did some googling around for the error and I found a few threads but no one seems to have a fix. :(

Any ideas?

These are the types of warning messages:

Code: Select all

Unexpected format RTSP interleaved data, resyncing by VVV bytes

Discarding incomplete frame WWWWW, 0 bytes

Discarding partial frame XXXXX, YYYYY bytes

Packet in sequence, gap ZZ

User avatar
knight-of-ni
Posts: 2231
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by knight-of-ni » Sat Dec 16, 2017 3:12 pm

Yes, don't use the Remote -> RTSP method. This method is no longer being maintained as it attempts to recreate the wheel.

The errors you see are exactly why our documentation states to use a source type of ffmpeg for rtsp devices:
http://zoneminder.readthedocs.io/en/sta ... nitor.html

NOTE: Have you tried the ONVIF probe? If it finds your camera, it will program the monitor for you (using ffmpeg source type).
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/

SpikeyGG
Posts: 47
Joined: Mon Oct 15, 2012 12:02 am

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by SpikeyGG » Sat Dec 16, 2017 8:02 pm

knnniggett wrote:
Sat Dec 16, 2017 3:12 pm
Yes, don't use the Remote -> RTSP method. This method is no longer being maintained as it attempts to recreate the wheel.

The errors you see are exactly why our documentation states to use a source type of ffmpeg for rtsp devices:
http://zoneminder.readthedocs.io/en/sta ... nitor.html

NOTE: Have you tried the ONVIF probe? If it finds your camera, it will program the monitor for you (using ffmpeg source type).
Thanks for the quick response! I have swapped my camera over to using ffmpeg. I will monitor this setup and report back.

SpikeyGG
Posts: 47
Joined: Mon Oct 15, 2012 12:02 am

Re: ERR: Only read XXXX bytes of YYYY and "Incomplete frame write" Errors

Post by SpikeyGG » Tue Dec 19, 2017 4:34 am

Yeah, I think that did it knnniggett. Thanks for your help with this... my logs thank you! :)

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests