zed-industries/zed · error
screen was not shared
Error message
screen was not shared
What it means
Error "screen was not shared" thrown in zed-industries/zed.
Source
Thrown at crates/call/src/call_impl/room.rs:1676
let should_change_mute = !live_kit.muted_by_user;
self.set_deafened(deafened, cx);
if should_change_mute && let Some(task) = self.set_mute(deafened, cx) {
task.detach_and_log_err(cx);
}
}
}
pub fn unshare_screen(&mut self, play_sound: bool, cx: &mut Context<Self>) -> Result<()> {
anyhow::ensure!(!self.status.is_offline(), "room is offline");
let live_kit = self
.live_kit
.as_mut()
.context("live-kit was not initialized")?;
match mem::take(&mut live_kit.screen_track) {
LocalTrack::None => anyhow::bail!("screen was not shared"),
LocalTrack::Pending { .. } => {
cx.notify();
Ok(())
}
LocalTrack::Published {
track_publication, ..
} => {
{
let local_participant = live_kit.room.local_participant();
let sid = track_publication.sid();
cx.spawn(async move |_, cx| local_participant.unpublish_track(sid, cx).await)
.detach_and_log_err(cx);
cx.emit(Event::LocalScreenShareStopped);
cx.notify();
}
if play_sound {
Audio::play_sound(Sound::StopScreenshare, cx);View on GitHub (pinned to bc538def45)
When it happens
Trigger: Thrown at crates/call/src/call_impl/room.rs:1676 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@bc538def45 (2026-08-16).
Data as JSON: /api/errors/9e3e61f07fdef3a8.
Report an issue: GitHub.