openai/codex · error · anyhow::Error
animation {name} fps must be finite and between 0 and {MAX_A
Error message
animation {name} fps must be finite and between 0 and {MAX_ANIMATION_FPS}, got {fps} What it means
Error "animation {name} fps must be finite and between 0 and {MAX_ANIMATION_FPS}, got {fps}" thrown in openai/codex.
Source
Thrown at codex-rs/tui/src/pets/model.rs:413
return Ok(animations);
}
for (name, spec) in specs {
if spec.frames.is_empty() {
bail!("animation {name} must include at least one frame");
}
for sprite_index in &spec.frames {
if *sprite_index >= frame_count {
bail!(
"animation {name} references sprite index {sprite_index}, but pet has {frame_count} frames"
);
}
}
let fps = match spec.fps {
Some(fps) if fps.is_finite() && fps > 0.0 && fps <= MAX_ANIMATION_FPS => fps,
Some(fps) => {
bail!(
"animation {name} fps must be finite and between 0 and {MAX_ANIMATION_FPS}, got {fps}"
);
}
None => 8.0,
};
let duration = Duration::from_secs_f64(1.0 / fps);
let fallback = if spec.fallback.is_empty() {
"idle".to_string()
} else {
spec.fallback
};
let loop_start = spec
.loop_animation
.unwrap_or(/*default*/ true)
.then_some(/*loop_start*/ 0);
animations.insert(
name,View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/tui/src/pets/model.rs:413 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/4681da336fb0877b.
Report an issue: GitHub.