Hi Chris,
Hope this email finds you well!
I’ve been encountering repeated issues with MWorks becoming unresponsive during an experiment and was wondering if you might have suggestions for troubleshooting it.
The issue has occurred several times over the past two days:
-
Yesterday, macOS reported “Your system has run out of application memory” during the experiment. I had to force quit several applications, including MWorks.
-
Today, I restarted the computer before the session, but after about 30 minutes both MWorks Server and Client showed “Not Responding.” The experiment itself (stimulus, reward delivery) appeared to continue running normally in front of the monkey.
-
After restarting MWorks, the issue occurred again after a while. This time, only MWorks Client became unresponsive. Server remained responsive, the experiment continued running, and the stimulus mirror window continued updating.
I’m running macOS Tahoe 26.3.1 on a Mac Studio (Apple M2 Max chip) with 32 GB RAM.
I previously ran this exact same experiment on this computer without these issues. I stopped running experiments for about 1.5 months, and yesterday and today were my first sessions after that break. I haven’t intentionally made any major changes to the experiment during that time. But I realized the automatic system update is turned on for this computer.
I tried keeping Activity Monitor open today to track memory usage, but during the experiment it does not update, so I wasn’t able to determine the memory usage immediately before the problem.
Yoon mentioned that memory issues can occur if too many image stimuli are loaded into GPU memory upfront and suggested using the deferred parameter to load stimuli on the fly. The current experiment does load 1200 image stimuli at the beginning. Do you think stimulus loading could be related to these issues, or is there anything else you would recommend checking given that the same experiment previously ran without problems?
Here I attach my experiment code. I’m happy to share other logs if needed. Thank you very much!
Best,
Chuiwen