{"record":{"id":"f7829e4244a479e3","repo":"tinyhumansai/openhuman","slug":"error-while-running-mobile-tauri-application","errorCode":null,"errorMessage":"error while running mobile tauri application","messagePattern":"error while running mobile tauri application","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src-tauri-mobile/src/lib.rs","lineNumber":38,"sourceCode":"async fn app_quit<R: Runtime>(app: AppHandle<R>) -> Result<(), String> {\n    log::info!(\"[mobile] app_quit invoked\");\n    app.exit(0);\n    Ok(())\n}\n\n#[cfg_attr(mobile, tauri::mobile_entry_point)]\npub fn run() {\n    log::info!(\"[mobile] run() — starting mobile Tauri builder\");\n\n    tauri::Builder::default()\n        .plugin(tauri_plugin_barcode_scanner::init())\n        // PTT ships Swift sources for iOS only; on Android the plugin\n        // registers as a no-op stub (all commands return NotSupported).\n        // See packages/tauri-plugin-ptt/src/lib.rs.\n        .plugin(tauri_plugin_ptt::init())\n        .invoke_handler(tauri::generate_handler![app_quit])\n        .run(tauri::generate_context!())\n        .expect(\"error while running mobile tauri application\");\n}\n","sourceCodeStart":20,"sourceCodeEnd":40,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/app/src-tauri-mobile/src/lib.rs#L20-L40","documentation":"Fatal bootstrap failure of the mobile Tauri entry point in src-tauri-mobile: tauri::Builder::default()...run() returned an Err while wiring plugins (barcode-scanner, PTT) and the mobile window. The message is the expect/unwrap payload on the builder result, so the process aborts during startup before any UI appears.","triggerScenarios":"Thrown at app/src-tauri-mobile/src/lib.rs:38 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the logged builder error (plugin init failure is the usual cause) and fix the offending plugin registration","Verify mobile entry-point metadata (bundle id, entitlements) with `tauri ios dev` / `tauri android dev`","Ensure plugin Swift/Kotlin stubs compiled for the target platform"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}