zellij-org/zellij · error

Failed to get pane geoms

Error message

Failed to get pane geoms

What it means

Error "Failed to get pane geoms" thrown in zellij-org/zellij.

Source

Thrown at zellij-server/src/panes/tiled_panes/stacked_panes.rs:634

        }
        let mut geoms_to_combine: Vec<PaneGeom> = geoms_to_combine.iter().copied().collect();

        geoms_to_combine.sort_by(|a_geom, b_geom| a_geom.y.cmp(&b_geom.y));
        let geom_to_combine = geoms_to_combine.get(0)?;
        geom_to_combine
            .combine_vertically_with_many(&geoms_to_combine.iter().copied().skip(1).collect())
    }
    pub fn combine_vertically_aligned_panes_to_stack(
        &mut self,
        root_pane_id: &PaneId,
        neighboring_pane_ids: Vec<PaneId>,
    ) -> Result<()> {
        let (geom_of_main_pane, mut extra_stacked_geoms_of_main_pane) = self
            .extract_geoms_from_stack(*root_pane_id)
            .ok_or_else(|| anyhow!("Failed to extract geoms from stack"))?;
        let mut other_pane_ids_and_geoms = self
            .positions_of_panes_and_their_stacks(neighboring_pane_ids)
            .ok_or_else(|| anyhow!("Failed to get pane geoms"))?;
        if other_pane_ids_and_geoms.is_empty() {
            // nothing to do
            return Ok(());
        };
        let Some(geom_to_combine) = self.combine_geoms_horizontally(&other_pane_ids_and_geoms)
        else {
            log::error!("Failed to combine geoms horizontally");
            return Ok(());
        };
        let new_stack_geom = if geom_to_combine.y < geom_of_main_pane.y {
            geom_to_combine.combine_vertically_with(&geom_of_main_pane)
        } else {
            geom_of_main_pane.combine_vertically_with(&geom_to_combine)
        };
        let Some(new_stack_geom) = new_stack_geom else {
            // nothing to do, likely the pane below is fixed
            return Ok(());
        };

View on GitHub (pinned to 98a0837077)

When it happens

Trigger: Thrown at zellij-server/src/panes/tiled_panes/stacked_panes.rs:634 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zellij-org/zellij@98a0837077 (2026-08-16). Data as JSON: /api/errors/034887f0670417fb. Report an issue: GitHub.