Open gmorer opened 3 months ago
Thanks for the report! I will try to fix this bug in the near future.
This is the cause from what I can tell: https://github.com/pyatyispyatil/flame-chart-js/blob/ec9d1e24ddc4531fe5783c70aad1c80824594f6f/src/engines/render-engine.ts#L208-L210
lastFlexibleIndex
could become -1
and that leads to the infinite loop since the value of diff
remains constant. What's the expected behaviour here, break the loop?
I'm am using flame chart as a toggle chart in react, by changing the parent height. Which end up with an height of 0. In truncateChildrenLayout() , I end up with an array of
placements
ofstatic
type or with anheight
of 0, which end up in an infinit loop.