[Solved] v1.37.12 - never ending event whilst waiting for motion+camera startup

Current Development version likely to have breaking changes
Post Reply
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

[Solved] v1.37.12 - never ending event whilst waiting for motion+camera startup

Post by lyallp »

I noticed the following in my syslog.

Code: Select all

Feb 28 13:07:16 Lyalls-PC zmwatch[749]: ERR [Memory map file '/dev/shm/zm.mmap.2' does not exist in zmMemAttach.  zmc might not be running.] 
Feb 28 13:07:16 Lyalls-PC zmc_dvideo0[801]: ERR [zmc_dvideo0] [Failed to set video standard 255: 25 Inappropriate ioctl for device]
Feb 28 13:07:23 Lyalls-PC zmc_dvideo0[801]: ERR [zmc_dvideo0] [Failed to stop capture stream: Bad file descriptor]
Feb 28 13:07:23 Lyalls-PC last message buffered 1 times
Feb 28 13:07:52 Lyalls-PC zmtelemetry[1051]: ERR [Failed to opem database. Sleeping.] 
Feb 28 13:08:14 Lyalls-PC zmtelemetry[1292]: ERR [Failed to opem database. Sleeping.] 
Feb 28 13:08:43 Lyalls-PC zmwatch[1283]: ERR [Memory map file '/dev/shm/zm.mmap.2' does not exist in zmMemAttach.  zmc might not be running.] 
Feb 28 13:08:44 Lyalls-PC zmc_dvideo0[1326]: ERR [zmc_dvideo0] [Failed to set video standard 255: 25 Inappropriate ioctl for device]
Feb 28 02:39:16 Lyalls-PC rtkit-daemon[4101]: Supervising 8 threads of 5 processes of 1 users. 
Also, restarting Apache (on which zone minder depends) re-start time of the camera has now become quite long (in the order of 30 odd seconds).
Also, I note that my motion detection Logitech C922 Webcam, which worked fine, previously, now seems to be capturing full time, not during motion.
This shows as an 'event' cause 'continuous' with an ever increasing number of frames with zero alarm frames.
I changed the 'capturing' setting to 'On Demand' with recording 'On Motion' (it was always set to On Motion) and the issue seems to have gone away.
I suspect something went adrift with the database version migration?
Finally, pedantic as always, note the error message "Failed to opem database. Sleeping.

A short time later: I have a never ending event (no end time), no alarm frames. I suspect it was when I went outside to test motion detection, for which there are no events recorded

Code: Select all

Feb 28 13:28:07 Lyalls-PC zms_m2[3384]: ERR [zms_m2] [Monitor shm is not connected]
Feb 28 13:28:07 Lyalls-PC last message buffered 1 times
Feb 28 13:28:20 Lyalls-PC zms_e33366[3411]: ERR [zms_e33366] [Can't open /var/lib/zoneminder/events/2/2022-02-28/33366/00053-capture.jpg: No such file or directory]
Feb 28 13:28:20 Lyalls-PC zms_e33366[3411]: ERR [zms_e33366] [Attempt to assign image with an empty buffer]
Feb 28 13:28:20 Lyalls-PC zms_e33366[3411]: ERR [zms_e33366] [Can't open /var/lib/zoneminder/events/2/2022-02-28/33366/00054-capture.jpg: No such file or directory]
Feb 28 13:28:20 Lyalls-PC zms_e33366[3411]: ERR [zms_e33366] [Attempt to assign image with an empty buffer]
Feb 28 13:28:20 Lyalls-PC zms_e33366[3411]: ERR [zms_e33366] [Can't open /var/lib/zoneminder/events/2/2022-02-28/33366/00055-capture.jp
Maybe I should shutdown zoneminder and discard shared memory?... nope.
Last edited by lyallp on Tue Mar 01, 2022 10:13 am, edited 2 times in total.
...Lyall
dougmccrary
Posts: 1273
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: v1.37.12

Post by dougmccrary »

I'm not getting anything like that, but about half my cameras are inop, with segmentation faults.
Needs work. :(
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Re: v1.37.12

Post by lyallp »

By the way, this is not a criticism, it's just letting you know there are issues.

My installation of ZoneMinder is purely a hobby and if it breaks, it's no big deal. I know to expect issues with bleeding edge. :)

That said, it seems to capture motion in the correct zone, creating events and I can review them.

The only problems are camera warm up time and what appears to be a never ending event in the event log (no end time).

The continuous frames event seems to keep going until a movement is detected, at which time, the event is closed off according to my settings, which is about 20 frames of no movement.

EDIT: as per event log, one can see when things changed...
Selection_004.png
Selection_004.png (29.52 KiB) Viewed 1797 times
and the continuous event with no end time, and seemingly endless disk usage...
Selection_005.png
Selection_005.png (73.55 KiB) Viewed 1797 times
This is promptly deleted by one of my filters, as it has less than 30 alarm frames.

I will admit to being somewhat concerned, if, overnight, no movement is detected. Will the event fill up my disk? At 7400 frames it has used 1.2GB, so far.
Last edited by lyallp on Tue Mar 01, 2022 9:29 am, edited 1 time in total.
...Lyall
User avatar
iconnor
Posts: 2949
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: v1.37.12

Post by iconnor »

So this was a big code change, replacing Function with other questions.

Please note, Capturing = OnDemand means that you will only be recording if you are watching the stream. You likely want Always. This functionality is new.

zmtelemetry errors are fixed.Will work through others as the day progresses. Needs lots of documentation updates obviously.
parky
Posts: 45
Joined: Sun Aug 28, 2011 8:41 am

Re: v1.37.12

Post by parky »

System calmed down now and Network Encoder showing all cameras

Set to always capture and not record, but recording as I need to have Decoding enabled as I use this system just to view the cameras. No big issue here as I just purge the files from the disk to stop it falling over. Montage & montage review work along with thumbnails and logs running green with only the usual alerts

Alan
dougmccrary
Posts: 1273
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: v1.37.12

Post by dougmccrary »

Got most of my cams working - monitor dimensions had been intentionally set to 640 x 360, which was ok until now.
It's pickier now, setting to actual 640 x 352 works, except for one oddball TrendNet I have.
Messes up my 3 across montage though.
marcschh2
Posts: 5
Joined: Tue Sep 03, 2019 7:45 am

Re: v1.37.12

Post by marcschh2 »

has someone the .deb packages from the ubuntu ppa for the LATEST 1.37.11 pls?
nrbell
Posts: 30
Joined: Mon Jun 04, 2018 1:14 pm

Re: [Solved] v1.37.12 - never ending event whilst waiting for motion+camera startup

Post by nrbell »

If you visit https://launchpad.net/~iconnor/+archive ... tate=built you should be able to get a copy of the .deb for any build you like.
Post Reply