question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Huge memory leak with dart 2.7.0

See original GitHub issue

After upgrading to latest beta channel I’ve notice that code completion in getting slower over time, to the point it stops working completely. Also it is freezing from time to time. What I’ve also noticed is that my free memory level dropped to less than 1GB (I’m having 32GB ram in my machine and usually only 10 to 12GB are used).

Restarting dart analysis brings back over 20GB of free memory.

BTW. I do have set dart.server.additional.argument to --enable-completion-model.

flutter doctor -v
[✓] Flutter (Channel beta, v1.11.0, on Linux, locale en_US.UTF-8)
    • Flutter version 1.11.0 at /home/lock/bin/flutter
    • Framework revision 856a90e67c (3 weeks ago), 2019-11-08 18:00:01 -0800
    • Engine revision af04338413
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /home/lock/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /home/lock/Android/Sdk
    • Java binary at: /home/lock/bin/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Android Studio (version 3.5)
    • Android Studio at /home/lock/bin/android-studio
    • Flutter plugin version 41.1.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

• No issues found!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
HugoB-sccommented, Dec 3, 2020

Do you guys found a solution for that ? The problem seems to persist for me, becoming even worst.

15 minutes after launching intellijIdea, the CPU usage (from activity monitor, in macOS) shows 300 percent usage only from intellij, and if I go in details, more than 100 percent from the dart subsection (under intellij Idea).

1reaction
semsturgutcommented, Dec 4, 2020

Same here with Android Studio.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the best way to avoid memory leaks when a handler ...
There is also no such thing as a memory leak in Dart, the garbage collector can handle closures and circular references just fine....
Read more >
win32 | Dart Package - Pub.dev
Fixed memory leaks in COM and WinRT code when an exception is generated. ... 2.7.0 #. [BREAKING CHANGE] Major work on Windows Runtime...
Read more >
Recursive script calls cause huge Memory leaks that leads to ...
A memory leak would exist, if ram space would still be allocated after a somewhat successful completion of your script, say after 100,000...
Read more >
Using the Memory view - Flutter documentation
Both leaks and bloats, when large, cause an application to crash with an out-of-memory error. However, leaks are more dangerous, because even a...
Read more >
Bug #12095: Memory leak in pcscd - pfSense bugtracker
This issue being the memory leak itself, which is beyond our control, hence the other issues we have made to work around it....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found