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 #1425
Comments
Hyperion is not exactly a small project. To find the memory hog, one would have to know what exactly you did in the 4 days. For example, to exclude the effect engine, you would have to turn off the start effect and the background effect and not use any effects during the 4 days. If the memory still fills up then it is another component. |
Hi, I have the same problem. I was able to narrow down the error. I have played with some settings and the problem only occurs when i activate the "LED Output". My RPI3b runs slowly out of memory and Hyperion ng process is responsible for it. My short config:
Hyperion System Summary Report (My Hyperion Config), Reported instance: unknown < ----- System information -------------------- >
Hyperion Server OS:
< ----- Configured Instances ------------------ > < ----- This instance's priorities ------------ > < ----- This instance components' status -------> < ----- This instance's configuration --------- > |
@ManuVice Could you test, if that happens too, if you have smoothing off and maybe blackborder detection? Smoothing is off when the LED-Device is off, therefore the issue might not be related to the device itself, but to the part between grabber and device. On the Karate Code I have ad-hoc not seen any issue… @darkcheater Would you mind sharing your configuration too. To see, if there are commonalities? |
Thank you for reply. I have test it in past (February, March) with black bar detection and smoothing off and both off. Last version that worked for me was alpha 4 or 5. I have looked at the commits between the last versions but my code understanding is too bad. My result is that the error has to do with lights enable. |
@ManuVice Thank you for the derailed summary. I will have another look. |
Thank you. I will do it tommorow. If it helps I had created a forum thread with libleak enabled. Log is posted as attachment. https://github.com/WuBingzheng/libleak https://hyperion-project.org/forum/index.php?thread/12423-memory-leak/ |
@Lord-Grey I have set a new clean config with default settings up. Tested a few things. I have found an interesting thing. If I set LED Output to file memory looks fine. Memory after 2min with led output FILE Memory after 2min with Karate16 Memory after ~5min with Karate16 and 50fps Memory after I disable led output in dashboard after ~5min 50fps |
I have set up a new device (odroid c2) with only hyperion on it. it uses right now 1,4gb of memory 🙈 |
@darkcheater / @ManuVice You are running your grabber with encoding format MJPEG. Thank you! Edit: No need for further testing. Seems I identified some issue in context of the LED update… |
I have an update on this issue. I also tried various docker versions.. same issue. But then I discovered https://hub.docker.com/r/bradsjm/hyperion-ng-addon-aarch64 |
I'm seeing the memory usage of Hyperion increase each time I switch to a different effect. It doesn't seem to go back down. Hyperion 2.0.15, Pi 2, OSMC / Kodi 18. |
I can confirm this also. Overnight my LXC container went from 250MB RAM usage to 520MB used. Newest version of Hyperion NG installed on Ubuntu 22.04 LXC container. Hyperion is set to only listen for Android grabber. |
The issue was already open too long... @darkcheater, @ManuVice, @jamieburchell, @seirowg and others Testing the PR on Linux
Note:
Note 2: Sample Current user |
Hi, I'am sorry but I cannot reproduce the memleak. I have tried some docker containers which had the memleak in past, but now they are working fine. I will start some new tests with a fresh native install in the next days |
@ManuVice Thanks for looking into it. |
I've set up my OdroidC2 with a fresh bullseye image, but I could not reproduce the memleak. I've also tested your PR and it worked fine, too. Hopefully this PR will solve it for the others with this problem. Thank you for your hard work!! |
Bug report
I have to restart hyperion from time to time because eventually, it will eat all my memory.
Steps to reproduce
Start hyperion and use it. I use effects for usual lighting and for ambilight I use the Kodi grabber addon (windows) as source.
What is expected?
RAM usage stays on the same low level.
What is actually happening?
After 4 days hyperion uses more than 2 GB of RAM.
I have attached two pmap outputs.
The first one is directly after the restart of the service (0,3 GB) and the second one is 4 days later (2,1 GB).
fresh.txt
4days.txt
If you need any additional information, please ask.
Thanks!
System
Hyperion Server:
Hyperion Server OS:
The text was updated successfully, but these errors were encountered: