Skip to content

After NantesLabel in the cell of the message list page calls findCheckingResults of NSAttributedString, the memory usage starts to increase sharply until it crashes. #92

@Hjt830

Description

@Hjt830

Describe the bug
When entering the chat page, the memory usage doubled. After using Instruments to analyze, it was found that the memory usage of nantesLabel in each cell began to increase after calling findCheckingResults of NSAttributedString.

To Reproduce
Steps to reproduce the behavior:

  1. Go to chat page, there are many history text messages
  2. every text message cell have a nantesLabel, it auto checkingText when set a text
  3. the memory is growing up after call function findCheckingResults
  4. then app was killed by operation system

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Nantes version: 0.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions