v1.37.43 issues

Current Development version likely to have breaking changes
JBE-Zorg
Posts: 11
Joined: Sat Apr 22, 2023 10:56 am

v1.37.43 issues

Post 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
2023-09-10 10_43_46-ZM - Console.png (19.68 KiB) Viewed 11055 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
2023-09-10 10_35_25-ZM - System Log.png (64.38 KiB) Viewed 11055 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
ps.jpg (40.48 KiB) Viewed 11055 times
gyzod
Posts: 7
Joined: Wed Jun 15, 2022 8:52 pm

Re: v1.37.43 issues

Post by gyzod »

Same here, with yesterday's build.
tyronesluck
Posts: 6
Joined: Mon Sep 11, 2023 4:56 pm

Re: v1.37.43 issues

Post 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?
JBE-Zorg
Posts: 11
Joined: Sat Apr 22, 2023 10:56 am

Re: v1.37.43 issues

Post 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).
JBE-Zorg
Posts: 11
Joined: Sat Apr 22, 2023 10:56 am

Re: v1.37.43 issues

Post 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).
User avatar
borozenetsww
Posts: 40
Joined: Tue Sep 12, 2023 1:55 am

Re: v1.37.43 issues

Post 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
User avatar
borozenetsww
Posts: 40
Joined: Tue Sep 12, 2023 1:55 am

Re: v1.37.43 issues

Post 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())) {
dougmccrary
Posts: 1314
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: v1.37.43 issues

Post by dougmccrary »

Looks like the ubuntu repo is somehow fixed now. (jammy, anyway)
tyronesluck
Posts: 6
Joined: Mon Sep 11, 2023 4:56 pm

Re: v1.37.43 issues

Post 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.
tyronesluck
Posts: 6
Joined: Mon Sep 11, 2023 4:56 pm

Re: v1.37.43 issues

Post 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.
JBE-Zorg
Posts: 11
Joined: Sat Apr 22, 2023 10:56 am

Re: v1.37.43 issues

Post 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.
User avatar
borozenetsww
Posts: 40
Joined: Tue Sep 12, 2023 1:55 am

Re: v1.37.43 issues

Post by borozenetsww »

Last build zoneminder-1.37.43~20230912090755 corrects Ajax problem.
Thanks to Iconnor.
User avatar
iconnor
Posts: 3126
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: v1.37.43 issues

Post by iconnor »

Sorry for the sloppy commits.

Now about this audio, can we confirm that it stopped working?
tyronesluck
Posts: 6
Joined: Mon Sep 11, 2023 4:56 pm

Re: v1.37.43 issues

Post 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.
User avatar
iconnor
Posts: 3126
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: v1.37.43 issues

Post by iconnor »

Today's latest build should fix the audio recording.
Post Reply