{"record":{"id":"4c55f99690743849","repo":"zellij-org/zellij","slug":"failed-to-create-tokio-runtime","errorCode":null,"errorMessage":"Failed to create tokio runtime","messagePattern":"Failed to create tokio runtime","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zellij-client/src/lib.rs","lineNumber":105,"sourceCode":"                    );\n                    value\n                },\n                _ => {\n                    let cpus = num_cpus::get_physical();\n                    log::debug!(\n                        \"Creating client async runtime with {} tasks based on CPU count\",\n                        cpus\n                    );\n                    cpus\n                },\n            };\n            let runtime = ASYNC_RUNTIME.get_or_init(|| {\n                tokio::runtime::Builder::new_multi_thread()\n                    .worker_threads(number_of_workers)\n                    .thread_name(\"zellij client async-runtime\")\n                    .enable_all()\n                    .build()\n                    .expect(\"Failed to create tokio runtime\")\n            });\n            runtime.handle().clone()\n        },\n    }\n}\n\n#[derive(Debug)]\npub enum RemoteClientError {\n    InvalidAuthToken,\n    SessionTokenExpired,\n    Unauthorized,\n    ConnectionFailed(String),\n    UrlParseError(url::ParseError),\n    IoError(std::io::Error),\n    Other(Box<dyn std::error::Error + Send + Sync>),\n}\n\nimpl std::fmt::Display for RemoteClientError {","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/zellij-org/zellij/blob/e839bfffa586992364309a685b2c71f3b23c247e/zellij-client/src/lib.rs#L87-L123","documentation":"Error \"Failed to create tokio runtime\" thrown in zellij-org/zellij.","triggerScenarios":"Occurs at zellij-client/src/lib.rs:102 when the operation fails: \"Failed to create tokio runtime\". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.","commonSituations":"Resource exhaustion or restrictive ulimits/namespace settings.","solutions":["Check system resources (threads, memory); tokio runtime creation failed at the OS level.","Retry; if persistent, report with OS and resource limit details."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e839bfffa586992364309a685b2c71f3b23c247e","analyzedAt":"2026-08-19T07:42:58.758Z","contentChangedAt":"2026-08-19T07:42:58.758Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}