Montage view not working last few snapshots [Solved]

Previous development branch now released as 1.36
Locked
User avatar
sammael
Posts: 13
Joined: Fri Jul 31, 2020 11:26 am

Montage view not working last few snapshots [Solved]

Post by sammael »

Hi,
up to version 1.35.6_20200825114814-focal from ubuntu ppa I could log in, land on console page see my 2 cameras, click Montage and land on page with both cameras enlarged. If I downgrade to that version this functionality immediately returns.

Any version later than that after landing on console I click on Montage and land on page that is empty where the cameras should be displayed. I can select any of the filters that should produce monitor(s) as result, but at no point any camera output appears in Montage view. I cleared browser cache and restarted browser before logging into new version.

The only thing that appears in log while selecting the filters is:
web_php WAR Have width px /usr/share/zoneminder/www/includes/functions.php line 2085
web_php ERR [Uncaught ReferenceError: fo is not defined]

Thanks for any help
Last edited by sammael on Sat Sep 12, 2020 10:21 am, edited 1 time in total.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Montage view not working last few snapshots

Post by iconnor »

Only think I can think of would be if there was a bad value stored in a cookie and if that value isn't in the width or height dropdowns it will still say auto even though the actual value used is something else. Try playing around with different width/height/layout settings and see if it comes back.

The fo is not defined came from zones view I think. Have fixed it.
User avatar
sammael
Posts: 13
Joined: Fri Jul 31, 2020 11:26 am

Re: Montage view not working last few snapshots

Post by sammael »

I tried on different computer where I use dark theme. The cameras come up as squares of size 2px by 2px with the proper fps text underneath like this (screenshot on my nextcloud) :https://turbomrak.o5.ddns.net/s/c45taXfkPJZbntP. This is not the same error as the one where the live pics won't show, but the jpgs still get captured, the cameras are actually playing inside those 2px boxes if i click on right pixel the camera comes up and plays in the popup window. No selections of Width / Height Scale or Layout enlarge them.

In ZM log:
2020-09-04 15:07:02 web_js 17710 ERR Uncaught TypeError: Cannot read property 'get' of null zm/cache/skins_classic_views_js_montage-dark-1599171915.js 145
2020-09-04 15:06:53 web_php 17726 WAR Have width 0px /usr/share/zoneminder/www/includes/functions.php 2091
2020-09-04 15:06:53 web_php 17726 WAR Scale is 0 /usr/share/zoneminder/www/includes/functions.php 2094
2020-09-04 15:06:53 web_php 17726 WAR Have width 0px /usr/share/zoneminder/www/includes/functions.php 2091
2020-09-04 15:06:53 web_php 17726 WAR Scale is 0 /usr/share/zoneminder/www/includes/functions.php 2094
2020-09-04 15:06:40 web_php 17726 WAR Have width px /usr/share/zoneminder/www/includes/functions.php 2091
2020-09-04 15:06:18 web_php 18337 WAR Setting dimensions from scale:100 /usr/share/zoneminder/www/includes/functions.php 2069
I also noticed on my main computer where I use default theme the controls in Montage are all broken like so: https://turbomrak.o5.ddns.net/s/8MoBMawYTJpmZFr

This is on 1.35.6~20200903182515-focal at the writing of this post. I'm reluctant to clear the cookies because then I have to log into million webpages again, but if that's the last resort I'll do that over weekend.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Montage view not working last few snapshots

Post by iconnor »

you can clear the cookies for just your zm install. You don't have to clear them all.
User avatar
sammael
Posts: 13
Joined: Fri Jul 31, 2020 11:26 am

Re: Montage view not working last few snapshots

Post by sammael »

Ok cleared the cookies for the zm page only, after logging back in the cameras are finally shown in the Montage view, but the scaling of them still doesn't work. They show 1 under another at actual size regardless of the scale / layout setting.

In log:

Code: Select all

2020-09-05 02:57:50	web_js		62639	ERR	Uncaught TypeError: Cannot read property 'get' of null	zm/cache/skins_classic_views_js_montage-base-1599171915.js	145
2020-09-05 02:57:45	web_php		73523	WAR	Setting dimensions from scale:100	/usr/share/zoneminder/www/includes/functions.php	2069
2020-09-05 02:57:37	web_php		62568	WAR	Setting dimensions from scale:100	/usr/share/zoneminder/www/includes/functions.php	2069
2020-09-05 02:57:27	web_php		62568	WAR	Setting dimensions from scale:100	/usr/share/zoneminder/www/includes/functions.php	2069
2020-09-05 02:57:22	web_php		62568	WAR	Setting dimensions from scale:100	/usr/share/zoneminder/www/includes/functions.php	2069
2020-09-05 02:57:07	web_php		62567	WAR	Setting dimensions from scale:100	/usr/share/zoneminder/www/includes/functions.php	2069
2020-09-05 02:57:07	web_php		62567	WAR	Setting dimensions from scale:100	/usr/share/zoneminder/www/includes/functions.php	2069
2020-09-05 02:56:59	web_php		62630	WAR	Setting dimensions from scale:100	/usr/share/zoneminder/www/includes/functions.php	2069
2020-09-05 02:56:25	web_js		62629	ERR	Uncaught TypeError: Cannot read property 'get' of null	zm/cache/skins_classic_views_js_montage-base-1599171915.js	145
2020-09-05 02:56:19	web_js		62629	ERR	Uncaught TypeError: Cannot read property 'get' of null	zm/cache/skins_classic_views_js_montage-base-1599171915.js	145
2020-09-05 02:56:11	web_js		62629	ERR	Uncaught TypeError: Cannot read property 'get' of null	zm/cache/skins_classic_views_js_montage-base-1599171915.js	145
2020-09-05 02:55:44	web_php		62570	WAR	Setting dimensions from scale:100	/usr/share/zoneminder/www/includes/functions.php	2069
2020-09-05 02:55:44	web_php		62570	WAR	Setting dimensions from scale:100	/usr/share/zoneminder/www/includes/functions.php	2069
2020-09-05 02:55:41	web_php		62569	ERR	No view JS FILE?	/usr/share/zoneminder/www/skins/classic/includes/functions.php	829
2020-09-05 02:54:54	web_php		62601	ERR	No view JS FILE?
As it is now it's already workable for me, but I'd still be happier if I could get the cameras scaled 1 next to each other with the "2 wide" layout.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Montage view not working last few snapshots

Post by iconnor »

Just pushed a fix for the scaling.
User avatar
sammael
Posts: 13
Joined: Fri Jul 31, 2020 11:26 am

Re: Montage view not working last few snapshots

Post by sammael »

Great stuff now everything in Montage works, many thanks for your efforts!
Locked