← Back to team overview

sikuli-driver team mailing list archive

[Question #160893]: help debugging leaking script

 

New question #160893 on Sikuli:
https://answers.launchpad.net/sikuli/+question/160893

I have a nice script that is multi threaded and does some neat stuff. it will run for about a day and half almost two days. It preforms 13 score captures on 13 threads at the same time. the fact that it runs for almost 2 days before it crashes(java.lang.OutMemorryError) makes me believe that it's a small leak. 

-things i have not done yet:
1)I know i need to make sure my variables are in correct scope so that they get collected automatically.
2)i haven't tried debugging it in eclipse... which now that i think about it i should try it.
3)i'm also looking into how to use pdb. http://catherinedevlin.blogspot.com/2010/09/pdb-with-sikuli.html

-thing i have tried but didn't work:
1) I wanted to basically see if the debugging with the gc would give me a better idea of what/where to look for my coding mistakes. the gc.set_debug(gc.DEBUG_STATS) doesn't seem to work. what am i doing wrong?

import gc
gc.set_debug(gc.DEBUG_STATS)
_______

gc.set_debug(gc.DEBUG_STATS) AttributeError: type object 'org.python.modules.gc' has no attribute 'DEBUG_STATS'

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.