Skip to content

Tool OOM crash when calculating SHA hash of generated APK #171860

Closed

Description

@m-danish-ejaz

Command

flutter run

Steps to Reproduce

  1. ...
  2. ...
  3. ...

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•�[3

Activity

  1. tirth-patel-nc commented on Jul 9, 2025

    @tirth-patel-nc
    Member

    Closing this as a duplicate of #133371

  2. added
    r: duplicateIssue is closed as a duplicate of an existing issue
    and removed
    in triagePresently being triaged by the triage team
    on Jul 9, 2025
  3. reopened this on Jul 11, 2025
  4. bkonyi commented on Jul 11, 2025

    @bkonyi
    Contributor

    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.

  5. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    team-androidOwned by Android platform team
    fyi-toolFor the attention of Flutter Tool team
    and removed
    r: duplicateIssue is closed as a duplicate of an existing issue
    on Jul 11, 2025
  6. changed the title [-][tool_crash] OutOfMemoryError: (null)[/-] [+]Tool OOM crash when calculating SHA hash of generated APK[/+] on Jul 11, 2025
  7. added
    P2Important issues not at the top of the work list
    triaged-androidTriaged by Android platform team
    P3Issues that are less important to the Flutter project
    and removed
    P2Important issues not at the top of the work list
    on Jul 15, 2025
  8. marked Out of Memory #176874 as a duplicate of this issue on Oct 13, 2025
  9. added a commit that references this issue on May 14, 2026
  10. added a commit that references this issue on Jun 12, 2026
    a49a674
  11. added a commit that references this issue on Jun 26, 2026
    e5ac696
  12. github-actions commented on Jul 14, 2026

    @github-actions

    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 -v and a minimal reproduction of the issue.

  13. locked as resolved and limited conversation to collaborators on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectfyi-toolFor the attention of Flutter Tool teamteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions