Skip to content

Windows build_tests flakes on android_aot_release_android-arm64 failure #97160

Description

@keyonghan

(part of #97036)
These data is based Q4 2021 flakes that happened from 10/01/2021 to 01/13/2022, and there are 3 flake.

  • Windows build_tests_1_3: 1 flake
  • Windows build_tests_2_3: 2 flakes(1, 2)
[ +193 ms] [ +249 ms] android_aot_bundle_release_android-arm: Starting due to {}
[        ] [   +6 ms] android_aot_bundle_release_android-arm: Complete
[  +94 ms] [  +65 ms] Dart snapshot generator failed with exit code -1073740940
[   +2 ms] [   +9 ms] Target android_aot_release_android-arm64 failed: Exception: AOT snapshotter exited with code -1073740940
[        ]            #0      AndroidAot.build (package:flutter_tools/src/build_system/targets/android.dart:257:7)
[        ]            <asynchronous suspension>
[        ]            #1      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:839:9)
[        ]            <asynchronous suspension>
[        ]            #2      Future.wait.<anonymous closure> (dart:async/future.dart)
[        ]            <asynchronous suspension>
[        ]            #3      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:777:32)
[        ]            <asynchronous suspension>
[        ]            #4      Future.wait.<anonymous closure> (dart:async/future.dart)
[        ]            <asynchronous suspension>
[        ]            #5      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:777:32)
[        ]            <asynchronous suspension>
[        ]            #6      FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:606:16)
[        ]            <asynchronous suspension>
[        ]            #7      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:317:32)
[        ]            <asynchronous suspension>
[        ]            #8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1135:27)
[        ]            <asynchronous suspension>
[        ]            #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]            <asynchronous suspension>
[        ]            #10     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[        ]            <asynchronous suspension>
[        ] [   +5 ms] Persisting file store
[        ] [  +13 ms] Done persisting file store
[        ]            #11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
[        ]            <asynchronous suspension>
[        ]            #12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]            <asynchronous suspension>
[        ]            #13     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Jan 25, 2022
  2. keyonghan commented on Jan 25, 2022

    @keyonghan
    ContributorAuthor

    @zanderso Could you help take a further look? We are scanning flakes in shards tests (which contains many unit/integration tests), and want to either fix or skip corresponding flaky tests to try achieving 0 flakes from them.

  3. added
    P2Important issues not at the top of the work list
    and removed
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Jan 25, 2022
  4. removed their assignment
    on Jan 25, 2022
  5. zanderso commented on Jan 25, 2022

    @zanderso
    Member

    @a-siva @aam Any idea what that exit code from gen_snapshot means on Windows?

  6. zanderso commented on Jan 25, 2022

    @zanderso
    Member

    @keyonghan a test that has only flaked three times since the beginning of October is well within our objective, so I am setting the priority of this to P4.

  7. aam commented on Jan 25, 2022

    @aam
    Member

    [ +94 ms] [ +65 ms] Dart snapshot generator failed with exit code -1073740940

    That corresponds to unsigned 0xC0000374 which is a heap corruption exception on Windows.

  8. keyonghan commented on Mar 22, 2022

    @keyonghan
    ContributorAuthor
  9. keyonghan commented on Apr 25, 2022

    @keyonghan
    ContributorAuthor
  10. 20 remaining items

  11. cbracken commented on Mar 1, 2023

    @cbracken
    Member

    Looking at the build, the reported stderr looks empty.

  12. aam commented on Mar 1, 2023

    @aam
    Member

    Potentially gen_snapshot crashes before it installs exception handler in https://github.com/dart-lang/sdk/blob/main/runtime/bin/gen_snapshot.cc#L875.
    There is not much happening before that though - only ParseArguments and some other initialization in PlatformWin::InitOnce but still.
    Perhaps SetExceptionHandler() call can be moved closer to the process launch.

  13. stuartmorgan-g commented on Dec 13, 2023

    @stuartmorgan-g
    Contributor
  14. added
    team-toolOwned by Flutter Tool team
    and removed
    team-infraOwned by Infrastructure team
    triaged-infraTriaged by Infrastructure team
    on Dec 14, 2023
  15. matanlurey commented on Jul 11, 2025

    @matanlurey
    Contributor

    Closing as stale as of 2025.

  16. github-actions commented on Jul 25, 2025

    @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.

  17. locked as resolved and limited conversation to collaborators on Jul 25, 2025
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

    P2Important issues not at the top of the work listc: flakeTests that sometimes, but not always, incorrectly passdependency: dartDart team may need to help usteam-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions