Black screen in fullscreen mode on macos

Hi, I stumbled upon this problem in a mac os device. the same code runs perfectly on my windows laptop. the problem is that when opening an experiment in fullscreen mode, the screen would go completely black but the mouse is visible, no error no nothing. the experiment runs smoothly in windows mode (fullscr = False). and I am almost sure that this problem has nothing to do with the code or anything. to prove my point I used the demo codes available in the psychopy itself. hello world code. just a simple grey screen which says hello world. that’s it. runs perfectly in windows mode and goes completely black in fullscreen mode. mac os Big Sur
any ideas?

here’s the code for those who want it.

# Import key parts of the PsychoPy library:
from psychopy import visual, core

# Create a visual window:
win = visual.Window(units="height",fullscr=True)

# Create (but not yet display) some text:
msg1 = visual.TextBox2(win, 
    text=u"Hello world!", 
    font="Open Sans", letterHeight=0.1,
    pos=(0, 0.2)) 
msg2 = visual.TextBox2(win, 
    text=u"\u00A1Hola mundo!", 
    font="Open Sans", letterHeight=0.1, 
    pos=(0, -0.2))

# Draw the text to the hidden visual buffer:

# Show the hidden buffer--everything that has been drawn since the last win.flip():

# Wait 3 seconds so people can see the message, then exit gracefully:


The contents of this file are in the public domain.


I have same problem,have you fix it?

Do you have black text?

I found that on some Mac devices the background defaulted to black so it worked if I changed the font colour to white.

My text color is white. but it didn’t work.

I can’t see nothing expect black screen. But I still tried to press some key even. Then I found it ran (because It really save some data according to code).The only problem is that nothing can be draw to the screen.

The other issue that can cause this is text size being set too small (e.g. .1 pixels). Is is definitely working on other computers?

The text size is 25 is working on other computers.And when I set Fullscreen=False,and the screen size is same as Fullscreen,it also works.