Repository navigation
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectfyi-toolFor the attention of Flutter Tool teamFor the attention of Flutter Tool teamteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Command
flutter runSteps to Reproduce
- ...
- ...
- ...
Logs
OutOfMemoryError: (null)
#0 new Uint8List (dart:typed_data-patch/typed_data_patch.dart:2397:3)
#1 Uint8Buffer._createBuffer (package:typed_data/src/typed_buffer.dart:322:40)
#2 TypedDataBuffer._createBiggerBuffer (package:typed_data/src/typed_buffer.dart:253:12)
#3 TypedDataBuffer._ensureCapacity (package:typed_data/src/typed_buffer.dart:235:21)
#4 TypedDataBuffer._insertKnownLength (package:typed_data/src/typed_buffer.dart:203:5)
#5 TypedDataBuffer._addAll (package:typed_data/src/typed_buffer.dart:180:7)
#6 TypedDataBuffer.addAll (package:typed_data/src/typed_buffer.dart:85:5)
#7 HashSink.add (package:crypto/src/hash_sink.dart:79:18)
#8 _ByteAdapterSink.add (dart:convert/byte_conversion.dart:50:11)
#9 Hash.convert (package:crypto/src/hash.dart:28:15)
#10 _calculateSha (package:flutter_tools/src/android/gradle.dart:972:20)
#11 AndroidGradleBuilder.buildGradleApp (package:flutter_tools/src/android/gradle.dart:617:36)
#12 _rootRunUnary (dart:async/zone.dart:1538:47)
#13 _FutureListener.handleValue (dart:async/future_impl.dart:208:18)
#14 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:932:45)
#15 Future._propagateToListeners (dart:async/future_impl.dart:961:13)
#16 Future._completeWithValue (dart:async/future_impl.dart:712:5)
#17 _rootRunUnary (dart:async/zone.dart:1538:47)
#18 _FutureListener.handleValue (dart:async/future_impl.dart:208:18)
#19 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:932:45)
#20 Future._propagateToListeners (dart:async/future_impl.dart:961:13)
#21 Future._completeWithValue (dart:async/future_impl.dart:712:5)
#22 Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:792:7)
#23 _rootRun (dart:async/zone.dart:1525:13)
#24 _CustomZone.run (dart:async/zone.dart:1422:19)�[32m[✓]�[39m Flutter (Channel stable, 3.29.3, on Microsoft Windows [Version 10.0.26100.4484], locale en-US) [1,698ms]
�[32m•�[39m Flutter version 3.29.3 on channel stable at C:\src\flutter
�[32m•�[3Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectfyi-toolFor the attention of Flutter Tool teamFor the attention of Flutter Tool teamteam-androidOwned by Android platform teamOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform teamTriaged by Android platform team
Activity
tirth-patel-nc commentedon Jul 9, 2025
Closing this as a duplicate of #133371
bkonyi commentedon Jul 11, 2025
This is not a duplicate of #133371 as the crash it happening when calculating a SHA for an APK, not an OOM error when extracting an archive.
[-][tool_crash] OutOfMemoryError: (null)[/-][+]Tool OOM crash when calculating SHA hash of generated APK[/+]Resolve issue flutter#171860: Optimize SHA hash calculation of genera…
perf(tool): optimize SHA hash calculation of generated APK
Optimize SHA hash calculation of generated APK (flutter#187184)
Optimize SHA hash calculation of generated APK (flutter#187184)
github-actions commentedon Jul 14, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.