Replies: 1 comment 1 reply
-
|
Some thoughts:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
At Zed we're trying to eliminate some of the sources of potential stack overflow with our rendering code; we've identified one potential avenue for such overflow in taffy, as it does not seem to take any measures to avoid it.
We've built a toy example for a deep element tree and even with use of
stacksafewe're still seeing crashes in this example that trace back to taffy (1).Such stack overflow can also be reproduced with
super deepbenchmark with larger tree sizes 2.Is there any prior art with taffy for dealing with these kinds of issues? These stack overflows are not a huge issue for us, but we do see these in the wild and so ideally we'd love to solve that somehow directly within taffy (an alternative is for us to fork taffy and apply
stacksafeourselves, but we'd rather refrain from doing that). Our GPUI library is also being used by external parties and so it feels kind of bad for us to have a potential crashes lurking in the wild - especially one we have little control over in practice.Footnotes
taffy-stack-overflow-853.txt ↩
I went with 20k, but there's probably an earlier cutoff point available. ↩
Beta Was this translation helpful? Give feedback.
All reactions