memory hog

vivamax's icon

I have a simple video monitoring application that uses 2 cameras. The same patch is used in 2 locations. One of them running on an iMac is working without a problem. The other one running on a 2020 M1 Mac mini was working ok for a while, but lately, I am not sure when(perhaps after an OS update/upgrade) I have been experiencing issues. It starts by becoming sluggish, not responding quickly to mouse clicks, lower video frame rates etc. and then freezes altogether. This happens both with a max patch and the standalone. Recently, I noticed the application using 11GB of memory when running sluggish. It starts with about 200MB and keeps increasing in time. About a month ago, I found out the app only worked for a couple of minutes before the machine GPU displays 0% use and the video frames stopped. At that point I added a timer to the patch that closes and reopens the jit.grab objects every 2 minutes to prevent it from freezing. It is after this change I am noticing the memory issues. The max version I am using is 8.3.2. Any help? Code attached.

2camText.zip
zip 2.49 KB
2camText.txt
txt 13.17 KB

Rob Ramirez's icon

first thing to try is see if it's fixed in 8.6.2