{"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":null,"httpStatus":null,"severity":"error","filePath":"zellij-server/src/plugins/pipes.rs","lineNumber":156,"sourceCode":"}\n\npub fn apply_pipe_message_to_plugin(\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":138,"sourceCodeEnd":174,"githubUrl":"https://github.com/zellij-org/zellij/blob/98a0837077492d53dd252ab30bc3e43e41e504f4/zellij-server/src/plugins/pipes.rs#L138-L174","documentation":"Error \"Failed to convert to protobuf: {:?}\" thrown in zellij-org/zellij.","triggerScenarios":"Thrown at zellij-server/src/plugins/pipes.rs:156 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":"98a0837077492d53dd252ab30bc3e43e41e504f4","analyzedAt":"2026-08-16T13:02:01.396Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}