Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
Stale frame roots dropped in a loop (the retain's closure was another crate's shape, the dupes check)
shinyobjectz5c6f2fd63b77
diff --git a/runtime/dom/src/host/frames.rs b/runtime/dom/src/host/frames.rsindex d256f9ca..79d502ad 100644--- a/runtime/dom/src/host/frames.rs+++ b/runtime/dom/src/host/frames.rs@@ -174,7 +174,11 @@ pub(crate) fn mount_frames(world: &mut World, roots: &mut Roots) {let alive: std::collections::HashSet<(Entity, NodeId, u64)> = roots.0.iter().filter(|r| r.frame.is_none()).flat_map(|r| r.frames_seen.iter().map(move |(n, u)| (r.page, *n, url_key(u)))).collect();let stale: Vec<Entity> = roots.0.iter().filter(|r| r.frame.is_some_and(|f| !alive.contains(&(f.parent, f.node, f.url)))).map(|r| r.page).collect();if !stale.is_empty() {- roots.0.retain(|r| stale.iter().all(|gone| *gone != r.page));+ for i in (0..roots.0.len()).rev() {+ if stale.contains(&roots.0[i].page) {+ roots.0.remove(i);+ }+ }let mut docs = world.non_send_mut::<Docs>();for page in &stale {docs.0.remove(page);