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? #18

Open
oeway opened this issue Oct 28, 2013 · 0 comments
Open

Memory leak? #18

oeway opened this issue Oct 28, 2013 · 0 comments

Comments

@oeway
Copy link

oeway commented Oct 28, 2013

Hi Thomas,
The ScriptEditor is awesome, and I like script in Python.
Recently, I found some memory issue when using the the scriptEditor. The following steps will reproduce the problem:
1 Set "Max memory" option in Preferences into some small value, for example 128M.
2 Open a sequence to eat up almost all the memory.
3 Open "Script Editor", put the following python code and run it:

from icy.main import Icy
from icy.sequence import SequenceUtil
sequence = Icy.getMainInterface().getFocusedSequence()
print somethingNoneExist

And, a error will be thrown.
4 Close the sequence and the Script Editor
5 open the sequence again, memory will overflow.

If we do the similar thing in Javascript, memory won't overflow. But if you don't close the Script Editor in step 4, it will overflow too.

This means the script engine won't clean the memory when error occured in script. I've tried to read the code, but I can't find a way to do that. I hope you can fix this, it bothered me a lot.

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

1 participant