-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Dart Analyzer, high CPU, massive log file #43765
Comments
The log says class $ItemsTable extends Items with TableInfo<$ItemsTable, Item> {
final GeneratedDatabase _db;
final String _alias;
$ItemsTable(this._db, [this._alias]);
final VerificationMeta _baseMeta = const VerificationMeta('base');
GeneratedIntColumn _base;
@override
GeneratedIntColumn get base => _base ??= _constructBase(); |
This issue is making it painful to develop a flutter app. I get about 5 minutes of use from the analyzer before I need to restart it. Is there anything I can do to work around the problem? Or anything I can do to help towards a fix? |
I have the same issue in Android Studio and VSC. |
Same issue in VSCode and IDEA. Any IDEs open with the Dart plugin active, regardless of whether there are active debugging sessions or not, steadily take up more and more CPU usage until they become unusable after a few minutes. Dart SDK version: 2.10.3 (stable) (Tue Oct 27 14:44:30 2020 +0100) on "macos_x64 |
Can anyone reproduce this in a small sample project that can be shared? |
I've been trying to do this — unfortunately, my project is not currently suffering from this, and I don't have a straightforward way to go back to a state that does reproduce. When I next experience the problem, I'll take a copy of the project tree, and try to pare it down to a reproducible test case. Unfortunately I cannot say when I'm able to do this, as I need to see when I start experiencing this problem again. |
I've been unable to reproduce the issue in all except one of my repos. It's a Flutter desktop project, but using go-flutter & hover rather than the official desktop-embedding (I'm not sure if that info helps). I saw another thread in which the following information was requested, so I'm dumping it in. Anything else I can look for log-wise?
|
@seanmc86 I think the most useful thing would be a project that repros it. Are you able to duplicate your project that has this and strip out anything you can't share to see if it still occurs in a form you could share? |
Because it was so project-specific in my case, I was quite certain it must be something to do with either the files in that project's folder or the type of project files I was working with. |
This seems stale and unactionalble. |
I'm regularly (several times a day) going through a cycle of VS Code becoming unusable due to the Analyzer using all the CPU. I have the log file enabled, and it quickly writes multi-gigabyte log files.
I don't have a clean reproduction of this at this moment — I'll look at that later.
When it starts going wrong, the log file looks like this: (I manually split the lines to make this appear readable in github)
The line goes on a lot longer than this.
I am using https://pub.dev/packages/moor, which uses generated code at
database.g.dart
and creates things like$ItemsTable
as part of its functioning.The text was updated successfully, but these errors were encountered: