[Solved] Deleted events "clog" logs

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
m3lab
Posts: 18
Joined: Mon Jul 14, 2014 9:41 pm

[Solved] Deleted events "clog" logs

Post 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.
Last edited by m3lab on Thu Dec 02, 2021 1:42 pm, edited 1 time in total.
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Deleted events "clog" logs

Post by dougmccrary »

Confused.
It looks like something is deleting new events. Have you made any new filters lately?
m3lab
Posts: 18
Joined: Mon Jul 14, 2014 9:41 pm

Re: Deleted events "clog" logs

Post 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.
m3lab
Posts: 18
Joined: Mon Jul 14, 2014 9:41 pm

Re: Deleted events "clog" logs

Post by m3lab »

I'd to reboot and automagically the problem is gone!

My best,
.m.
User avatar
iconnor
Posts: 2879
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: [Solved] Deleted events "clog" logs

Post 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.
Post Reply