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

Memory leak in eCAL Python binding #1753

Closed
KerstinKeller opened this issue Oct 1, 2024 · 1 comment
Closed

Memory leak in eCAL Python binding #1753

KerstinKeller opened this issue Oct 1, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@KerstinKeller
Copy link
Contributor

KerstinKeller commented Oct 1, 2024

Problem Description

The following simple Python monitoring sample leaks memory:

import ecal.core.core as ecal_core
import sys
import time

def main():
   ecal_core.initialize(sys.argv, "Python Monitoring")
   ecal_core.mon_initialize()
   
   while ecal_core.ok():
       try:
           topics = ecal_core.mon_monitoring()[1]['topics']
           for topic in topics:
               print(topic['tname']) 
       except Exception:    
           pass
       time.sleep(1)
      
   
if __name__ == "__main__":
   main()

Problem

The problem is that mon_monitoring (and also mon_logging ) doesn't properly decrease all internal references and thus leaks memory.

How did you get eCAL?

I don't know

Environment

master, v5.12, v5.13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant