Screen('OpenWindow',2) and PsychImaging('OpenWindow',2) freezes Matlab

Dear PTB community,

recently we encountered the issue where a window on a secondary monitor could not open successfully. It works fine on the primary monitor.

Matlab simply freezes and has to be forced to close after executing the PsychImaging(‘OpenWindow’, 2, 0) and Screen(‘OpenWindow’, 2, 0) commands.

This happens, for example, with the following minimal demo Scarfe Lab: Totally Minimal

The script works fine on the primary monitor, using screenNumber = 1;
However, we would prefer to use the secondary monitor (i.e. screenNumber = 2) for the experiment.

We currently have this issue specifically with Windows 11. This issue does not occur on our Windows 10 machines with identical hardware.

Are you aware of any problems with PTB-3 on Windows 11 that can cause the window to freeze?

It is worth mentioning that both PsychoPy and Psychtoolbox show the same behavior.

We would be very happy to receive suggestions and possible solutions.

We’re at the point where we’re thinking about reinstalling our computers with Windows 10 … if that would solve the problem.?

Thanks,
Andreas

SETUP:
Geforce GTX 1660 super twin x2 8GB
Psychtoolbox 3.0.19 (Rev 14193)
MATLAB R2023b (23.2.0.2459199 Update 5)
Windows 11