-
Notifications
You must be signed in to change notification settings - Fork 68
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 when calling run_script #338
Comments
Thanks for the report. I confirmed this behavior is reproducible with |
I believe I found the cause of this. The creation of AutoHotkey processes uses the start method (or here in the sync API), which includes a call to However, this obviously causes a reference to be held for the When I remove this line, the memory buildup no longer occurs. |
How am I able to copy your fix? Will there be an updated version of AHK wrapper released soon? Thanks :) While I understand this is an open source project and i cannot expect a fast response, a memory leak is a pretty critical issue to deal with. |
GH-338 allow garbage collection of non-daemon processes
This is fixed in version 1.8.0 |
Hell yeah, thanks man! |
describe your issue
Had a python based AHK script running that consistently presses some values using asyncahk.
Memory kept increasing over time, currently over 4GB.``
ahk.version
latest
AutoHotkey version
v1
Code to reproduce the issue
Traceback/Error message
Observe memory usage increasing over time.
The text was updated successfully, but these errors were encountered: