PsychoPy freezes inconsistently during experiment

OS (e.g. Win10): MacOS Mojave 10.14.6
PsychoPy version (e.g. 1.84.x): v2022.2.5
Standard Standalone? (y/n) If not then what?: y

My experiment has 3 phases. In the first phase, participants see images while listening to recordings. In the second phase, they see the same images and record a response. In the third phase, they hear the same recordings and record a response. PsychoPy randomly freezes (at different points and sometimes not at all), usually during the third stage (recording&response stage) but sometimes during the second stage (image&response stage).

I thought it might be a memory issue but I ran it windowed with Activity Monitor open and when it froze the memory wasn’t maxxed out. I also thought it might be because there’s too many messages in console so I ## out all of the print statements but that didn’t work either.

Any help would be appreciated! Here’s my compiled code: #!/usr/bin/env python# -*- coding: utf-8 -*-"""This experiment was created - Pastebin.com

Any suggestions ASAP would be very much appreciated!