zed icon indicating copy to clipboard operation
zed copied to clipboard

Share Screen shows a black screen

Open DavisVaughan opened this issue 7 months ago • 5 comments

Summary

Follow up to https://github.com/zed-industries/zed/issues/28774

Back again with more share screen issues 😢 , CC @notpeter

Share Screen used to work great for me, but something changed ~2ish weeks ago and I haven't been able to share my screen with my colleague. It just shows a black screen, and then it started crashing Zed (which was fixed by #28774), but now the black screen is back.

My screen

Image

His screen

Image

If I switch to Chrome or any other app, nothing changes for him, just a black screen.

Zed does have screen recording permissions

Image

Again, relevant notes are that I'm on macOS 13.7.4 (somewhat old, but not that old).

Happy to try anything if you have ideas

Zed Version and System Specs

Zed: v0.182.11 (Zed) OS: macOS 13.7.4 Memory: 32 GiB Architecture: aarch64

DavisVaughan avatar Apr 18 '25 14:04 DavisVaughan

Our intention is to support macOS 13.7 (Ventura) from the Zed System Requirements:

Image

But to be honest, the Zed team is running a mix of Sonoma and Sequoia and we are not doing validation testing against previous versions.

Can you confirm that Zed has been granted permissions via System Preferences -> Privacy & Security -> Screen & System Audio recording (may be named slightly different under Ventura). You should see something like this: Image And just for fun, toggle off, toggle on, restart Zed and try again?

My M3 macbook cannot run Ventura, but I have an Intel Macbook on which I can try and install Ventura to see if I can reproduce.

notpeter avatar Apr 18 '25 15:04 notpeter

Hwy @DavisVaughan ,

Ventura had a nasty ScreenShare bug, you may want to try resetting the Screen related TCC.db entries:

tccutil reset ScreenCapture

nagypeterjob avatar Apr 19 '25 20:04 nagypeterjob

I don't have Screen & System Audio Recording but I did have Screen Recording as shown above

Image

I tried tccutil reset ScreenCapture and confirmed it did reset the Screen Recording settings, and also restarted my computer after that to be safe. However my colleague and I were still able to reproduce the problem after the restart and after I re-enabled Screen Recording for Zed.

But here's the weird thing. We tried having me screen share after a 2nd colleague joined the channel, and it worked for her! Then the 1st colleague who I've been having trouble screen sharing to dropped off the channel and joined back and it worked for him too (for the first time in weeks).

So possibly it has something to do with his machine and not mine.

I'll try again with him tomorrow, and if we see the black screen I'll try having him leave the channel and rejoin to see if we can reproduce the "fix" we discovered today and I'll report back.

DavisVaughan avatar Apr 30 '25 16:04 DavisVaughan

Interesting! I wonder if they were perhaps previously running an older version of Zed?

I believe we made some changes to our underlying LiveKit SDK integration a few weeks back, in order to support for screen sharing from Linux X11 machines, and IIRC it might've been backwards incompatible. Apologies for not remembering the specific context, we generally try to maintain backward compatibility with Collab, but it's possible something changed where newer Zed versions may choose different codecs that an older Zed could not handle correctly. Or perhaps this is unrelated.

Thanks for following up.

notpeter avatar Apr 30 '25 20:04 notpeter

Then the 1st colleague who I've been having trouble screen sharing to dropped off the channel and joined back and it worked for him too (for the first time in weeks).

I actually updated Zed before joining back, so it's very likely the culprit was an older version of Zed on my computer!

lionel- avatar May 01 '25 09:05 lionel-

Thanks for following up. If you run into this again, feel free to open a clean issue.

Thanks for reporting.

notpeter avatar May 03 '25 01:05 notpeter