b0mbays / continuously_casting_dashboards

HACS Integration for continuously casting a Home Assistant dashboard to your Google Chromecast Displays
MIT License
208 stars 9 forks source link

memory leak #52

Closed kirill578 closed 4 months ago

kirill578 commented 6 months ago

I forced logged out all of my devices that the nest hub into a state where is it connected to the network but it is pending pairing it with a google account. This seem to cause the integration to keep on trying spinning endless instances untill the machine runs out of memory image image

this is what I am seeing looking in the logs

2024-03-13 09:42:42.596 INFO (MainThread) [homeassistant.setup] Setting up continuously_casting_dashboards
2024-03-13 09:42:42.598 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] state_triggers_map: {}
2024-03-13 09:42:42.598 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] monitored_entities: set()
2024-03-13 09:42:42.598 INFO (MainThread) [homeassistant.setup] Setup of domain continuously_casting_dashboards took 0.0 seconds
2024-03-13 09:43:16.729 ERROR (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Asyncio TimeoutError checking Dummy state for 192.168.XX.XX: 
2024-03-13 09:43:46.734 ERROR (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Asyncio TimeoutError checking Dummy state for 192.168.XX.XX: 
2024-03-13 09:43:46.735 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] HA Dashboard (or media) is NOT playing on 192.168.XX.XX!
2024-03-13 09:43:46.735 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Casting dashboard to 192.168.XX.XX
2024-03-13 09:43:46.738 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Executing stop command...
2024-03-13 09:42:43.545 DEBUG (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] All device map: {'192.168.XX.XX': {'instances': [{'dashboard_url': 'https://X/main?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': 5, 'start_time': datetime.time(6, 0), 'end_time': datetime.time(0, 15), 'instance_change': False}], 'current_instance': 0}}
Current device map: {'192.168.XX.XX': {'dashboard_url': 'https://X/main?kiosk', 'dashboard_state_name': 'Dummy', 'media_state_name': 'PLAYING', 'volume': 5, 'start_time': datetime.time(6, 0), 'end_time': datetime.time(0, 15), 'instance_change': False}}
2024-03-13 09:42:43.545 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Current local time: 09:42:43.545201
2024-03-13 09:42:43.545 INFO (MainThread) [custom_components.continuously_casting_dashboards.dashboard_caster] Local time is inside the allowed casting time for 192.168.XX.XX. Start time: 06:00:00 - End time: 00:15:00
b0mbays commented 6 months ago

Hey @kirill578 not too sure on how to fix this one without replicating it, and I'm not wanting to force log out of all of my hubs and setting up the configuration again for each; I'll leave this one open as an issue and see if anyone has any ideas on how to fix.

Thanks for raising it 👍

b0mbays commented 4 months ago

Closing issue just to clean up. Will re-open if I plan on working on this or someone else does 👍