Skip to content

Debug adapter consumes CPU when large messages are printed #2877

Closed

Description

@DanTup

Adding:

print('A' * 5000);

To a Fluter project and then running it causes a hang (around 45 seconds on my machine) for the print. Larger messages take many minutes.

The time is being spent in looking for stack frames:

const frame = this.getStackFrameData(message) || this.getWebStackFrameData(message) || this.getMessageWithUriData(message);

These regexes were modified in the latest release, so it's likely those changes have caused this.

Activity

  1. added this to the v3.15.1 milestone on Oct 14, 2020
  2. pinned this issue on Oct 14, 2020
  3. added 4 commits that reference this issue on Oct 15, 2020
    1ca20d6
    670e20e
    3123f1b
    e42dc55
  4. unpinned this issue on Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    importantSomething important!in debuggingRelates to the debug adapter or process of running debug sessionsis bugis performance

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions