{"record":{"id":"e61c75471e2c19a8","repo":"openai/codex","slug":"failed-to-read-image-at-path-source","errorCode":null,"errorMessage":"failed to read image at {path}: {source}","messagePattern":"failed to read image at (.+?): (.+?)","errorType":"exception","errorClass":"ImageProcessingError","httpStatus":null,"severity":"error","filePath":"codex-rs/utils/image/src/error.rs","lineNumber":8,"sourceCode":"use image::ImageError;\nuse image::ImageFormat;\nuse std::path::PathBuf;\nuse thiserror::Error;\n\n#[derive(Debug, Error)]\npub enum ImageProcessingError {\n    #[error(\"failed to read image at {path}: {source}\")]\n    Read {\n        path: PathBuf,\n        #[source]\n        source: std::io::Error,\n    },\n    #[error(\"failed to decode image at {path}: {source}\")]\n    Decode {\n        path: PathBuf,\n        #[source]\n        source: image::ImageError,\n    },\n    #[error(\"failed to encode image as {format:?}: {source}\")]\n    Encode {\n        format: ImageFormat,\n        #[source]\n        source: image::ImageError,\n    },\n    #[error(\"unsupported image `{mime}`\")]","sourceCodeStart":1,"sourceCodeEnd":26,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/utils/image/src/error.rs#L1-L26","documentation":"ImageProcessingError::Read: an I/O error occurred while reading the image file from disk at `path`. The io::Error source gives the errno; subsequent decode/encode stages are never reached. Distinct from Decode (invalid image data) and Encode failures.","triggerScenarios":"Thrown at codex-rs/utils/image/src/error.rs:8 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the image file exists at the given path","Fix read permissions on the file or its directory","Retry the operation if the failure was transient (e.g. network mount)"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}