ui3 icon indicating copy to clipboard operation
ui3 copied to clipboard

An error loccurred loading the camera list.

Open ChrisOdinUK opened this issue 9 months ago • 6 comments

Please COPY this text to share with support. Error in UI3 (v 286 / 5.9.9.30)

Uncaught TypeError: Cannot read properties of undefined (reading 'toFixed') 
at https://censored_hostname/ui3/ui3.js?v=286-5.9.9.30 [1458:132] 
TypeError: Cannot read properties of undefined (reading 'toFixed') 
    at Object.comment (/ui3/ui3.js?v=286-5.9.9.30:1458:132) 
    at LoadCategory (/ui3/ui3.js?v=286-5.9.9.30:33794:56) 
    at UISettingsPanel.Refresh (/ui3/ui3.js?v=286-5.9.9.30:33705:8) 
    at UISettingsPanel.open (/ui3/ui3.js?v=286-5.9.9.30:33693:8) 
    at HTMLAnchorElement.<anonymous> (/ui3/ui3.js?v=286-5.9.9.30:31493:20) 
    at HTMLAnchorElement.dispatch (/ui3/libs-ui3.js?v=286-5.9.9.30:4:12444) 
    at r.handle (/ui3/libs-ui3.js?v=286-5.9.9.30:4:9173) 
 
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

this was the error on the UI3 web version so thought it would be best to post it here? this was the error I got after adding a camera with a FILE image rather than a normal camera.

ChrisOdinUK avatar Mar 16 '25 15:03 ChrisOdinUK

Also just want to add this stops the webpage fully loading

Image

ChrisOdinUK avatar Mar 16 '25 15:03 ChrisOdinUK

What do you mean by "adding a camera with a FILE image rather than a normal camera"? File is not an option for new cameras.

Image

bp2008 avatar Mar 16 '25 18:03 bp2008

Also, can you share exactly what you used for a camera name? (Name and Short name) I suspect that is the root of the issue and if there is a particular character in there causing the JSON from Blue Iris to be wrong, it would be good if I knew what it is so I can report it to Blue Iris support.

bp2008 avatar Mar 16 '25 18:03 bp2008

Image

then i pressed find/inspect which gives me a normal file window, i added the file name in the normal url box and added it, it works fine in the Blue Iris software, added my weather/cpu overlays from Blue Iris Tools but the webpage version gave those errors, does this help? The names were Computer Stats (stats) - did try other names such as Information (info) and Weather (weather) all cause the same errors

ChrisOdinUK avatar Mar 16 '25 19:03 ChrisOdinUK

Yup that helps. I had no idea you could select file:// as the protocol in that panel. I tried setting up one like that myself and I see the problem.

I will let Blue Iris support know, so you can expect this to be fixed within the next 1-2 Blue Iris updates.

In the meantime you can work around the issue by replacing all \ characters in the path with / characters.

bp2008 avatar Mar 16 '25 20:03 bp2008

Thank you, using / does fix the problem!

ChrisOdinUK avatar Mar 16 '25 20:03 ChrisOdinUK

This bug was fixed in Blue Iris, probably not long after I reported it to them. I didn't test again until today and found it no longer caused a script error in UI3.

bp2008 avatar Aug 26 '25 21:08 bp2008