{"record":{"id":"256e002bb5044ffb","repo":"cjpais/Handy","slug":"failed-to-load-gigaam-model","errorCode":null,"errorMessage":"Failed to load gigaam model {}: {}","messagePattern":"Failed to load gigaam model (.+?): (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src-tauri/src/managers/transcription.rs","lineNumber":688,"sourceCode":"                        anyhow::anyhow!(error_msg)\n                    })?;\n                LoadedEngine::MoonshineStreaming(engine)\n            }\n            EngineType::SenseVoice => {\n                let engine =\n                    SenseVoiceModel::load(&model_path, &Quantization::Int8).map_err(|e| {\n                        let error_msg =\n                            format!(\"Failed to load SenseVoice model {}: {}\", model_id, e);\n                        emit_loading_failed(&error_msg);\n                        anyhow::anyhow!(error_msg)\n                    })?;\n                LoadedEngine::SenseVoice(engine)\n            }\n            EngineType::GigaAM => {\n                let engine = GigaAMModel::load(&model_path, &Quantization::Int8).map_err(|e| {\n                    let error_msg = format!(\"Failed to load gigaam model {}: {}\", model_id, e);\n                    emit_loading_failed(&error_msg);\n                    anyhow::anyhow!(error_msg)\n                })?;\n                LoadedEngine::GigaAM(engine)\n            }\n            EngineType::Canary => {\n                let engine = CanaryModel::load(&model_path, &Quantization::Int8).map_err(|e| {\n                    let error_msg = format!(\"Failed to load canary model {}: {}\", model_id, e);\n                    emit_loading_failed(&error_msg);\n                    anyhow::anyhow!(error_msg)\n                })?;\n                LoadedEngine::Canary(engine)\n            }\n            EngineType::Cohere => {\n                let engine = CohereModel::load(&model_path, &Quantization::Int8).map_err(|e| {\n                    let error_msg = format!(\"Failed to load cohere model {}: {}\", model_id, e);\n                    emit_loading_failed(&error_msg);\n                    anyhow::anyhow!(error_msg)\n                })?;\n                LoadedEngine::Cohere(engine)","sourceCodeStart":670,"sourceCodeEnd":706,"githubUrl":"https://github.com/cjpais/Handy/blob/ba10ce1943ef34e93c09494027fc0b9ced2e8a44/src-tauri/src/managers/transcription.rs#L670-L706","documentation":"Thrown when GigaAMModel::load fails to load the GigaAM ONNX model (Int8 quantization) from model_path. The chained error carries the ONNX Runtime cause; a \"loading_failed\" model-state event is emitted before the error is returned from load_model.","triggerScenarios":"EngineType::GigaAM branch runs and GigaAMModel::load(&model_path, &Quantization::Int8) errors: model files missing/corrupt, quantization variant not on disk, or execution-provider/session creation failure.","commonSituations":"Partial download after network drop; manually moved app-data directory; antivirus locking or removing the .onnx file; onnxruntime shared library missing on Linux deployments.","solutions":["Re-download the GigaAM model from the model selector","Check the model directory contents and file sizes against the registry entry","Read the chained ONNX Runtime error and address the provider issue (or switch accelerator to CPU)","Check disk space and permissions on the models directory"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"if let Err(e) = manager.load_model(&model_id, None) {\n    log::error!(\"gigaam load failed: {e:#}\");\n    // re-download and retry once; escalate to the user if it persists\n}","preventionTips":["Let downloads complete uninterrupted","Exclude the app-data models directory from antivirus real-time scans","Monitor model-state-changed loading_failed events"],"tags":["rust","onnx","gigaam","model-loading","transcribe-rs"],"backgroundTag":"onnx-model-load-failed","analyzedSha":"ba10ce1943ef34e93c09494027fc0b9ced2e8a44","analyzedAt":"2026-08-17T10:29:55.597Z","contentChangedAt":"2026-08-17T10:29:55.597Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}