{"record":{"id":"59a0ac65efe0085e","repo":"Zackriya-Solutions/meetily","slug":"progress-overflow-while-skipping","errorCode":null,"errorMessage":"Progress overflow while skipping {}","messagePattern":"Progress overflow while skipping (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"frontend/src-tauri/src/parakeet_engine/parakeet_engine.rs","lineNumber":901,"sourceCode":"            }\n\n            let file_path = model_dir.join(artifact.filename);\n            let local_bytes = match fs::metadata(&file_path).await {\n                Ok(metadata) => metadata.len(),\n                Err(error) if error.kind() == std::io::ErrorKind::NotFound => 0,\n                Err(error) => {\n                    return Err(anyhow!(\n                        \"Failed to read {} metadata: {}\",\n                        artifact.filename,\n                        error\n                    ));\n                }\n            };\n\n            if local_bytes == artifact.exact_bytes {\n                confirmed_bytes = confirmed_bytes\n                    .checked_add(artifact.exact_bytes)\n                    .ok_or_else(|| anyhow!(\"Progress overflow while skipping {}\", artifact.filename))?;\n                let progress = Self::in_flight_progress(confirmed_bytes, total_bytes, 0.0);\n                if let Some(callback) = &progress_callback {\n                    callback(progress.clone());\n                }\n                self.set_downloading_status(model_name, progress.percent).await;\n                last_percent = progress.percent;\n                last_report = Instant::now();\n                continue;\n            }\n\n            let file_url = format!(\"{}/{}\", base_url.trim_end_matches('/'), artifact.filename);\n            let range_start = (local_bytes > 0 && local_bytes < artifact.exact_bytes)\n                .then_some(local_bytes);\n            let response = self\n                .send_download_request(&client, &file_url, range_start, active_download)\n                .await?;\n\n            let (response, mut artifact_bytes, append) = match range_start {","sourceCodeStart":883,"sourceCodeEnd":919,"githubUrl":"https://github.com/Zackriya-Solutions/meetily/blob/a2cb62e827da7ef59f65064c97233efb2313878e/frontend/src-tauri/src/parakeet_engine/parakeet_engine.rs#L883-L919","documentation":"When a previously downloaded artifact already matches its expected exact_bytes, the engine adds that size to the confirmed_bytes progress accumulator using checked_add. This error fires on u64 overflow — practically impossible with real file sizes, so it signals corrupted accounting state (e.g. corrupted artifact specs or corrupted accumulators).","triggerScenarios":"Summing artifact.exact_bytes values for skipped (already-complete) files overflows u64 — only possible if exact_bytes values are corrupted to enormous values (near u64::MAX) or the manifest/accumulator is internally inconsistent.","commonSituations":"A hand-edited or programmatically corrupted artifacts manifest with bogus exact_bytes; memory corruption or a deserialized manifest from an incompatible version; downstream progress bookkeeping disagreeing with total_bytes.","solutions":["Restore the artifact manifest to its original values (reinstall/repair the app or reset the model spec constants).","Verify each artifact.exact_bytes is a sane file size (hundreds of MB–GB, not near u64::MAX).","Clear the models cache directory so no artifacts are in the 'skip' path, then re-download.","File a bug with the exact artifact list if it reproduces with stock specs — it indicates an internal invariant violation."],"exampleFix":"// before: corrupted manifest\nArtifactSpec { filename: \"model.int8.onnx\", exact_bytes: u64::MAX }\n// after\nArtifactSpec { filename: \"model.int8.onnx\", exact_bytes: 1_203_331_072 }","handlingStrategy":"validation","validationCode":"// sanity-check artifact specs before download\nfor a in &artifacts {\n    assert!(a.exact_bytes > 0 && a.exact_bytes < 100 * 1024 * 1024 * 1024,\n        \"implausible exact_bytes for {}: {}\", a.filename, a.exact_bytes);\n}","typeGuard":null,"tryCatchPattern":"match download_result {\n    Err(e) if e.to_string().contains(\"Progress overflow while skipping\") => {\n        // manifest corruption: restore specs and clear cache\n        restore_default_artifact_manifest()?;\n        clear_model_cache(model_dir).await?;\n        retry_download().await\n    }\n    other => other,\n}","preventionTips":["Never hand-edit artifact exact_bytes values.","Ship manifests with checksums and validate on load.","Treat this error as a bug report trigger — it should be unreachable with stock specs.","Clear the model cache if a stale/incompatible manifest is suspected."],"tags":["overflow","progress","resume","invariant"],"backgroundTag":"internal-invariant-violation","analyzedSha":"a2cb62e827da7ef59f65064c97233efb2313878e","analyzedAt":"2026-09-12T11:12:14.152Z","contentChangedAt":"2026-09-12T11:12:14.152Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}