Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliJ Plugin memory leakage #1054

Closed
Tracked by #1187
alisevych opened this issue Oct 3, 2022 · 0 comments
Closed
Tracked by #1187

IntelliJ Plugin memory leakage #1054

alisevych opened this issue Oct 3, 2022 · 0 comments
Assignees
Labels
comp-codegen Issue is related to code generator ctg-bug Issue is a bug

Comments

@alisevych
Copy link
Member

alisevych commented Oct 3, 2022

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

@alisevych alisevych added the ctg-bug Issue is a bug label Oct 3, 2022
@alisevych alisevych changed the title Plugin memory leakage IntelliJ Plugin memory leakage Oct 3, 2022
@korifey korifey moved this to Todo in UTBot Java Oct 3, 2022
@EgorkaKulikov EgorkaKulikov added the comp-codegen Issue is related to code generator label Oct 3, 2022
Repository owner moved this from Todo to Done in UTBot Java Oct 7, 2022
@alisevych alisevych added this to the 2022.10.1 Release milestone Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-codegen Issue is related to code generator ctg-bug Issue is a bug
Projects
Archived in project
Development

No branches or pull requests

2 participants