Endless loop in TAdvRichEditor.ScrollToEnd?

I've problems with ScrollToEnd of TAdvRichEditor

When debugging I'm hanging in the While-Loop of CalcCaretXY. At least the ToElementIndex is not changing inside the loop.

Do you have steps/settings how we can reproduce this?

Not very easy. I'm showing a log file of my application which contains sensitive data.
I'll try to figure out, if it stopps at a specile line.