Skip to content

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

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

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions