zellij-org/zellij · error

failed to create async reader: {}

Error message

failed to create async reader: {}

What it means

Error "failed to create async reader: {}" thrown in zellij-org/zellij.

Source

Thrown at zellij-server/src/os_input_output_unix.rs:345

        let orig_termios = self
            .orig_termios
            .lock()
            .to_anyhow()
            .context("failed to lock orig_termios")?;
        let (pid_primary, child_fd) = handle_terminal(
            cmd,
            failover_cmd,
            orig_termios.clone(),
            quit_cb,
            terminal_id,
        )?;
        self.terminal_id_to_raw_fd
            .lock()
            .to_anyhow()?
            .insert(terminal_id, Some(pid_primary));
        let async_reader = Box::new(
            RawFdAsyncReader::new(pid_primary)
                .map_err(|e| anyhow::anyhow!("failed to create async reader: {}", e))?,
        ) as Box<dyn AsyncReader>;
        Ok((async_reader, child_fd))
    }

    pub fn set_terminal_size(
        &self,
        terminal_id: u32,
        cols: u16,
        rows: u16,
        width_in_pixels: Option<u16>,
        height_in_pixels: Option<u16>,
    ) -> Result<()> {
        let err_context = || {
            format!(
                "failed to set terminal id {} to size ({}, {})",
                terminal_id, rows, cols
            )
        };

View on GitHub (pinned to 98a0837077)

When it happens

Trigger: Thrown at zellij-server/src/os_input_output_unix.rs:345 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zellij-org/zellij@98a0837077 (2026-08-16). Data as JSON: /api/errors/7755da233eaa8fa9. Report an issue: GitHub.