{"record":{"id":"7755da233eaa8fa9","repo":"zellij-org/zellij","slug":"failed-to-create-async-reader","errorCode":null,"errorMessage":"failed to create async reader: {}","messagePattern":"failed to create async reader: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zellij-server/src/os_input_output_unix.rs","lineNumber":345,"sourceCode":"        let orig_termios = self\n            .orig_termios\n            .lock()\n            .to_anyhow()\n            .context(\"failed to lock orig_termios\")?;\n        let (pid_primary, child_fd) = handle_terminal(\n            cmd,\n            failover_cmd,\n            orig_termios.clone(),\n            quit_cb,\n            terminal_id,\n        )?;\n        self.terminal_id_to_raw_fd\n            .lock()\n            .to_anyhow()?\n            .insert(terminal_id, Some(pid_primary));\n        let async_reader = Box::new(\n            RawFdAsyncReader::new(pid_primary)\n                .map_err(|e| anyhow::anyhow!(\"failed to create async reader: {}\", e))?,\n        ) as Box<dyn AsyncReader>;\n        Ok((async_reader, child_fd))\n    }\n\n    pub fn set_terminal_size(\n        &self,\n        terminal_id: u32,\n        cols: u16,\n        rows: u16,\n        width_in_pixels: Option<u16>,\n        height_in_pixels: Option<u16>,\n    ) -> Result<()> {\n        let err_context = || {\n            format!(\n                \"failed to set terminal id {} to size ({}, {})\",\n                terminal_id, rows, cols\n            )\n        };","sourceCodeStart":327,"sourceCodeEnd":363,"githubUrl":"https://github.com/zellij-org/zellij/blob/98a0837077492d53dd252ab30bc3e43e41e504f4/zellij-server/src/os_input_output_unix.rs#L327-L363","documentation":"Error \"failed to create async reader: {}\" thrown in zellij-org/zellij.","triggerScenarios":"Thrown at zellij-server/src/os_input_output_unix.rs:345 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"98a0837077492d53dd252ab30bc3e43e41e504f4","analyzedAt":"2026-08-16T13:02:01.396Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}