Skip to content

Probably-leaking memory around coroutines debug instrumenter #2348

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

Closed
mglukhikh opened this issue Oct 29, 2020 · 4 comments
Closed

Probably-leaking memory around coroutines debug instrumenter #2348

mglukhikh opened this issue Oct 29, 2020 · 4 comments

Comments

@mglukhikh
Copy link

Reproduction: in Kotlin project, run FirDiagnosticsSpecTestGenerated using Gradle from IDEA interface (not from command line). After ~40% tests passed, you will first see slowdown and then tests begin to fail with "GC overhead limit exceeded". NB: when run from command line, tests are completed without problems. NB2: tests can be run one-by-one also without problems.

In memory snapshot I see that a lot of FirCompisiteSymbolProviders are hold by statics or constant pool of kotlinx.coroutines.debug.internal.DebugProbesImpl. Looks like it points to some coroutine debug instrumenter problem.

@mglukhikh
Copy link
Author

Looks like duplicate for #2117

@elizarov
Copy link
Contributor

elizarov commented Nov 3, 2020

It is fixed in kotlinx.coroutines version 1.3.8. Which version you observe this problem on?

@mglukhikh
Copy link
Author

1.3.7.

@qwwdfsad
Copy link
Collaborator

Investigated with Mikhail, Kotlin project used 1.3.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants