out of memory message when crossfading between PLY point clouds

hc gilje's icon

Hi, a few months ago I got great advice on how to crossfade between PLY point clouds using jit.gl.model

I created a setup where the patch fades between about 15 point clouds in random order, and this runs continously. This has been running great on a mac mini M4 24/7 for about a week when the patch (and the computer) froze with a message about being out of memory.

I am wondering if I have been sloppy when replacing the PLY models in the jit.gl.model objects.

I have assumed that when I read a new point cloud the the previous one is disposed, but do I need to do this manually by using the dispose message?

The PLY files are about 2.5mb each.

TFL's icon

It isn't clear which approach you currently use: crossfade point coordinates or rendered textures of your models?

In either case you could probably have all of your 15 point clouds loaded once, then just change the reference when switching from one to another, instead of reading from disk every time.

I could provide more hints if you share your current patch.

Rob Ramirez's icon

a week straight? I would just schedule a nightly restart. I can't imagine tracking that one down...

hc gilje's icon

yes, it´s a 24/7 display in a window.
So the dispose message wouldn´t make a difference?

I will look into scheduling a restart, thanks!

Rob Ramirez's icon

I mean ideally there aren't memory leaks, and if you manage to track it down I'm happy to take a look, but if a simple nightly restart is possible that would be my recommendation.