koush / ha_scrypted

32 stars 4 forks source link

Chrome tab freezing and not showing NVR cards when HA menu is collapsed #25

Open kersten-lohmeyer opened 1 week ago

kersten-lohmeyer commented 1 week ago

Describe the bug When collapsing the HA menu NVR cards won't load and Chrome (macOS, current version) tab is freezing. No extensions, clean install, deleted caches and support files in file system, not even logged in with Google account. Works in current Firefox.

To Reproduce Steps to reproduce the behavior: When HA menu is not collapsed and there are NVR cards on your dashboard, collapse the menu.

Expected behavior I expect the NVR cards to work when the HA menu is collapsed

Video https://github.com/user-attachments/assets/2a994037-bdb2-463b-b062-483d77f04d24

Desktop (please complete the following information):

Additional context Allow local access is checked in system settings for Google Chrome.

koush commented 1 week ago

Not seeing this behavior on demo site https://ha-demo.scrypted.app

kersten-lohmeyer commented 1 week ago

I get this:

image

In FireFox:

image
koush commented 1 week ago

check your browser console.

kersten-lohmeyer commented 1 week ago

check your browser console.

There's nothing:

image
kersten-lohmeyer commented 1 week ago

Now I disconnected from my local fibre and connected to 5G via my iPhone but same problem:

image

Same with Test-Site on 5G:

image

On Test-Site it doesn't even make a difference if the HA menu is collapsed or not. Might have to do with the Sequoia installation, don't know. But it's a PITA to set it up from scratch. Even more if it's in vain.

kersten-lohmeyer commented 1 week ago

When I reopen my HA with a different URL other than the main dashboard everything is fine and if I expand the menu again I can even access the main dashboard with the NVR cards loaded correctly:

koush commented 1 week ago

I'll check in discord if anyone else is having issues.

koush commented 1 week ago

are you using pinhole or any content blockers or filters on your network or phone

kersten-lohmeyer commented 1 week ago

are you using pinhole or any content blockers or filters on your network or phone

I use the AdGuard Home addon in HA, but I disabled it for testing purposes. I also use it on my phone.

kersten-lohmeyer commented 1 week ago

Might using the HA Scrypted AddOn be a solution to that? Or is this way worse performance wise? I might be adding a second camera but that would be it.

koush commented 1 week ago

feel like something else is going on if the demo site doesn't work correctly for you.

kersten-lohmeyer commented 1 week ago

I asked a colleague to try the HA demo site with the most current Chrome on macOS (also different network) and it didn't work for him too (but he's still on Sonoma).

image

But it does work in Windows with latest Chrome for me and my colleague.

koush commented 1 week ago

thanks let me see if I can get a repro.

kersten-lohmeyer commented 4 days ago

I did some tests with sections in HA today. This is how it turned out. If you're not in edit mode of your view everything's alright:

Bildschirmfoto 2024-11-09 um 10 59 22

If I edit this view my chrome tab instantly freezes:

Bildschirmfoto 2024-11-09 um 10 59 37
kersten-lohmeyer commented 2 days ago

I started from scratch now with a completely new dashboard (also deleting my old ones) using sections. So far so good. Will report back if there are still any problems. Still curious why the demo site is not working for me though.

EDIT: Demo site is working now, at least the latest events. What did you change?

image
kersten-lohmeyer commented 1 day ago

Oh no, it hangs again. No idea why it was working now for at least 30mins. I added a second view and then it stopped working in edit mode. Deleting the second view on the dashboard doesn't help.

Now I also got a freeze in Firefox:

image