mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.25k stars 2.95k forks source link

Memory leak when opening and closing tab tray #22952

Open data-sync-user opened 3 weeks ago

data-sync-user commented 3 weeks ago

Steps:

  1. Launch app
  2. Open and close the tab tray repeatedly
  3. Observe memory usage

Result: the application leaks memory.

┆Issue is synchronized with this Jira Bug

data-sync-user commented 3 weeks ago

➤ Matt Reagan commented:

A few notes: we're leaking TabDisplayView, along with some related components. There's some potential problems also involving our image fetchers, and we’re leaking many instances of DefaultLetterImageGenerator, which is potentially related to TabCell (which is the class that instantiates it), which is part of the new diffable data source code.

data-sync-user commented 1 week ago

➤ Matt Reagan commented:

A partial fix has been implemented to alleviate memory leaks for users, however this ticket should remain open so we can: