Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

01415049200022: Memory leak created switching between different UITextField widgets with/without SecureTextEntry #21306

Open
openradar-mirror opened this issue Jul 31, 2019 · 0 comments

Comments

@openradar-mirror
Copy link

Description

This memory leak is reproducible 100%.
XCode version: 10.3 (10G8)
iOS Simulator: iPhone 8 - iOS 12.4.

Steps to reproduce:

  1. Create a new iOS "Single View App" project on XCode
  2. Create a xib file containing just one UITextField. We called it "FormInputView.xib"
  3. Create a swift class associated to this custom widget (FormInputView.swift)
  4. Add 2 FormInputView inside the unique ViewController in Main.storyboard
  5. Bind one FormInputView inside ViewController.swift file and call it "secureInputView"
  6. In "viewDidLoad" method write this code: "secureInputView.inputTextField.isSecureTextEntry = true"
  7. Profile it (Product -> Profile)
  8. Enter into the first UITextField (0 memory leaks)
  9. Enter into second UITextField (1 memory leak)
  10. And if we go on to switch focus between the 2 UITextFields, new memory leaks will be created

Important things to note:

  • UITextField must be wrapped into a custom widget to make memory leak happens
  • It seems a memory leak generated in [UIKeyboardLayoutStar setKeyplaneName]

Product Version: iOS 12.4
Created: 2019-07-31T13:45:12.038341
Originated: 2019-07-31T00:00:00
Open Radar Link: http://www.openradar.me/01415049200022

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant