Skip to content

Exhausted heap space, trying to allocate 9301736656 bytes. #150137

@nada13ahmed

Description

@nada13ahmed

Steps to reproduce

عند run project or flutter clean or flutter pub get or flutter up grade

Expected results

من المفترض ان command line ينفذ كما هو مطلوب

Actual results

Exhausted heap space, trying to allocate 9301736656 bytes.
Exhausted heap space, trying to allocate 9301736656 bytes.

Exhausted heap space, trying to allocate 9301736656 bytes.

Exhausted heap space, trying to allocate 9301736656 bytes.
Unhandled exception:
FileSystemException: Failed to decode data using encoding 'utf-8', path = 'C:\Users\Sroor For Laptop\AppData\Roaming.dart-tool\dart-flutter-telemetry.log'
#0 _File._tryDecode (dart:io/file_impl.dart:615:7)
#1 _File.readAsStringSync (dart:io/file_impl.dart:624:7)
#2 _File.readAsLinesSync (dart:io/file_impl.dart:630:36)
#3 ForwardingFile.readAsLinesSync (package:file/src/forwarding/forwarding_file.dart:107:16)
#4 LogHandler.save (package:unified_analytics/src/log_handler.dart:285:27)
#5 AnalyticsImpl.send (package:unified_analytics/src/analytics.dart:622:17)
#6 _handleToolError (package:flutter_tools/runner.dart:201:23)
#7 run.. (package:flutter_tools/runner.dart:153:13)
#8 _rootRunBinary (dart:async/zone.dart:1423:47)
#9 _CustomZone.runBinary (dart:async/zone.dart:1315:19)
#10 runZonedGuarded. (dart:async/zone.dart:1798:18)
#11 _Zone._processUncaughtError (dart:async/zone.dart:1081:14)
#12 _CustomZone.handleUncaughtError (dart:async/zone.dart:1285:5)
#13 Future._propagateToListeners (dart:async/future_impl.dart:797:16)
#14 Future._completeError (dart:async/future_impl.dart:660:5)
#15 Future._asyncCompleteError. (dart:async/future_impl.dart:746:7)
#16 _rootRun (dart:async/zone.dart:1399:13)
#17 _CustomZone.run (dart:async/zone.dart:1301:19)
#18 _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#19 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1249:23)
#20 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#21 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#22 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#23 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:405:11)
#24 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#25 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

Code sample

C:\src\flutter\bin\flutter.bat --no-color upgrade
Exhausted heap space, trying to allocate 9301736656 bytes.
Exhausted heap space, trying to allocate 9301736656 bytes.

Exhausted heap space, trying to allocate 9301736656 bytes.

Exhausted heap space, trying to allocate 9301736656 bytes.
Unhandled exception:
FileSystemException: Failed to decode data using encoding 'utf-8', path = 'C:\Users\Sroor For Laptop\AppData\Roaming.dart-tool\dart-flutter-telemetry.log'
#0 _File._tryDecode (dart:io/file_impl.dart:615:7)
#1 _File.readAsStringSync (dart:io/file_impl.dart:624:7)
#2 _File.readAsLinesSync (dart:io/file_impl.dart:630:36)
#3 ForwardingFile.readAsLinesSync (package:file/src/forwarding/forwarding_file.dart:107:16)
#4 LogHandler.save (package:unified_analytics/src/log_handler.dart:285:27)
#5 AnalyticsImpl.send (package:unified_analytics/src/analytics.dart:622:17)
#6 _handleToolError (package:flutter_tools/runner.dart:201:23)
#7 run.. (package:flutter_tools/runner.dart:153:13)
#8 _rootRunBinary (dart:async/zone.dart:1423:47)
#9 _CustomZone.runBinary (dart:async/zone.dart:1315:19)
#10 runZonedGuarded. (dart:async/zone.dart:1798:18)
#11 _Zone._processUncaughtError (dart:async/zone.dart:1081:14)
#12 _CustomZone.handleUncaughtError (dart:async/zone.dart:1285:5)
#13 Future._propagateToListeners (dart:async/future_impl.dart:797:16)
#14 Future._completeError (dart:async/future_impl.dart:660:5)
#15 Future._asyncCompleteError. (dart:async/future_impl.dart:746:7)
#16 _rootRun (dart:async/zone.dart:1399:13)
#17 _CustomZone.run (dart:async/zone.dart:1301:19)
#18 _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#19 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1249:23)
#20 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#21 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#22 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#23 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:185:5)

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

flutter doctor -v

┌─────────────────────────────────────────────────────────┐
│ A new version of Flutter is available! │
│ │
│ To update to the latest version, run "flutter upgrade". │
└─────────────────────────────────────────────────────────┘
Exhausted heap space, trying to allocate 9301736656 bytes.
Exhausted heap space, trying to allocate 9301736656 bytes.

Exhausted heap space, trying to allocate 9301736656 bytes.

Exhausted heap space, trying to allocate 9301736656 bytes.
Unhandled exception:
FileSystemException: Failed to decode data using encoding 'utf-8', path = 'C:\Users\Sroor For Laptop\AppData\Roaming.dart-tool\dart-flutter-telemetry.log'
#0 _File._tryDecode (dart:io/file_impl.dart:615:7)
#1 _File.readAsStringSync (dart:io/file_impl.dart:624:7)
#2 _File.readAsLinesSync (dart:io/file_impl.dart:630:36)
#3 ForwardingFile.readAsLinesSync (package:file/src/forwarding/forwarding_file.dart:107:16)
#4 LogHandler.save (package:unified_analytics/src/log_handler.dart:285:27)
#5 AnalyticsImpl.send (package:unified_analytics/src/analytics.dart:622:17)
#6 _handleToolError (package:flutter_tools/runner.dart:201:23)
#7 run.. (package:flutter_tools/runner.dart:153:13)
#8 _rootRunBinary (dart:async/zone.dart:1423:47)
#9 _CustomZone.runBinary (dart:async/zone.dart:1315:19)
#10 runZonedGuarded. (dart:async/zone.dart:1798:18)
#11 _Zone._processUncaughtError (dart:async/zone.dart:1081:14)
#12 _CustomZone.handleUncaughtError (dart:async/zone.dart:1285:5)
#13 Future._propagateToListeners (dart:async/future_impl.dart:797:16)
#14 Future._completeError (dart:async/future_impl.dart:660:5)
#15 Future._asyncCompleteError. (dart:async/future_impl.dart:746:7)
#16 _rootRun (dart:async/zone.dart:1399:13)
#17 _CustomZone.run (dart:async/zone.dart:1301:19)
#18 _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#19 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1249:23)
#20 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#21 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#22 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#23 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:405:11)
#24 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#25 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listteam-toolOwned by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions