"Montage" page 1.37.66-217 slow loading the cameras -- scaling

Current Development version likely to have breaking changes
Post Reply
busymind
Posts: 38
Joined: Fri Jan 03, 2025 9:55 pm
Location: Montreal

"Montage" page 1.37.66-217 slow loading the cameras -- scaling

Post by busymind »

upgraded because the swap reached 100%. never seen at 100% so I give it a try after couples of days. before upgrade the loading of montage was without any issue. Now is taking a lot of time to load, the page is unresponsive for 1 minute and plus
Screenshot_20250406_164052.png
Screenshot_20250406_164052.png (152.05 KiB) Viewed 3277 times
after upgrade the montage is loading very slowly. Stays a lot at rescalling each camera
Take many seconds to rescale the image. The images goes black for each camera then works. Even moving the cursor the buttons over video does not appears in this stage. Two camera plugged 2K the Montage is loaded and functional after 1minute, 1 minute and half. CPU and ventilation at max speed while loading and "scaling" then works smoothly - until you refresh the page.

image below is unresponsive until scale is performed. no errors on zone minder side
Screenshot_20250406_170352.png
Screenshot_20250406_170352.png (128.29 KiB) Viewed 3267 times
another side effect, when I go back to the Firefox Tab (changing browser tabs) starts again to be unresponsive for a while and stays at scaling stage. This behavior was not before upgrading. The single reason to initiate this upgrade was the swap reaching 100% in 3-4 days. Everything else was top notch.


Addendum -- If cameras are in night time this slowness problem- initiating the montage page - is not seen, only on day light. I think at night time the resolution of these cameras are much lower.
Attachments
Screenshot_20250406_164252.png
Screenshot_20250406_164252.png (26.41 KiB) Viewed 3277 times
IgorA100
Posts: 203
Joined: Sat Feb 03, 2024 11:55 am

Re: "Montage" page 1.37.66-217 slow loading the cameras -- scaling

Post by IgorA100 »

This is very strange.
There were no global changes on the Montage page.
I have no problems with refreshing the page. Everything works very quickly.
Show the entire console from the moment the page starts loading until the moment the delay disappears.
busymind
Posts: 38
Joined: Fri Jan 03, 2025 9:55 pm
Location: Montreal

Re: "Montage" page 1.37.66-217 slow loading the cameras -- scaling

Post by busymind »

Not much to show on console. I just woke up before sun goes up and updated to latest version 217 > 237 (I dump the snapshot where all worked fine), goes quickly but now sun is up image "are better" from camera and the browser take time to load the montage page; CPU are at high speed while scaling.

When I switch (on firefox) between this page where I am writing and back to ZoneMinder Tab page, then again it's starts scaling, I have to wait 30sec-1 minute until everything goes smoothly (image and timestamps).

Now the cameras are 2K, is video pass-trough at max resolution.
At night light, work perfect and fast no issues I tested last night after upgrade. I know at night the image quality is "smoother"
Screenshot_20250409_070301.png
Screenshot_20250409_070301.png (337.87 KiB) Viewed 2270 times
Attachments
Screenshot_20250409_072529.png
Screenshot_20250409_072529.png (95.56 KiB) Viewed 2250 times
busymind
Posts: 38
Joined: Fri Jan 03, 2025 9:55 pm
Location: Montreal

Re: "Montage" page 1.37.66-217 slow loading the cameras -- scaling

Post by busymind »

I had started a new instance on another browser and no issues.
Screenshot_20250409_074347.png
Screenshot_20250409_074347.png (378.2 KiB) Viewed 2228 times
I think my actual firefox (which is running from couple of days -- if not weeks) have some issues.
busymind
Posts: 38
Joined: Fri Jan 03, 2025 9:55 pm
Location: Montreal

Re: "Montage" page 1.37.66-217 slow loading the cameras -- scaling

Post by busymind »

I restarted the firefox, and still loading very slowly the montage pages.
Screenshot_20250409_075036.png
Screenshot_20250409_075036.png (186.01 KiB) Viewed 2222 times
busymind
Posts: 38
Joined: Fri Jan 03, 2025 9:55 pm
Location: Montreal

Re: "Montage" page 1.37.66-217 slow loading the cameras -- scaling

Post by busymind »

I updated, restarted, the system, flushed the caches; only on firefox esr this slowness is found accessing the montage page. I have to wait 30sec - 1 minute to load the image and becoming fluent.

between each re-scalling (in console) the image are disappearing and re-appearing, browser page "freeze".
Attachments
Screenshot_20250409_081341.png
Screenshot_20250409_081341.png (427.03 KiB) Viewed 2176 times
IgorA100
Posts: 203
Joined: Sat Feb 03, 2024 11:55 am

Re: "Montage" page 1.37.66-217 slow loading the cameras -- scaling

Post by IgorA100 »

Indeed, there is a problem only with Firefox
I will fix it soon.
IgorA100
Posts: 203
Joined: Sat Feb 03, 2024 11:55 am

Re: "Montage" page 1.37.66-217 slow loading the cameras -- scaling

Post by IgorA100 »

Try applying this PR https://github.com/ZoneMinder/zoneminder/pull/4301
Everything should work fast as before.
busymind
Posts: 38
Joined: Fri Jan 03, 2025 9:55 pm
Location: Montreal

Re: "Montage" page 1.37.66-217 slow loading the cameras -- scaling

Post by busymind »

Thank you guys. Replaced the code I will check tomorrow morning, at this hour sun is down, works no issues.
Post Reply