zellij-org/zellij · error · anyhow::Error
Failed to serialize user configuration
Error message
Failed to serialize user configuration: {:?} What it means
Error "Failed to serialize user configuration: {:?}" thrown in zellij-org/zellij.
Solutions
- Check the attached error for the underlying serialization failure and fix the offending data.
- Ensure plugin/wasm artifacts and zellij versions are compatible.
When it happens
Trigger: Occurs at zellij-server/src/plugins/plugin_loader.rs:226 when the operation fails: "Failed to serialize user configuration: {:?}". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.
Common situations: Typically version skew, corrupted data, or an unexpected payload shape.
AI-assisted analysis of zellij-org/zellij@5cb5df5cce (2026-08-19).
Data as JSON: /api/errors/4e2c9160ebd7c13b.
Report an issue: GitHub.
Appendix: source
Thrown at zellij-server/src/plugins/plugin_loader.rs:226
)));
self.plugin_map.insert(
self.plugin_id,
self.client_id,
plugin.clone(),
subscriptions,
workers,
);
start_function
.call(&mut plugin.lock().unwrap().store, ())
.with_context(err_context)?;
let protobuf_plugin_configuration: ProtobufPluginConfiguration = self
.plugin_config
.initial_userspace_configuration
.clone()
.try_into()
.map_err(|e| anyhow!("Failed to serialize user configuration: {:?}", e))?;
let protobuf_bytes = protobuf_plugin_configuration.encode_to_vec();
wasi_write_object(plugin.lock().unwrap().store.data(), &protobuf_bytes)
.with_context(err_context)?;
load_function
.call(&mut plugin.lock().unwrap().store, ())
.with_context(err_context)?;
Ok(())
}
pub fn create_plugin_environment(
&self,
module: Module,
) -> Result<(Store<PluginEnv>, Instance)> {
let err_context = || {
format!(
"Failed to create instance, plugin env and subscriptions for plugin {}",
self.plugin_id
)View on GitHub (pinned to 5cb5df5cce)