Max Puzzle: jit.gl.model doesn't clear itself when replacing the model


    Feb 21 2017 | 9:24 pm
    I'm working on an installation that is randomly downloading 3D models from different open source databases...
    Every n seconds a new model is downloaded and replaces the old one.
    The problem is that when a new model is loaded, the old one stays in the ram, and over time this builds up and Max crashes.
    Have any of you experienced this and come up with a workaround? Currently I am having to make max close and restart the patch with another max standalone which works but is not so elegante.
    Attached is a patch to reproduce the problem. It just loads duck.dae every two seconds. If you check your activity monitor you will see the ram increase ever so slightly as the duck is loaded more and more.
    ok every one have a good day ok?

    • Feb 22 2017 | 5:22 pm
      hi Thomas, thanks for the clear report. this is the first i've seen this. will take a look and try and get it fixed up.
      you solution sounds like an appropriate workaround for now. not sure how you're doing it, but i would do something like have one main instance, and two sub instances that load the models send to the master using syphon. these can be periodically restarted and swapped.