slint-ui/slint · error
ExtraBuiltinFunctionCall
Error message
ExtraBuiltinFunctionCall `{other}` What it means
The interpreter's `call_extra_builtin` evaluates extra builtin layout functions (e.g. `preferred-size`-related builtins with many arguments) and has a hard-coded maximum supported arity; any other function name or shape reaches the `other =>` catch-all and panics. It indicates the interpreter lacks support for that builtin function.
Solutions
- Upgrade the interpreter to match the compiler version that introduced the builtin
- Avoid the unsupported builtin in interpreted code (e.g. compute the value in Rust host code instead)
- Add a match arm handling the missing builtin in internal/interpreter/eval_layout.rs
Defensive patterns
Strategy: try-catch
Prevention
- Pin all i-slint/slint crates to the same version
- Restrict interpreted code to builtins known to work in the interpreter
- Check eval_layout.rs supported builtins when adopting new Slint language versions
When it happens
Trigger: Interpreted Slint code calling an extra builtin function (layout info helpers such as set-location/combine-layout-info variants with more than 10 parameters) that the match statement does not enumerate.
Common situations: Running .slint code through the interpreter or slint-viewer that uses a builtin added in a newer compiler version; mismatched compiler/interpreter versions.
Understand the failure class
Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.
Related errors
- ItemMemberFunctionCall
- Cannot create component instance
- Cannot get property
- Cannot invoke callback
- Cannot set callback
AI-assisted analysis of slint-ui/slint@3a7e700487 (2026-09-16).
Data as JSON: /api/errors/3d1f6f239a566fcc.
Report an issue: GitHub.
Appendix: source
Thrown at internal/interpreter/eval_layout.rs:337
"flexbox_layout_info_cross_axis" => {
let (ch, cv) = (to_cells(&a[0]), to_cells(&a[1]));
let fp = to_flex_props(&a[2]);
i_slint_core::layout::flexbox_layout_info_cross_axis(
Slice::from_slice(&ch),
Slice::from_slice(&cv),
Slice::from_slice(&fp),
to_f32(&a[3]),
to_f32(&a[4]),
&to_padding(&a[5]),
&to_padding(&a[6]),
to_enum(&a[7]),
to_enum(&a[8]),
to_enum(&a[9]),
to_f32(&a[10]),
)
.into()
}
other => unimplemented!("ExtraBuiltinFunctionCall `{other}`"),
}
}
fn eval_info(ctx: &mut EvalContext, e: &Expression) -> LayoutInfo {
eval_expression(ctx, e).try_into().unwrap_or_default()
}
/// One flexbox cell as seen by the measure callback, after expanding
/// repeaters (a repeater contributes one entry per instance).
enum FlatCell<'a> {
Static {
v_info: &'a Expression,
},
Repeated(vtable::VRc<i_slint_core::item_tree::ItemTreeVTable, crate::instance::Instance>),
/// Not height-for-width: the pre-resolved sizes are already correct.
Fixed,
}
View on GitHub (pinned to 3a7e700487)