Can’t launch an experiment on MacBook Pro_”blank screen and esc key doesn’t work to close the experiment and unable to get error messages”

OS: MacBook Pro M1
PsychoPy version : Psychopy v 2021.2.3
Standard Standalone? (y/n) ?: y
What are you trying to achieve?: a simple experiment with routine including audio familiarization and memory test with verbal repetition of trials and recording in mic.

What did you try to make it work?:

I set an introduction (audio and image)-> key response to begin.
Familiarization routine-> play set of audio files based on the condition file list. Press space key for a nonverbal tone stimuli.
Test routine-> play audio as per conditions list and I chose mic response for recording verbal repetition of sounds and mouse click response for familiar sounds among yes vs. no button (png images).
End routine-> Thank you text msg.

What specifically went wrong when you tried that?: the experiment is not running after the participants ID on a blank screen appears and I’m unable to close the experiment and I need to restart my Mac. There is no errors msg and I’m unable to track the problem.

I tried to make some fix based on the forum discussion. Settings → privacy-> accessibility-> turned on for PsychoPy application, it didn’t help.

Please suggest a fix.

Hello,

It is really difficult to suggest a fix when there is no error message. I think it might be best to start with a toy version of your experiment and test it after introducing a routine.

Best wishes Jens

Hi,

Thank you for the suggestion, I did build a simple example with just one routine with polygon stimulus and mic recording for a verbal response. However, I cannot fix the error from the microphone for recording the response.

I tried to run the experiment by opening it in the terminal and giving keyboard access, but the problem persists, and I’m unable to end the routine. The machine is hanging up, and I have to restart the MacBook.

Either the microphone doesn’t work or it doesn’t record the sound, and even if it’s recorded, there is no sound in the recorded.wav file. I wonder if this problem can be resolved.
######## TERMINAL REPORT ########
Last login: Wed Jan 17 09:19:13 on console

kumacarpi@KuMacs-MacBook-Pro ~ % /Applications/PsychoPy.app/Contents/MacOS/PsychoPy

2024-01-17 16:26:03.094 PsychoPy[64885:201419] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/k6/5kj6kn8j7716k06dgzpxzjw80000gn/T/org.opensciencetools.psychopy.savedState

PTB-INFO: Using modified PortAudio V19.6.0-devel, revision unknown

2024-01-17 16:26:07.957 PsychoPy[64885:201419] It’s not legal to call -layoutSubtreeIfNeeded on a view which is already being laid out. If you are implementing the view’s -layout method, you can call -[super layout] instead. Break on void _NSDetectedLayoutRecursion(void) to debug. This will be logged only once. This may break in the future.

#############################################################
Thanks!