BUG: Expression Breaks RAM Preview/Memory Leak
I have been working on a project for 10+ hours. It uses nested compositions and expressions referencing between compositions. One of the expressions is a for-loop that runs the sampleImage() expression four times - this expression in particular seems to be causing a lot of problems and throwing "internal errors."
The project has reached a point where it loads fine if all expressions are disabled - the preview updates immediately when I move the time indicator - but as soon as the expression is activated the property color changes from blue to green and hangs there instead of turning red. The preview freezes on that frame and will not update when the time indicator is moved. Other compositions do not update. If memory is purged the preview window becomes empty gray instead of showing a video frame or black screen. In Task Manager, Memory Usage constantly rises until it reaches the cap set in AE.
I've updated to the most recent AE build, graphics card driver, and version of Java, and I've fiddled with memory allocation and Secret settings. Nothing's fixed the problem so far.
Version 16.1.3, Build 5
11GB RAM reserved for AE, 5GB for other apps
sampleImage() can be slow, especially if you're running it multiple times and on larger areas of the comp, but it shouldn't be THAT slow. Can you share your expression?