Skip to content

IntelliJ Plugin memory leakage #1054

Closed
Closed
@alisevych

Description

@alisevych

Description

Plugin memory leakage in IDEA is detected.
There are many CgContext Objects created in CgComponents - but it seems that they are not removed.

To Reproduce

  1. Install UTBot plugin on IntelliJ Idea 2022.1.4
  2. Use plugin to generate tests
  3. Do not close IDEA and generate tests with UTBot several times

Expected behavior

CgContext Objects are supposed to be destroyed after usage.

Actual behavior

There are many CgContext Objects in Profiler presetn - after several UTBot test generation runs.
There are only getOrPut methods in CgComponents.
After a couple of days running IDEA with UTBot - all 2 GB are used. IDEA is running out of memory.

Environment

Windows 10 Pro
IntelliJ IDEA 2022.1.4

Additional context

Discovered by @Markoutte

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions