mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
* 🐛 Restore the WASM stack pointer after a failed call (#12978) A failed render-wasm call traps without popping its shadow-stack frames. Each failure leaked stack until it overwrote static data, and from then on every call trapped as wasm-critical. h/call now saves the stack pointer before the call and restores it on failure. Closes #12977 Related to #12906 AI-assisted-by: claude-opus-5-5 * 🐛 Fix render-wasm panic when an auto layout has only absolute children An auto flex or grid layout whose children were all absolute shrank to zero, and a rotated shape below it got a matrix that cannot be inverted, which panicked in `_propagate_modifiers`. Skip auto-size when there is no content, as CLJS does. A matrix that still cannot be inverted is now a recoverable error, which shows a toast instead of the error page. Closes #12763 AI-assisted-by: claude-opus-5-5 * 🐛 Count hidden children in render-wasm grid auto-size A grid takes its size from its tracks, so, like CLJS, it skips auto-size only when every child is absolute. Flex still skips hidden children, since its line building leaves them out. Refs #12763 AI-assisted-by: claude-opus-5-5