Hi,
This is my first zoneminder install. I have everything working- two IP cams streaming RTSP, motion detect is defined and operational, frames are captured, live streaming works (at any scaling value). With defaults, I am able to see playback of events. Happy.
However, because the IP cams are 3MP, the replay image does not fit on my server monitor, so I changed the monitor dialog / misc / default scale to 1/3. When I do this, I get the following:
- the event playback window opens and shows a single frame of the event.
- zms then times out because of the following error from the apache log:
[cgi:error] [pid 1838] [client 127.0.0.1:58175] AH01215: *** Error in `/usr/lib/cgi-bin/zms': free(): invalid next size (normal): 0x00000000084ee9e0 ***, referer: http://localhost/zm/index.php?view=even ... c=1&page=1
[Sat Dec 05 11:00:18.189003 2015] [cgi:error] [pid 1838] [client 127.0.0.1:58175] AH01215: *** Error in `/usr/lib/cgi-bin/zms': realloc(): invalid next size: 0x00000000084f0a10 ***, referer: http://localhost/zm/index.php?view=even ... c=1&page=1
These then cascade timeout errors related to the socket not opening. The ZMS app becomes unresponsive and nothing happens.
Setting the default scale back to "Actual" fixes the problem and I can stream recorded events again.
I'm on a fresh install of Linux Mint 17, (2) 3MP cams, 4fps, CPU loading is about 35%, 4Gb of RAM total.
Thanks for any help.
ZMS memory allocation error - only when displaying scaled playback
Re: ZMS memory allocation error - only when displaying scaled playback
I have a hunch that may totally be wrong.
Can you please check your apache error logs when this is happening and report any errors from apache? (not zm log, but apache error log). My theory is that the image was never produced when you scaled due to a scaling error and zms is trying to free something that was therefore never allocated.
Can you please check your apache error logs when this is happening and report any errors from apache? (not zm log, but apache error log). My theory is that the image was never produced when you scaled due to a scaling error and zms is trying to free something that was therefore never allocated.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs