[gt-users] custom-track memory leak
Sascha Steinbiss
steinbiss at zbh.uni-hamburg.de
Tue Nov 17 12:08:33 CET 2009
On 11/16/2009 06:15 PM, Troels Marstrand wrote:
> I am trying to replicate the custom track example from the python
> tutorial pages, however, I get to following error message:
>
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
> packages/gt/annotationsketch/layout.py:51: RuntimeWarning: memory leak
> in callback function.
> had_err = gtlib.gt_layout_sketch(self.layout, canvas, err)
Dear Troels,
thanks for your message.
I am aware of this message (which has been reported before, see
http://genometools.org/pipermail/gt-users/2008-December/000017.html).
At that time I was not able to verify that a memleak resulting from
GenomeTools code actually existed, so that issue was not investigated
further.
In any case, the message reported by you is in no way an 'error
message', but rather a simple warning from the Python interpreter. If
you append the line
canvas.to_file("output.png")
to your example code, you would get a proper image output regardless of
this warning.
Since this is the second time this is reported, I guess I will take the
time and get rid of this message once and for all by rewriting how
strings are passed to and from the CustomTrack callback functions.
These fixes will be available from the git repo soon.
> Thanks in advance for any help
You're welcome...
> Cheers
> Troels
Bye,
Sascha
--
Sascha Steinbiss
Center for Bioinformatics
University of Hamburg
Bundesstr. 43
20146 Hamburg
Germany
Email: steinbiss at zbh.uni-hamburg.de
URL: http://www.zbh.uni-hamburg.de/steinbiss
Phone: +49 (40) 42838 7322
FAX: +49 (40) 42838 7312
More information about the gt-users
mailing list