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 usage increasing over time in OS X #514

Closed
tioover opened this issue Jul 4, 2015 · 1 comment

Comments

@tioover
Copy link

commented Jul 4, 2015

In OS X glutin program memory usage slow increasing over time. (example 1 2)
especially when shaking the mouse memory usage will increase rapidly.

reddit post

@SSheldon

This comment has been minimized.

Copy link
Collaborator

commented Jul 20, 2015

During one of these spikes, I'm seeing a lot of NSEvents allocated and never deallocated:
screen shot 2015-07-20 at 12 07 19 am

Looks like this is from nextEventMatchingMask_untilDate_inMode_dequeue_, but all the retains seem to be paired with an autorelease:
screen shot 2015-07-20 at 12 09 33 am

Is an autorelease pool ever set up? If anything autoreleased is leaking, that would explain it...

fkaa added a commit to fkaa/glutin that referenced this issue Mar 2, 2016

paulrouget added a commit that referenced this issue Mar 17, 2016

Merge pull request #733 from fkaa/cocoa-memleak
Fix memory leak while creating NSEvent and swapping buffers (Fixes #514)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.