-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak on HA OS 11.5 #401
Comments
Do you have any HA logs just before it was killed? |
@Tasshack nothing. The logs before it was killed were from around 15/20 seconds before. |
That may mean it crashes when installing the prerequisites. You can try to manually install the requirements from virtual environment of the HA
|
@Tasshack That could definitely be the issue. I remembered now that when watching Just for clarity: the manual install you suggested is to debug the problem or a definitive fix? Because i think that if i run those commands in the Core container they won't be preserved on container restart, or not? |
For debugging; For fix;
You probably won't be able to install it manually too since it still will be using to much memory but that is an another issue to solve. |
@Tasshack Home Assistant OS is basically a Linux image containing scripts that orchestrate some docker containers (Home Assistant Core, Home Assistant Supervisor, Home Assistant Observer, the addons you install from the addons page and a few more). I don't know if that could help you but i'm running my install on Proxmox on an I've tried removing the But the weirdest thing is that even when restoring the full backup that was "broken" on another instance (aka, with the integration installed and untouched), and that was throwing the error in the photo above. The only difference between when i was restoring that a few hours ago trying to debug (and it was giving me the error) and now is that now the robot is cleaning and back then it was at its base. I have no idea if this can have an influence. Could that be some sort of server-side issue of PyPI or the package repository the dependency used that caused the leak, and it being now fixed the package installs like normal? I have no idea |
That library is responsible for running the JS code that is for optimizing the VSLAM vacuum maps because python is too slow for running some flood fill algorithms and such. Since yours is a LIDAR device, that piece of code won't be used but python will complain about the |
@Tasshack i can confirm that re-installing the integration on my main Home Assistant instance now works. I have no idea what can have caused that memory leak repeatedly (and i can confirm that the problem wasn't one-shot, i've created multiple VMs and installed the plugin multiple times). Do you think the hypotesis i wrote in the message above can make sense?
|
I have a Proxmox snapshot of the instance made at the time when the installation was memory leaking. I will try to restore a VM with that snapshot to ensure that the problem is now ok. I still can't explain what happened |
Normally |
@Tasshack that makes sense, but even if it needs to compile for x64 do you think that it needs to use more than 6GB of memory? It still seems a lot to me. I can confirm that after the restore of the affected snapshot everything now works correctly. |
As I said before, memory usage is another issue that is not the scope of this project and can be resulted from many different reasons apart from the integration. |
@MattiaEffendi looks like this is not an issue limited to your setup after all. |
Describe the bug
When initializing the integration (both pre-configured or via the configuration wizard, at the end), Home Assistant docker container starts using a lot of RAM, leading to the container being killed by the host system.
When that happens, HA Core is dead and the frontend cannot be reached. HA Core restart or host reboot doesn't help, leading to the same problem
The only way to fix is to log-in via SMB (if you have the addon installed) and delete the
custom_components/dreame_vacuum
folder.I have been running the integration
v2.0.0b11
without any problems for the past few months, and this only started happening yesterday after updating Home Assistant Operating System to 11.5.The VM that was running Home Assistant has always had 2GB of RAM, i've increased that to 6GB to try and see if it was the problem but it still persisted.
I've been able to fix my main Home Assistant instance as described above, but i have a Home Assistant snapshot affected by this problem that i can restore on another instance to investigate the problem.
To Reproduce
Or, if you have the addon already installed and integration set-up:
Expected behavior
Be able to set up the integration, or boot HA core if the integration itself is already installed.
Screenshots
Additional Information (please complete the following information)
The text was updated successfully, but these errors were encountered: