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 occurs when creating a new type #8

Open
zaxrok opened this issue Feb 2, 2018 · 2 comments
Open

memory leak occurs when creating a new type #8

zaxrok opened this issue Feb 2, 2018 · 2 comments

Comments

@zaxrok
Copy link

zaxrok commented Feb 2, 2018

A memory leak occurs when this part with_service_schemas(service_class) is used.
This is a serious problem, so we need to take quick action.
And I found the code that caused a memory leak so I look forward to your efforts.

MsgSchema = type(ros_msg_class.__name__ + 'Schema', (RosSchema,), members)

Please check

@asmodehn
Copy link
Member

asmodehn commented Feb 2, 2018 via email

@asmodehn
Copy link
Member

asmodehn commented Feb 6, 2018

We also need to think about automatic testing, to make sure we don't have the same issue in the future.

How would you design tests for memory leaks ? We need to cover as much code as possible and test that no leaks happen.

Ideally we should merge the leak tests in before the PR #9, to quickly prove there are leaks before (in master), but there are gone in PR branch.

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

No branches or pull requests

2 participants