j-a-n / lovelace-wallpanel

šŸ–¼ļø Wall panel mode and photo screensaver for your Home Assistant Dashboards
GNU General Public License v3.0
429 stars 38 forks source link

Uncaught error from Edge 126.0.0.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function #256

Closed danielbrunt57 closed 3 weeks ago

danielbrunt57 commented 1 month ago

lovelace-wallpanel v4.25.4 I am noticing two back to back errors in HA 2024.7.2 after accessing Home Assistant UI via Edge browser on Windows 11:

2024-07-18 16:14:28.655 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from Edge 126.0.0.0 on Windows 10
TypeError: wallpanel.screensaverRunning is not a function
locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2426:16)
startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2464:2)
TypeError: Cannot read properties of null (reading 'lovelace')
new WallpanelView (/hacsfiles/lovelace-wallpanel/wallpanel.js:672:39)
k (src/scoped-custom-element-registry.js:388:6)
J (src/scoped-custom-element-registry.js:236:10)
startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2462:23)
leen67 commented 1 month ago

Similar error here, from Firefox on Windows 11: 2024-07-19 13:12:37.677 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from Firefox 128.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2426:16) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2464:2) 2024-07-19 13:12:37.758 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from Firefox 128.0 on Windows 10 TypeError: getHaPanelLovelace() is null WallpanelView (/hacsfiles/lovelace-wallpanel/wallpanel.js:672:19) k (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2462:23)

j-a-n commented 1 month ago

Please try if v4.25.5 fixes the issue.

danielbrunt57 commented 1 month ago

It did not fix it...

image

Logger: frontend.js.latest.202407100
Source: components/system_log/__init__.py:333
First occurred: 5:38:47 PM (2 occurrences)
Last logged: 5:38:47 PM

Uncaught error from Edge 126.0.0.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2426:16) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2464:2)
Uncaught error from Edge 126.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'lovelace') new WallpanelView (/hacsfiles/lovelace-wallpanel/wallpanel.js:672:39) k (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2462:23)
danielbrunt57 commented 1 month ago

Ah, my bad! Too many things on the go here.

image

Logger: frontend.js.latest.202407100
Source: components/system_log/__init__.py:333
First occurred: 9:26:32 PM (6 occurrences)
Last logged: 9:29:29 PM

Uncaught error from Edge 126.0.0.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2426:16) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2464:2)
Uncaught error from Edge 126.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'lovelace') new WallpanelView (/hacsfiles/lovelace-wallpanel/wallpanel.js:672:39) k (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2462:23)
johntdyer commented 1 month ago

Same error on Android as welll

2024-07-25 13:16:09.868 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from Firefox 128.0 on Mac OS 10.15
TypeError: wallpanel.screensaverRunning is not a function
locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2426:16)
startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2464:2)
2024-07-25 13:16:10.409 ERROR (MainThread) [frontend.js.latest.202407100] Uncaught error from Firefox 128.0 on Mac OS 10.15
TypeError: getHaPanelLovelace() is null
WallpanelView (/hacsfiles/lovelace-wallpanel/wallpanel.js:672:19)
k (src/scoped-custom-element-registry.js:388:6)
J (src/scoped-custom-element-registry.js:236:10)
startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2462:23)
samueldowd commented 1 month ago

Uncaught error from WebKit 605.1.15 on iOS 17.5.1 TypeError: wallpanel.screensaverRunning is not a function. (In 'wallpanel.screensaverRunning()', 'wallpanel.screensaverRunning' is undefined) locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2427:34) /hacsfiles/lovelace-wallpanel/wallpanel.js:2467:18 dispatchEvent ([native code]::) event (src/common/dom/fire_event.ts:76:21) mainWindow.history.replaceState (src/common/navigate.ts:44:12) isNavigationClick (src/entrypoints/custom-panel.ts:132:15)

Version 4.25.5

I havenā€™t been able to figure out exactly what it triggering the error. Iā€™ve had 183 occurrences in the last 9 hours. It seems to be at least whenever I render any Lovelace page. It is definitely not limited to when I view the dashboard with Wallpanel enabled. I also tried disabling Wallpanel on the one dashboard I have it enabled on and that has not stopped the errors either.

tOsaer commented 3 weeks ago

I'm on version 4.25.6 and I still have this issue.

2024-08-12 10:06:10.144 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 126.0.0.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2436:29) 2024-08-12 10:06:11.239 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 126.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading '__lovelace') new WallpanelView (/hacsfiles/lovelace-wallpanel/wallpanel.js:673:39) k (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2472:23) 2024-08-12 10:06:14.592 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 126.0.0.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2436:29) /hacsfiles/lovelace-wallpanel/wallpanel.js:2476:3 dispatchEvent (src/common/dom/fire_event.ts:76:7) mainWindow.history.replaceState (src/common/navigate.ts:46:12) isNavigationClick (src/layouts/home-assistant.ts:136:17) 2024-08-12 10:06:14.593 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 126.0.0.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2436:29) /hacsfiles/lovelace-wallpanel/wallpanel.js:2476:3 dispatchEvent (src/common/dom/fire_event.ts:76:7) mainWindow.history.replaceState (src/common/navigate.ts:46:12) this.updatePageEl (src/layouts/hass-router-page.ts:100:15) update (src/reactive-element.ts:1329:13) performUpdate (src/reactive-element.ts:1261:16) scheduleUpdate (src/reactive-element.ts:1233:24)

lexiismadd commented 3 weeks ago

seeing alot of these errors on my system too

SimonWellsAus commented 3 weeks ago

Same errors here...

2024-08-16 02:57:56.037 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'shadowRoot') getHeaderHeightPx (/hacsfiles/sidebar-card/sidebar-card.js:18640:23) SidebarCard.updateSidebarSize (/hacsfiles/sidebar-card/sidebar-card.js:18050:30) /hacsfiles/sidebar-card/sidebar-card.js:18093:22 2024-08-16 02:57:56.038 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'shadowRoot') getHeaderHeightPx (/hacsfiles/sidebar-card/sidebar-card.js:18640:23) createCSS (/hacsfiles/sidebar-card/sidebar-card.js:18418:26) updateStyling (/hacsfiles/sidebar-card/sidebar-card.js:18692:66) /hacsfiles/sidebar-card/sidebar-card.js:18731:9 setSidebarHidden (/hacsfiles/lovelace-wallpanel/wallpanel.js:525:10) deactivateWallpanel (/hacsfiles/lovelace-wallpanel/wallpanel.js:2415:2) reconfigure (/hacsfiles/lovelace-wallpanel/wallpanel.js:2430:3) /hacsfiles/lovelace-wallpanel/wallpanel.js:2496:6 2024-08-16 02:58:18.219 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'lovelace') new WallpanelView (/hacsfiles/lovelace-wallpanel/wallpanel.js:673:39) k (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2472:23) 2024-08-16 02:58:18.837 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2436:29) 2024-08-16 03:03:10.048 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'shadowRoot') getHeaderHeightPx (/hacsfiles/sidebar-card/sidebar-card.js:18640:23) SidebarCard.updateSidebarSize (/hacsfiles/sidebar-card/sidebar-card.js:18050:30) /hacsfiles/sidebar-card/sidebar-card.js:18093:22 2024-08-16 03:03:10.048 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'shadowRoot') getHeaderHeightPx (/hacsfiles/sidebar-card/sidebar-card.js:18640:23) SidebarCard.updateSidebarSize (/hacsfiles/sidebar-card/sidebar-card.js:18050:30) /hacsfiles/sidebar-card/sidebar-card.js:18093:22 2024-08-16 03:03:12.758 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'lovelace') new WallpanelView (/hacsfiles/lovelace-wallpanel/wallpanel.js:673:39) k (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2472:23) 2024-08-16 03:03:14.450 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2436:29)

I am slso using the sidebar card on my wallpanel. One issue I am having is the screensaver function is not functioning :(, if I remove the sidebar card settings, the screensaver works again...

j-a-n commented 3 weeks ago

Please test if version 4.25.7 fixes the problem.

SimonWellsAus commented 3 weeks ago

Updated errors are as follows:

2024-08-16 18:48:28.139 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading '__lovelace') new WallpanelView (/hacsfiles/lovelace-wallpanel/wallpanel.js:673:39) k (src/scoped-custom-element-registry.js:388:6) J (src/scoped-custom-element-registry.js:236:10) startup (/hacsfiles/lovelace-wallpanel/wallpanel.js:2472:23) 2024-08-16 18:48:28.740 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: wallpanel.screensaverRunning is not a function locationChanged (/hacsfiles/lovelace-wallpanel/wallpanel.js:2436:29)

j-a-n commented 3 weeks ago

These errors are not from version v4.25.7. Please clear the cache of your browser.

SimonWellsAus commented 3 weeks ago

Cache cleared, HA restarted, no errors showing for the wallpanel, but still have screensaver issues, looking further...

SimonWellsAus commented 3 weeks ago

The errors now seem to be in the sidebar card

2024-08-16 19:56:20.861 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'shadowRoot') getHeaderHeightPx (/hacsfiles/sidebar-card/sidebar-card.js:18640:23) SidebarCard.updateSidebarSize (/hacsfiles/sidebar-card/sidebar-card.js:18050:30) /hacsfiles/sidebar-card/sidebar-card.js:18093:22 2024-08-16 19:56:20.862 ERROR (MainThread) [frontend.js.modern.202408090] Uncaught error from Edge 127.0.0.0 on Windows 10 TypeError: Cannot read properties of null (reading 'shadowRoot') getHeaderHeightPx (/hacsfiles/sidebar-card/sidebar-card.js:18640:23) SidebarCard.updateSidebarSize (/hacsfiles/sidebar-card/sidebar-card.js:18050:30) /hacsfiles/sidebar-card/sidebar-card.js:18093:22

j-a-n commented 3 weeks ago

The problem wallpanel.screensaverRunning is not a function should be solved. For other problems please create new issues.