Skip to content
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

Data update requested by Kodi or DreamPlayer causes memory leak of /usr/bin/enigma2 process #3538

Open
ProTofik opened this issue Feb 19, 2025 · 0 comments
Labels

Comments

@ProTofik
Copy link

ProTofik commented Feb 19, 2025

Hello,

I have a problem with memory leak of /usr/bin/enigma2 crashing my receiver.

Describe the bug / Actual behaviour:
Every time a client such as Kodi with PVR plugin or Android TV/Fire TV app called DreamPlayer makes data request to my OpenATV receiver, the memory usage of the process /usr/bin/engima2 increases slightly. Eventually after a few days the receiver stops responding and needs to be rebooted.

Have a look at the screenshots below. I am monitoring my receiver using net-snmp-server plugin and LibreNMS.

Here is the screenshot of physical memory usage:

Image

And here is the screenshot of network usage:

Image

On the combined graph below, you can see that the memory usage increase happens every 2 hours, at exactly the same time as my clients are making data update queries:

Image

Using ps or htop, I can see the memory usage of /usr/bin/enigma2 increasing every time a request is made by one of my clients.

Image

This eventually leads to the receiver crashing once it runs out of available RAM.

Expected behaviour:
/usr/bin/enigma2 process should free up the RAM once it is done providing requested data to remote clients.

Has this issue started to happen just recently?
It started a few months ago when I added 2 more remote clients to my household. I only got around to properly trace the root cause of the problem today though.

To reproduce:
Steps to reproduce the behavior:

On the receiver:

  1. Flash OpenATV 7.5.1.20250218 image onto Zgemma H9 TWIN receiver
  2. Install OSCam 2.25.01-11868-802 plugin
  3. Upload bouquets to the receiver

On a client of your choice such as Kodi with PVR plugin, or DreamPlayer installed on Android TV or FireTV:

  1. Point the client app of your choice to the IPv4 address of the OpenATV receiver
  2. Wait for it to sync channels, picons, EPG, and so on, or force the update

Back on the receiver:

  1. Observe memory usage of /usr/bin/enigma2 increasing and not dropping back down to its previous level as the update completes.

Image/Box Model (please complete the following information):

  • Version: OpenATV 7.5.1.20250218 (2025-02-18)
  • BoxModel: Zgemma H9 TWIN

Additional context
Just for clarity, over the past few months I have reflashed my Zgemma receiver multiple times and kept the config as bare-bone as possible to isolate this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant