< Back to IRCAM Forum

Memory Limit Error

Hello,

Working on a patch that processes sound files algorithmically I encountered the following error:

ERROR: Approaching memory limit. Total size 132702968, margin 11403264

From that moment on I’m unable to do anything.
Has anyone else encontered this problem?
Is there something I can do to resolve this issue?

All best,

jc

Hi – when you get to this memory limit warning, it is normal that the whole application becomes unstable. you should better restart then.
Two possible reasons: 1) OM leaks memory in the audio processing (not to exclude) or 2) your process is just too greedy and can not run within OM-allocated space.
What version of OM are you using ?

Hello Jean,

I evaluated “(clean-down)” in the listener buffer and was able to save the patch and then restart.
I’m on 6.9, and was probably beeing too greedy – iteratively building very long soundfiles.

I’m a bit in the dark as I don’t understand fully how the garbage collection works, but since “clean-down” seemed to help, I suppose it is related.

Is there a way to “free” memory or clean garbage collection manually?

all best,

jc

clean-down is actually a way to reduce memory manually
You should use OM 6.10. It runs on 64-bits and has more memory

Hello Jean,

I’m working now on 6.10 and the problem disappeared.

Thank you,

jc