{"record":{"id":"29ec811f5086718d","repo":"pot-app/pot-desktop","slug":"error-while-running-tauri-application","errorCode":null,"errorMessage":"error while running tauri application","messagePattern":"error while running tauri application","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-tauri/src/main.rs","lineNumber":154,"sourceCode":"            system_ocr,\n            set_proxy,\n            unset_proxy,\n            run_binary,\n            open_devtools,\n            register_shortcut_by_frontend,\n            update_tray,\n            updater_window,\n            screenshot,\n            lang_detect,\n            webdav,\n            local,\n            install_plugin,\n            font_list,\n            aliyun\n        ])\n        .on_system_tray_event(tray_event_handler)\n        .build(tauri::generate_context!())\n        .expect(\"error while running tauri application\")\n        // 窗口关闭不退出\n        .run(|_app_handle, event| {\n            if let tauri::RunEvent::ExitRequested { api, .. } = event {\n                api.prevent_exit();\n            }\n        });\n}\n","sourceCodeStart":136,"sourceCodeEnd":162,"githubUrl":"https://github.com/pot-app/pot-desktop/blob/594d32ede96acd106b0256deaa8bb440ffcdff40/src-tauri/src/main.rs#L136-L162","documentation":"In main(), tauri::Builder.build(tauri::generate_context!()) returned Err, and .expect panics with this message. This is the fatal startup failure of the whole Tauri application: the app window/Webview configuration, plugin registration, or generated context could not be built, so the process aborts immediately — nothing in the app ever runs.","triggerScenarios":"Thrown at src-tauri/src/main.rs:154 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the original error logged by the panic (build errors usually name the failing window, plugin, or asset)","Validate tauri.conf.json (windows, bundle identifier, icons, CSP) for malformed configuration","Check that all registered plugins and invoke handlers initialize without conflict","Run with debug logging (open_devtools / RUST_LOG) to surface the underlying build error"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"594d32ede96acd106b0256deaa8bb440ffcdff40","analyzedAt":"2026-09-02T18:12:21.811Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T21:17:11.164Z"}