Page 1 of 1

[Solved] Deleted events "clog" logs

Posted: Thu Dec 02, 2021 8:50 am
by m3lab
Buongiorno,
yesterday night I've noticed some entries like these:

Code: Select all

2021-12-02 09:39:09	zms_e234225		232917	ERR	Attempt to directly assign buffer with invalid width or height: 0 0	zm_image.cpp	655
2021-12-02 09:39:09	zms_e234225		232917	ERR	Attempt to assign image with an empty buffer	zm_image.cpp	762
2021-12-02 09:39:09	zms_e234225		232917	ERR	Can't open /var/cache/zoneminder/events/5/2021-11-27/234225/00043-capture.jpg: No such file or directory	zm_image.cpp	961
I've checked and image file doesn't exists so I've created an empty one and it seems to be solved ... till next non existing image.

I''ve run zmaudit, I've run a filter to delete all entries but my log is still clogged with the above mentioned rows for several different events

Any hint(s) or tip(s)?

I'm running ZM 1.36.11 on Ubuntu 20.10.4 LTS on a dedicated Thinkpad T410 with I5 and 8GB of RAM

Thanks in advance,
.m.

Re: Deleted events "clog" logs

Posted: Thu Dec 02, 2021 9:45 am
by dougmccrary
Confused.
It looks like something is deleting new events. Have you made any new filters lately?

Re: Deleted events "clog" logs

Posted: Thu Dec 02, 2021 10:41 am
by m3lab
@dougmccrary, thanks for reply ...
dougmccrary wrote: Thu Dec 02, 2021 9:45 am It looks like something is deleting new events. Have you made any new filters lately?
No, the events are older then my last deletion ...

the first event that I saw yesterday was form Nov, 23rd!

Maybe there is something wrong in MySql tables entries?

.m.

Re: Deleted events "clog" logs

Posted: Thu Dec 02, 2021 1:41 pm
by m3lab
I'd to reboot and automagically the problem is gone!

My best,
.m.

Re: [Solved] Deleted events "clog" logs

Posted: Thu Dec 02, 2021 2:11 pm
by iconnor
There have been issues due to changes between versions and outright bugs that can cause filters to not be optimal. Please review them. Pay attention to the existence of an EndTime IS NOT NULL clause if there isn't any other clause that would prevent in progress events from being deleted.
Also pay attention to the ascending vs descending choice. There was a bug where it wasn't saving. Reload the filter after saving to make sure it sticks.

Ascending deletes older first and descending deletes newer first, assuming that the sort field is either Id or Start Date/TIme.