{"record":{"id":"76f46dc11db2abd7","repo":"sxyazi/yazi","slug":"process-failed","errorCode":null,"errorMessage":"Process failed","messagePattern":"Process failed","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"yazi-scheduler/src/process/process.rs","lineNumber":77,"sourceCode":"\n\t\tlet mut stdout = BufReader::new(child.stdout.take().unwrap()).lines();\n\t\tlet mut stderr = BufReader::new(child.stderr.take().unwrap()).lines();\n\t\tloop {\n\t\t\tselect! {\n\t\t\t\tOk(Some(line)) = stdout.next_line() => {\n\t\t\t\t\tself.ops.out(task.id, ProcessOutBg::Log(line));\n\t\t\t\t}\n\t\t\t\tOk(Some(line)) = stderr.next_line() => {\n\t\t\t\t\tself.ops.out(task.id, ProcessOutBg::Log(line));\n\t\t\t\t}\n\t\t\t\tstatus = child.wait() => {\n\t\t\t\t\tlet status = status.map_err(anyhow::Error::from)?;\n\t\t\t\t\tself.ops.out(task.id, ProcessOutBg::Log(match status.code() {\n\t\t\t\t\t\tSome(code) => format!(\"Exited with status code: {code}\"),\n\t\t\t\t\t\tNone => \"Process terminated by signal\".to_string(),\n\t\t\t\t\t}));\n\t\t\t\t\tif !status.success() {\n\t\t\t\t\t\tErr(anyhow!(\"Process failed\"))?;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tOk(self.ops.out(task.id, ProcessOutBg::Succ))\n\t}\n}\n\nimpl Process {\n\t#[inline]\n\tpub(crate) fn submit(&self, r#in: impl Into<ProcessIn>, priority: u8) {\n\t\t_ = self.tx.try_send(r#in.into(), priority);\n\t}\n}\n","sourceCodeStart":59,"sourceCodeEnd":94,"githubUrl":"https://github.com/sxyazi/yazi/blob/94abcfa92f4ad3f0a1aef6c1ea083cfb8aa6c8c2/yazi-scheduler/src/process/process.rs#L59-L94","documentation":"Error \"Process failed\" thrown in sxyazi/yazi.","triggerScenarios":"Thrown at yazi-scheduler/src/process/process.rs:77 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":"94abcfa92f4ad3f0a1aef6c1ea083cfb8aa6c8c2","analyzedAt":"2026-08-16T09:56:24.836Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}