Closed terry960302 closed 1 year ago
+1 it's mine :
Mac Mini, M1, Monterey
Some things to try:
@terry960302 out of interest, is your Mac also an M1?
Some things to try:
- Enable the analysis server instrumentation log then reproduce the issue and have a look at the last lines inside tat log to see if there's an obvious error (or perhaps a loop in analysis)
- If this happens only in some specific folders and not others, try and narrow down what's in that folder that triggers it (for example by opening sub-folders of that folder one at a time, or duplicating the folder and deleting folders until you find the one that causes it)
@terry960302 out of interest, is your Mac also an M1?
dart.analyzerIntrumentationLogFile : "Desktop/filename.txt"
on vscode settings.jsonandroid/app/build/intermediates
directory with vscode, bug start to reproduce. but each directory under intermediates
folder(open javac
or open processed_res
etc...), there's no bug happened, dart zombie process issue only happened when open android/app/build/intermediates
.many directories under intermediates
folder
drwxr-xr-x 5 terry staff 160B 11 11 21:46 ..
drwxr-xr-x 3 terry staff 96B 11 6 14:19 aapt_proguard_file
drwxr-xr-x 5 terry staff 160B 11 11 14:35 compile_and_runtime_not_namespaced_r_class_jar
drwxr-xr-x 3 terry staff 96B 11 7 01:48 default_proguard_files
drwxr-xr-x 5 terry staff 160B 11 11 14:34 flutter
drwxr-xr-x 8 terry staff 256B 11 11 18:00 incremental
drwxr-xr-x 4 terry staff 128B 11 7 01:03 javac
drwxr-xr-x 5 terry staff 160B 11 11 14:35 legacy_multidex_aapt_derived_proguard_rules
drwxr-xr-x 3 terry staff 96B 11 6 14:19 merged-not-compiled-resources
drwxr-xr-x 5 terry staff 160B 11 11 14:35 merged_assets
drwxr-xr-x 3 terry staff 96B 11 6 14:19 packaged_manifests
drwxr-xr-x 5 terry staff 160B 11 11 14:35 processed_res
drwxr-xr-x 3 terry staff 96B 11 6 14:19 res
drwxr-xr-x 5 terry staff 160B 11 11 14:35 runtime_symbol_list
drwxr-xr-x 5 terry staff 160B 11 11 14:35 symbol_list_with_package_name
@DanTup No. My mac is not M1 but intel chip(2019 Macbook pro 16inch)
did analysis server instrumentation log, but there's no log recorded. Am I doing right? set
dart.analyzerIntrumentationLogFile : "Desktop/filename.txt"
on vscode settings.json
I'm not certain, but I think this path might need to be a full absolute path (and the folder might need to exist).
when open
android/app/build/intermediates
directory with vscode, bug start to reproduce
Can you reproduce this from a new project created with flutter create
, or only in this specific project?
i'm facing same issue with dart process, not sure what is causing it. When im running a project its fine. After i close android studio, this process is still running and my computer becomes hot.
Machine: Macbook Air M1
[✓] Flutter (Channel stable, 2.5.3, on macOS 12.0.1 21A559 darwin-arm, locale en-IN) • Flutter version 2.5.3 at /Users/fidelisakilan/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 18116933e7 (8 weeks ago), 2021-10-15 10:46:35 -0700 • Engine revision d3ea636dc5 • Dart version 2.14.4
@fidelisakilan could you try the things noted in https://github.com/dart-lang/sdk/issues/47635#issuecomment-965006034 to see if there's anything useful in a log, or if you can narrow down if it's caused by a specific set of files?
Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll re-open the case if you do. Thanks for your contribution!
When turn on flutter project with vscode. Dart process occupy almost 100% of CPU. (sometimes more than 100%). and never goes down lower than 94%. All the Flutter projects were same.(It's not about project size). Another typescript, go projects doesn't have this problem. Only the flutter projects have dart zombie process issue.
When was the issue happened? After three times of build android apk on flutter projects, had this issue. And I heard, MacOS Monterey have memory leak issue.
Environment
What did I do to solve this problem.(but failed...)
settings.json
>dart.previewLSP : true
flutter doctor
result• No issues found!
dart capture logs
result (when open flutter project) : could not wait more than 7min as macbook temperature goes upper 98 degree celsius.App: Visual Studio Code Version: 1.62.0 Platform: mac
Workspace type: Flutter Analyzer type: LSP Multi-root?: false
Dart SDK: Loc: /Users/terry/Development/flutter/bin/cache/dart-sdk Ver: 2.14.4 Flutter SDK: Loc: /Users/terry/Development/flutter Ver: 2.5.3
HTTP_PROXY: undefined NO_PROXY: undefined
Logging Categories: General, Analyzer, CommandProcesses, DAP, VmService, DevTools, FlutterDaemon, FlutterRun, FlutterTest, PubTest, WebDaemon
Fri Nov 05 2021 [20:49:11 GMT+0900 (대한민국 표준시)] Log file started [오후 8:49:12] [General] [Error] Failed to background start DevTools [오후 8:49:12] [General] [Error] Dart DevTools exited with code 66. [오후 8:49:13] [FlutterDaemon] [Info] <== [{"event":"device.added","params":{"id":"chrome","name":"Chrome","platform":"web-javascript","emulator":false,"category":"web","platformType":"web","ephemeral":false,"emulatorId":null}}] [오후 8:49:13] [General] [Info] Checking 1 projects for supported platforms [오후 8:49:13] [FlutterDaemon] [Info] ==> [{"id":"3","method":"daemon.getSupportedPlatforms","params":{"projectRoot":"/Users/terry/Desktop/FullStackProjects/Monegi/monegi-review/app/monegi"}}] [오후 8:49:13] [FlutterDaemon] [Info] <== [{"id":"3","result":{"platforms":["ios","android","web"]}}] [오후 8:49:13] [General] [Info] Supported platforms for the workspace are ios, android, web Fri Nov 05 2021 [20:56:28 GMT+0900 (대한민국 표준시)] Log file ended