{"record":{"id":"8e65bb345edfbb25","repo":"vosen/ZLUDA","slug":"failed-to-read-8e65bb","errorCode":null,"errorMessage":"Failed to read {}: {}","messagePattern":"Failed to read (.+?): (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zluda/build.rs","lineNumber":27,"sourceCode":"        check_lfs_file(dll_path);\n    }\n    let git = Gix::builder().sha(false).build();\n    Emitter::default()\n        .add_instructions(&git)\n        .unwrap()\n        .emit()\n        .unwrap();\n}\n\nfn check_lfs_file(bc_path: &str) {\n    use std::fs::File;\n    use std::io::Read;\n\n    let mut magic = [0u8; 2];\n    File::open(bc_path)\n        .unwrap_or_else(|e| panic!(\"Failed to open {}: {}\", bc_path, e))\n        .read_exact(&mut magic)\n        .unwrap_or_else(|e| panic!(\"Failed to read {}: {}\", bc_path, e));\n    assert!(\n        &magic == b\"MZ\",\n        \"{} is a git lfs stub and not the actual file. Run `git lfs pull` to fetch it\",\n        bc_path\n    );\n}\n","sourceCodeStart":9,"sourceCodeEnd":34,"githubUrl":"https://github.com/vosen/ZLUDA/blob/9c8b43f242985150f86a7f485218b7b82c3e96ca/zluda/build.rs#L9-L34","documentation":"zluda build-script panic in check_lfs_file: the DLL opened but reading its first 2 bytes failed, meaning the path is a directory, the file is empty, or an I/O error occurred. The subsequent MZ-header assert exists to catch LFS stubs; this earlier error means the file is unreadable before its contents can even be checked.","triggerScenarios":"Thrown at zluda/build.rs:27 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify bin/nvcudart_hybrid64.dll is a non-empty regular file","Run `git lfs pull` to restore a possibly corrupted or empty smudge result","Check permissions and free disk space, then rebuild"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9c8b43f242985150f86a7f485218b7b82c3e96ca","analyzedAt":"2026-09-06T09:21:08.049Z","contentChangedAt":"2026-09-06T09:21:08.049Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}