reolink_dev icon indicating copy to clipboard operation
reolink_dev copied to clipboard

Recurring log errors probably causing memory leak - E1 Zoom

Open jakubch82 opened this issue 3 years ago • 4 comments

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:

  • Raspberry Pi 4B 4GB
  • Home Assistant 2022.7.5
  • Supervisor 2022.07.0
  • Operating System 7.6
  • User interface: 20220707.1 - latest
  • Conbee 2
  • SSD over USB adapter
  • Reolink camera model - E1 Zoom (named: Salon)
  • Camera firmware number - v3.0.0.1107_22070508 (updated from v3.0.0.716_21112408 trying to see if firmware has impact on this errors)
  • Reolink camera model - E1 Zoom (named: Kuchnia)
  • Camera firmware number - v3.0.0.716_21112408

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

jakubch82 avatar Jul 17 '22 09:07 jakubch82

Additional log entries: additional_log_entries.txt

jakubch82 avatar Jul 18 '22 11:07 jakubch82

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

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

enkama avatar Jul 26 '22 15:07 enkama

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.

jakubch82 avatar Jul 28 '22 07:07 jakubch82

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.

mnpg avatar Aug 11 '22 10:08 mnpg