Montage/Monitors not working correctly in Firefox

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

Montage/Monitors not working correctly in Firefox

Post by JBE-Zorg »

With the latest update (1.37.40~20230427104451-jammy), the montage and individual monitor pages aren't showing/updating properly in Firefox 112.0.2.
Zoneminder Montage - Firefox
Zoneminder Montage - Firefox
zm-montage.png (21.17 KiB) Viewed 1205 times
Images will sometimes pop up and go away, basically acting like it's just updating VERY slowly. The UI essentially appears to lock up and I can't click on anything once I enter montage.

Other menu options seem be working ok, just when trying to view a live image is when the problem shows itself.

Trying the same on Chrome / Edge, everything appears to work normally and the montage/monitors view functions as expected.

Not seeing anything in error log or Firefox Dev Tools that stands out.
dougmccrary
Posts: 1336
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Montage/Monitors not working correctly in Firefox

Post by dougmccrary »

Seems they broke multi-port. If you're using that...
1.36.33 is doing the same.
edit
Although that seems to be because 1.37 ate up most of ram. Restart and 1.36 ok again.
JBE-Zorg
Posts: 11
Joined: Sat Apr 22, 2023 10:56 am

Re: Montage/Monitors not working correctly in Firefox

Post by JBE-Zorg »

So far, I've been able to narrow it down to something in the latest commit of MonitorStream.js. Replacing that file with the previous commit https://github.com/ZoneMinder/zoneminde ... rStream.js allows Montage to function as it did previously.
JBE-Zorg
Posts: 11
Joined: Sat Apr 22, 2023 10:56 am

Re: Montage/Monitors not working correctly in Firefox

Post by JBE-Zorg »

Looks like Lines 156, 158 and 180 in MonitorStream.js (https://github.com/ZoneMinder/zoneminde ... #L156-L158) may be the offending bit of code. Commenting these out allows Montage to function normally in Firefox.
dougmccrary
Posts: 1336
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Montage/Monitors not working correctly in Firefox

Post by dougmccrary »

Yes, seems to cure it.
Thank you.
Post Reply