Page 1 of 2
v1.37.43 issues
Posted: Sun Sep 10, 2023 3:03 pm
by JBE-Zorg
Just updated to 1.37.43 (zoneminder:amd64 (1.37.43~20230825124927-jammy) and cameras stopped working/recording. Looks like ZoneMinder will try to connect to the cameras and maybe get an image or two then stop. Everything was working normally prior to the update (1.37.42~20230810110346-jammy).
ZoneMinder console shows:

- 2023-09-10 10_43_46-ZM - Console.png (19.68 KiB) Viewed 13663 times
I cleared out all of my events prior to upgrading, which is why there's none shown.
The Log is showing that it's killing zmc constantly, see the following snippet. This is repeated over and over:

- 2023-09-10 10_35_25-ZM - System Log.png (64.38 KiB) Viewed 13663 times
Monitoring the processes, zmc appears to start, jump to near full cpu usage and then gets killed about a minute after starting:

- ps.jpg (40.48 KiB) Viewed 13663 times
Re: v1.37.43 issues
Posted: Mon Sep 11, 2023 12:55 pm
by gyzod
Same here, with yesterday's build.
Re: v1.37.43 issues
Posted: Mon Sep 11, 2023 5:19 pm
by tyronesluck
I had the same issue, with the update from 9th September.
I found that if I disable the recording of audio with the "Whether to store the audio stream when saving an event." check box then my cpu load goes back to normal and it records and I can preview the live feeds again.
I noticed the latest version has something in it to do with audio streams with ffmpeg, perhaps its something to do with that?
Re: v1.37.43 issues
Posted: Mon Sep 11, 2023 10:21 pm
by JBE-Zorg
tyronesluck wrote: ↑Mon Sep 11, 2023 5:19 pm
I found that if I disable the recording of audio with the "Whether to store the audio stream when saving an event." check box then my cpu load goes back to normal and it records and I can preview the live feeds again.
I noticed the latest version has something in it to do with audio streams with ffmpeg, perhaps its something to do with that?
Thank you and good catch! Turning off the "Whether to store the audio stream when saving an event." on all my cameras allowed normal recording and playback to work as expected (without audio of course).
Re: v1.37.43 issues
Posted: Mon Sep 11, 2023 10:31 pm
by JBE-Zorg
Quick update. There was a new build available (1.37.43~20230911114421-jammy), after installation I can enable recording audio again and things seem to be working smoothly (so far).
Re: v1.37.43 issues
Posted: Tue Sep 12, 2023 1:57 am
by borozenetsww
Any events (hour, day, etc...) not show now.
"Loading, please wait"
[Tue Sep 12 08:51:44.094169 2023] [php:error] [pid 2556419] [client 10.8.0.2:57931] PHP Fatal error: Uncaught Error: Call to undefined function int() in /usr/share/zoneminder/www/ajax/events.php:207\nStack trace:\n#0 /usr/share/zoneminder/www/ajax/events.php(121): queryReq
uest()\n#1 /usr/share/zoneminder/www/index.php(260): require_once('...')\n#2 {main}\n thrown in /usr/share/zoneminder/www/ajax/events.php on line 207, referer:
http://192.168.3.3/zm/index.php?view=ev ... ateTime&fi
lter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3E%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=-1+hour&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Battr%5D=Monitor&filter%5BQuery%5D%5Bterms%5D%5B1%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bt
erms%5D%5B1%5D%5Bval%5D=1&filter%5BQuery%5D%5Bsort_asc%5D=0&filter%5BQuery%5D%5Bsort_field%5D=StartDateTime&filter%5BQuery%5D%5Bskip_locked%5D=&filter%5BQuery%5D%5Blimit%5D=0
Re: v1.37.43 issues
Posted: Tue Sep 12, 2023 4:19 am
by borozenetsww
Replacing back from diff in file /web/ajax/events.php. Work correct.
- if ($filter->limit() and !count($filter->post_sql_conditions())) {
+ if (int($filter->limit()) and !count($filter->post_sql_conditions())) {
Re: v1.37.43 issues
Posted: Tue Sep 12, 2023 6:24 am
by dougmccrary
Looks like the ubuntu repo is somehow fixed now. (jammy, anyway)
Re: v1.37.43 issues
Posted: Tue Sep 12, 2023 7:41 am
by tyronesluck
borozenetsww wrote: ↑Tue Sep 12, 2023 4:19 am
Replacing back from diff in file /web/ajax/events.php. Work correct.
- if ($filter->limit() and !count($filter->post_sql_conditions())) {
+ if (int($filter->limit()) and !count($filter->post_sql_conditions())) {
Can confirm I had this same problem too, and this also fixed it.
Re: v1.37.43 issues
Posted: Tue Sep 12, 2023 8:44 am
by tyronesluck
JBE-Zorg wrote: ↑Mon Sep 11, 2023 10:31 pm
Quick update. There was a new build available (1.37.43~20230911114421-jammy), after installation I can enable recording audio again and things seem to be working smoothly (so far).
Is it recording audio for you since this update? I just updated mine to the same version, and enabled recording audio, but dont seem to have any audio. Using mediainfo the mp4 file doesn't have an audio track.
Re: v1.37.43 issues
Posted: Tue Sep 12, 2023 10:54 am
by JBE-Zorg
tyronesluck wrote: ↑Tue Sep 12, 2023 8:44 am
JBE-Zorg wrote: ↑Mon Sep 11, 2023 10:31 pm
Quick update. There was a new build available (1.37.43~20230911114421-jammy), after installation I can enable recording audio again and things seem to be working smoothly (so far).
Is it recording audio for you since this update? I just updated mine to the same version, and enabled recording audio, but dont seem to have any audio. Using mediainfo the mp4 file doesn't have an audio track.
After doing the ajax fix above, I downloaded an event and you are correct - no audio track available.
Re: v1.37.43 issues
Posted: Wed Sep 13, 2023 3:42 am
by borozenetsww
Last build zoneminder-1.37.43~20230912090755 corrects Ajax problem.
Thanks to Iconnor.
Re: v1.37.43 issues
Posted: Wed Sep 13, 2023 1:49 pm
by iconnor
Sorry for the sloppy commits.
Now about this audio, can we confirm that it stopped working?
Re: v1.37.43 issues
Posted: Wed Sep 13, 2023 2:03 pm
by tyronesluck
Yep, its not recording the audio on my camera anymore. It used to before the recent updates.
Using mediainfo, it shows just the Video stream.
Re: v1.37.43 issues
Posted: Wed Sep 13, 2023 2:48 pm
by iconnor
Today's latest build should fix the audio recording.