{"record":{"id":"dfff375ec432f65f","repo":"cjpais/Handy","slug":"get-available-accelerators-panicked","errorCode":null,"errorMessage":"get_available_accelerators panicked","messagePattern":"get_available_accelerators panicked","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-tauri/src/shortcut/mod.rs","lineNumber":1361,"sourceCode":"pub fn change_transcribe_gpu_device(app: AppHandle, device: i32) -> Result<(), String> {\n    let mut s = settings::get_settings(&app);\n    s.transcribe_gpu_device = device;\n    save_accelerator_and_reload_next_use(&app, s);\n    Ok(())\n}\n\n/// Return which accelerators and GPU devices are available for this build.\n///\n/// First-call cost is dominated by enumerating GPU devices through the\n/// transcribe.cpp Metal/Vulkan backend, which loads dynamic libraries and\n/// probes hardware. Run it on the blocking pool so the webview thread\n/// stays responsive — see also the startup pre-warm in `lib.rs`.\n#[tauri::command]\n#[specta::specta]\npub async fn get_available_accelerators() -> crate::managers::transcription::AvailableAccelerators {\n    tauri::async_runtime::spawn_blocking(crate::managers::transcription::get_available_accelerators)\n        .await\n        .expect(\"get_available_accelerators panicked\")\n}\n","sourceCodeStart":1343,"sourceCodeEnd":1363,"githubUrl":"https://github.com/cjpais/Handy/blob/98a4d80cce8ad41efec2a419b59d9e81229a35d7/src-tauri/src/shortcut/mod.rs#L1343-L1363","documentation":"Error \"get_available_accelerators panicked\" thrown in cjpais/Handy.","triggerScenarios":"Thrown at src-tauri/src/shortcut/mod.rs:1361 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":"98a4d80cce8ad41efec2a419b59d9e81229a35d7","analyzedAt":"2026-08-16T20:58:09.966Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}