Memory leak in jit.gl.text2d/3d
I’m working on an application that uses a js-scripted jit.gl.text3d object in the same pattern as the multi_text subpatch in the jit.gl.text2d help file to render a few hundred blocks of animated text to the output. I’ve found that my application leaks memory horribly (uses 2GB and crashes within a few minutes).
Upon further review, the multi_text subpatch in the help file actually leaks as well (with no js), just much more slowly because it’s rendering only 8 blocks of text at only 10fps. If I change the patch to render 300 text blocks at 50fps it leaks at the same rate as my js version.
I’ve emailed C74 support, but does anyone have any suggestions in the meantime?
I’ll attach my modified version of the patch from the help file.
yes does leak here too
with about 1 mb every 2 seconds
running at 10fps
but not chrashing (yet)
maybe when the memory is full … that would be in about 6 hours … got 12Gb .. lol
last month also got some problems with jit.gl.text2d ( it can only work with 255 or less lines …)
and worked around it with text > jit.lcd > texture > videoplane
Thanks for the clear example. I can reproduce, and will work on a fix.
Excellent, thanks! Any idea when I might be able to expect the fix? I’ve got to deliver this project in a little under 2 weeks, and if I can’t get a fix by then I’ll have to investigate a different solution (which I hope to not have to do, as the current one works great except for the leak).
On Feb 9, 2009, at 11:48 AM, James Nick Sears wrote:
> Excellent, thanks! Any idea when I might be able to expect the
> fix? I’ve got to deliver this project in a little under 2 weeks,
> and if I can’t get a fix by then I’ll have to investigate a
> different solution (which I hope to not have to do, as the current
> one works great except for the leak).
We hope to release 5.0.6 in the near future. If it doesn’t happen in 2
weeks, I can get you a version for your project.
Thanks for the reports.
Forums > Jitter