Infinite loop in `drawTextInRect` with narrow widths

Mac, SDK v1.9.3.

Hitting a beachball in the simulator, reduced it to this minimal testcase:"Hello, World",, 0, 10, 200))

I suspect it has to do with text wrapping.

1 Like

Good find. I think what's happening is that when the rect you pass is too narrow to contain the first wrapped character (W in your example), it keeps trying to wrap it to the next line forever. Increasing the width or replacing the W with a narrower glyph avoids the hang.

Thanks, we'll get this fixed!

1 Like

This is fixed in SDK 1.10.0, available now. Thanks for the report!