Skip to content

[Mac-14] Testing flutter run on macOS device hangs and times out #149268

Closed

Description

@vashworth

Occasionally, across multiple tests, using flutter run on macOS device hangs and eventually times out.

Activity

  1. added
    P2Important issues not at the top of the work list
    platform-macosBuilding on or for macOS specifically
    triaged-iosTriaged by iOS platform team
    and removed
    platform-macosBuilding on or for macOS specifically
    on May 29, 2024
  2. jmagman commented on May 31, 2024

    @jmagman
    Member

    I was able to reproduce the flavors_test_macos test locally, it's stuck on:

     [2024-05-28 10:49:13.785670] [STDOUT] stdout: 00:09 +0: loading /Volumes/Work/s/w/ir/x/w/recipe_cleanup/tmpq9dx7rs2/flutter sdk/dev/integration_tests/flavors/integration_test/integration_test.dart                                                 
     [2024-05-28 10:49:14.785287] [STDOUT] stdout: 00:10 +0: loading /Volumes/Work/s/w/ir/x/w/recipe_cleanup/tmpq9dx7rs2/flutter sdk/dev/integration_tests/flavors/integration_test/integration_test.dart                                                 
     [2024-05-28 10:49:15.784981] [STDOUT] stdout: 00:11 +0: loading /Volumes/Work/s/w/ir/x/w/recipe_cleanup/tmpq9dx7rs2/flutter sdk/dev/integration_tests/flavors/integration_test/integration_test.dart                                                 
     [2024-05-28 10:49:16.784642] [STDOUT] stdout: 00:12 +0: loading /Volumes/Work/s/w/ir/x/w/recipe_cleanup/tmpq9dx7rs2/flutter sdk/dev/integration_tests/flavors/integration_test/integration_test.dart                                                 
     [2024-05-28 10:49:17.785363] [STDOUT] stdout: 00:13 +0: loading /Volumes/Work/s/w/ir/x/w/recipe_cleanup/tmpq9dx7rs2/flutter sdk/dev/integration_tests/flavors/integration_test/integration_test.dart                                                 
     [2024-05-28 10:49:18.785012] [STDOUT] stdout: 00:14 +0: loading /Volumes/Work/s/w/ir/x/w/recipe_cleanup/tmpq9dx7rs2/flutter sdk/dev/integration_tests/flavors/integration_test/integration_test.dart                                                 
     [2024-05-28 10:49:19.784831] [STDOUT] stdout: 00:15 +0: loading /Volumes/Work/s/w/ir/x/w/recipe_cleanup/tmpq9dx7rs2/flutter sdk/dev/integration_tests/flavors/integration_test/integration_test.dart                                                 
     [2024-05-28 10:49:20.785449] [STDOUT] stdout: 00:16 +0: loading /Volumes/Work/s/w/ir/x/w/recipe_cleanup/tmpq9dx7rs2/flutter sdk/dev/integration_tests/flavors/integration_test/integration_test.dart    
    

    and the same issue as #149264 (comment) where the sandboxed app isn't codesigned:
    Screenshot 2024-05-30 at 6 20 02 PM

    That looks similar to integration_ui_test_test_macos timeout:

     [2024-05-28 12:57:20.454167] [STDOUT] stdout: 12:00 +0 -1: loading /Volumes/Work/s/w/ir/x/w/recipe_cleanup/tmpbvfhhro9/flutter sdk/dev/integration_tests/ui/integration_test/integration_test.dart [E]                                               
     [2024-05-28 12:57:20.455277] [STDOUT] stdout:   TimeoutException after 0:12:00.000000: Test timed out after 12 minutes.
     [2024-05-28 12:57:20.475104] [STDOUT] stdout:   package:test_api/src/backend/invoker.dart 338:28  Invoker._handleError.<fn>
     [2024-05-28 12:57:20.475210] [STDOUT] stdout:   dart:async/zone.dart 1391:47                      _rootRun
     [2024-05-28 12:57:20.475238] [STDOUT] stdout:   dart:async/zone.dart 1301:19                      _CustomZone.run
     [2024-05-28 12:57:20.475262] [STDOUT] stdout:   package:test_api/src/backend/invoker.dart 336:10  Invoker._handleError
     [2024-05-28 12:57:20.475285] [STDOUT] stdout:   package:test_api/src/backend/invoker.dart 291:9   Invoker.heartbeat.<fn>.<fn>
     [2024-05-28 12:57:20.475308] [STDOUT] stdout:   dart:async/zone.dart 1399:13                      _rootRun
    

    Guessing tool_integration_tests_4_4 is stuck on the same given the test that timed out:

     26:08 +81 ~1 -1: test/integration.shard/isolated/native_assets_test.dart: flutter run with native assets macos profile [E]
       TimeoutException after 0:10:00.000000: Test timed out after 10 minutes.
       dart:isolate  _RawReceivePort._handleMessage
    

    I wasn't able to reproduce any issues on run_debug_test_macos though, it passed on my machine.

  3. github-actions commented on Jun 18, 2024

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

  4. locked as resolved and limited conversation to collaborators on Jun 18, 2024
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 listplatform-macosBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions