sxyazi/yazi · error · anyhow::Error

Process failed

Error message

Process failed

What it means

Error "Process failed" thrown in sxyazi/yazi.

Source

Thrown at yazi-scheduler/src/process/process.rs:77

		let mut stdout = BufReader::new(child.stdout.take().unwrap()).lines();
		let mut stderr = BufReader::new(child.stderr.take().unwrap()).lines();
		loop {
			select! {
				Ok(Some(line)) = stdout.next_line() => {
					self.ops.out(task.id, ProcessOutBg::Log(line));
				}
				Ok(Some(line)) = stderr.next_line() => {
					self.ops.out(task.id, ProcessOutBg::Log(line));
				}
				status = child.wait() => {
					let status = status.map_err(anyhow::Error::from)?;
					self.ops.out(task.id, ProcessOutBg::Log(match status.code() {
						Some(code) => format!("Exited with status code: {code}"),
						None => "Process terminated by signal".to_string(),
					}));
					if !status.success() {
						Err(anyhow!("Process failed"))?;
					}
					break;
				}
			}
		}

		Ok(self.ops.out(task.id, ProcessOutBg::Succ))
	}
}

impl Process {
	#[inline]
	pub(crate) fn submit(&self, r#in: impl Into<ProcessIn>, priority: u8) {
		_ = self.tx.try_send(r#in.into(), priority);
	}
}

View on GitHub (pinned to 94abcfa92f)

When it happens

Trigger: Thrown at yazi-scheduler/src/process/process.rs:77 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of sxyazi/yazi@94abcfa92f (2026-08-16). Data as JSON: /api/errors/76f46dc11db2abd7. Report an issue: GitHub.