{"record":{"id":"148bcf26da0b6d99","repo":"zellij-org/zellij","slug":"failed-to-convert-to-protobuf","errorCode":null,"errorMessage":"Failed to convert to protobuf: {:?}","messagePattern":"Failed to convert to protobuf: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"zellij-server/src/plugins/pipes.rs","lineNumber":197,"sourceCode":"}\n\nfn apply_pipe_message_to_plugin_inner(\n    plugin_id: PluginId,\n    client_id: ClientId,\n    running_plugin: &mut RunningPlugin,\n    pipe_message: &PipeMessage,\n    plugin_render_assets: &mut Vec<PluginRenderAsset>,\n    senders: &ThreadSenders,\n) -> Result<()> {\n    let instance = &running_plugin.instance;\n    let rows = running_plugin.rows;\n    let columns = running_plugin.columns;\n\n    let err_context = || format!(\"Failed to apply event to plugin {plugin_id}\");\n    let protobuf_pipe_message: ProtobufPipeMessage = pipe_message\n        .clone()\n        .try_into()\n        .map_err(|e| anyhow!(\"Failed to convert to protobuf: {:?}\", e))?;\n    match instance.get_typed_func::<(), i32>(&mut running_plugin.store, \"pipe\") {\n        Ok(pipe) => {\n            wasi_write_object(\n                running_plugin.store.data(),\n                &protobuf_pipe_message.encode_to_vec(),\n            )\n            .with_context(err_context)?;\n            let should_render = pipe\n                .call(&mut running_plugin.store, ())\n                .with_context(err_context)?;\n            let should_render = should_render == 1;\n            if rows > 0 && columns > 0 && should_render {\n                let rendered_bytes = instance\n                    .get_typed_func::<(i32, i32), ()>(&mut running_plugin.store, \"render\")\n                    .and_then(|render| {\n                        render.call(&mut running_plugin.store, (rows as i32, columns as i32))\n                    })\n                    .map_err(|e| anyhow!(e))","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/zellij-org/zellij/blob/e839bfffa586992364309a685b2c71f3b23c247e/zellij-server/src/plugins/pipes.rs#L179-L215","documentation":"Error \"Failed to convert to protobuf: {:?}\" thrown in zellij-org/zellij.","triggerScenarios":"Occurs at zellij-server/src/plugins/pipes.rs:156 when the operation fails: \"Failed to convert to protobuf: {:?}\". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.","commonSituations":"Typically version skew, corrupted data, or an unexpected payload shape.","solutions":["Check the attached error for the underlying serialization failure and fix the offending data.","Ensure plugin/wasm artifacts and zellij versions are compatible."],"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"}