UITextField freeze/memory leak when scaling secure text

Originator:stefan.gugarel
Number:rdar://28976910 Date Originated:27/10/2016
Status:Duplicate of 28590124 Resolved:
Product:iOS SDK Product Version:iOS 10
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
An app can freeze when a user types a large password into a textfield that tries to scale down the text to fit.

Steps to Reproduce:
1) Create UITextField
2) Enable secure text entry
3) Set font size to > 14pt
4) Set minimum font size to < font size
5) Type into the textfield until the text field tries to scale/scroll

Expected Results:
The app should not freeze.

Actual Results:
App freezes
CPU at 99%

Version:
iOS 10

Notes:
Workarounds:
- set the font size to <= 14pt (even when the user has dynamic type enabled)
- disable font scaling

Configuration:
iPhone 6 Plus

Attachments:
'SecretTextFieldBug.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!