fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
553 stars 101 forks source link

Recurring log errors probably causing memory leak - E1 Zoom #533

Open jakubch82 opened 2 years ago

jakubch82 commented 2 years ago

Describe the bug First of all I want to thank you for a very useful integration. I've got 2 Reolink E1 Zoom cameras. After update HA from 2022.6.5 to 2022.7.5 I noticed lots of recurring errors in log: 2022-07-17 10:12:24 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Kuchnia.motion_states data 2022-07-17 10:13:54 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Kuchnia.motion_states data 2022-07-17 10:18:54 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Salon.motion_states data 2022-07-17 10:19:24 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Kuchnia.motion_states data 2022-07-17 10:21:54 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Salon.motion_states data 2022-07-17 10:31:54 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Salon.motion_states data 2022-07-17 10:37:54 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Salon.motion_states data 2022-07-17 10:41:54 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Salon.motion_states data 2022-07-17 11:00:54 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Kuchnia.motion_states data 2022-07-17 11:15:54 ERROR (MainThread) [custom_components.reolink_dev] Timeout fetching reolink.Salon.motion_states data Before 2022.7.5 there where also but not so many. Addition to that I notice memory usage constantly rising up. There are fewer errors at night, probably because the camera is not detecting movement. However, during the day it happens that errors occur every 2 minutes. I suspect this is the cause of the memory leak also. Despite these errors, the cameras work fine in HA.

To Reproduce Update HA Core to 2022.7.5

Expected behavior No errors. No memory leaks.

Screenshots image image

Environment:

Additional context Typical stable memory usage is about 22-23% prior to 2022.7.5 update.

jakubch82 commented 2 years ago

Additional log entries: additional_log_entries.txt

enkama commented 1 year ago

There is a firmware update. Having similar problems. Maybe that helps.

https://reolink.com/download-center/?firmware-product=e1-zoom

jakubch82 commented 1 year ago

Both my cameras now have the latest firmware. I still saw errors in the logs. I had to disable this integration because of the memory leaks it was causing. It's a pity, because my automatization was based on this integration - mainly turning on and off recording. I have no problem with these errors, only with the memory leakage they cause. Despite the occurrence of errors, all cameras worked in HA.

mnpg commented 1 year ago

Reboot your camera and check if it's soluted your problem. Sometimes, not often, my cameras didn't worked properly (well), i need to reboot them to make them fully functionals.