-
Notifications
You must be signed in to change notification settings - Fork 30.5k
Process dart:flutter_tools.snapshot and dart:frontend_server_aot.dart.snapshot consumes huge memory on macOS when flutter run even has stopped #179584
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toolc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)c: regressionIt was better in the past than it is nowIt was better in the past than it is nowdependency: dartDart team may need to help usDart team may need to help usfound in release: 3.38Found to occur in 3.38Found to occur in 3.38found in release: 3.40Found to occur in 3.40Found to occur in 3.40has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onperf: memoryPerformance issues related to memoryPerformance issues related to memoryteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toolc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)c: regressionIt was better in the past than it is nowIt was better in the past than it is nowdependency: dartDart team may need to help usDart team may need to help usfound in release: 3.38Found to occur in 3.38Found to occur in 3.38found in release: 3.40Found to occur in 3.40Found to occur in 3.40has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onperf: memoryPerformance issues related to memoryPerformance issues related to memoryteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Steps to reproduce
flutter runExpected results
dart:flutter_tools.snapshotanddart:frontend_server_aot.dart.snapshotprocesses should not consume huge memory (more that 1GB) or at least after application stopped the consuming memory should be reducedActual results
dart:flutter_tools.snapshotis consuming around ±900MB to ±1.36GB, and thedart:frontend_server_aot.dart.snapshotis consuming around ±800MB to ±1.5GB but this process sometimes becomes two processes consuming almost the same amount of memory.Screenshots or Video
Activity Monitor
Flutter Doctor output
Output
Reproduced on version 3.38.4, MacBook Air M3 with 8GB RAM, macOS 26.1 Tahoe.