BUG: “Portaudio not initialized” leads to crashes when using a microphone.

SOLUTION: Open Windows’ “Sound” panel, open the properties of your playback device, go to the advanced tab, and make sure that the default format is set to 44100Hz instead of 48000 Hz. As explained here.

Could you help me test a possible fix for the pyglet window issue? Could you find the window.py file in your psychopy installation and find the line where the window is created, around line 1499. Try replacing it with this try...except code:

Hopefully then you won’t need to tweak the code from your experiments manually in future!

The idea is that we’ll try to create the window once, and if it fails automatically try again with shadow window turned off. But I don’t know if pyglet will allow us two bites at the cherry, and I can’t test it myself.