-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
pull request about issue #2062 (car_racing.py memory leaking issue ) #2096
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Jaekyung-Cho,
I've been debugging the same issue. Looks like we need to add vl.delete()
after vl.draw
in function render_indicators
(line 592). It looks like the memory consumption is still growing after this change, but much much slower.
Exactly. Memory leaking still remain, but I cannot find where it occur. Though slower leaking issues doesn't matter in my case. |
Looks like this is an issue with Box2D, I was able to isolate the memory leak down to creating the tiles in
Looks like it's time to submit an issue to pybox2d. :D The slow leaking doesn't matter in my case either, though it'd be nice to have this issue resolved. Would you be able to add the second |
Oh! I think I misunderstand your mention. I'm so sorry about that. I add vl.delete() in render_indicators function and make PR now. Thank you for your help. |
|
This solution works well for me. Memory remains low, |
Me too |
Any updates in this one? Do you think this PR is any close to be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been able to reproduce the issue. Once the PR is applied, the memory leak is gone or at least not exploding.
Thanks for reproducing instead of me!! |
@pzhokhov @zuoxingdong I see you've been contributing quite a lot last months. Do you know what we can do to move this forward? are you maintainers? I am guessing this issue is making people to start forking. I'd be pretty good for this community to approach this nasty bug. thank you A release with the fixing would be appreciated too 👼 |
…sue ) (openai#2096) * car_racing.py memory leaking issue openai#2062 solving * additional memory leaking resolve
Pull request about issue #2062
There is memory leaking issue caused by pyglet module and solved with simply delete after drawing vertexs
I confirmed with e-mail from @praveenVnktsh