Repository navigation
Mac/Android tests timing out on "Waiting for observatory port to be available..." #77193
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.c: fatal crashCrashes that terminate the processCrashes that terminate the processc: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-androidAndroid applications specificallyAndroid applications specifically
Description
Examples:
- https://ci.chromium.org/p/flutter/builders/prod/Mac_android%20flutter_view__start_up/401
- https://ci.chromium.org/p/flutter/builders/prod/Mac_android%20smoke_catalina_start_up/193
- https://ci.chromium.org/p/flutter/builders/prod/Mac_android%20smoke_catalina_start_up/218
- https://ci.chromium.org/p/flutter/builders/prod/Mac_android%20microbenchmarks/414
- https://ci.chromium.org/p/flutter/builders/prod/Mac_android%20complex_layout__start_up/404
- https://ci.chromium.org/p/flutter/builders/prod/Mac_android%20microbenchmarks/418?
[flutter_view__start_up] [STDOUT] stdout: [ +6 ms] Launching lib/main.dart on Moto G 4 in profile mode...
[flutter_view__start_up] [STDOUT] stdout: [ +3 ms] executing: /opt/s/w/ir/cache/android/platform-tools/adb -s ZY223J893R shell -x logcat -v time -t 1
[flutter_view__start_up] [STDOUT] stdout: [ +63 ms] --------- beginning of system
[flutter_view__start_up] [STDOUT] stdout: 03-01 09:30:21.991 I/WindowManager( 1540): Destroying surface Surface(name=Starting com.google.android.googlequicksearchbox) called by com.android.server.wm.WindowStateAnimator.destroySurface:2069 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:897 com.android.server.wm.WindowState.destroyOrSaveSurface:2121 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.WindowStateAnimator.finishExit:575 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:501 com.android.server.wm.WindowAnimator.updateWindowsLocked:303 com.android.server.wm.WindowAnimator.animateLocked:704
[flutter_view__start_up] [STDOUT] stdout: [ +10 ms] executing: /opt/s/w/ir/cache/android/platform-tools/adb version
[flutter_view__start_up] [STDOUT] stdout: [ +5 ms] Android Debug Bridge version 1.0.41
[flutter_view__start_up] [STDOUT] stdout: Version 29.0.2-5738569
[flutter_view__start_up] [STDOUT] stdout: Installed as /opt/s/w/ir/cache/android/platform-tools/adb
[flutter_view__start_up] [STDOUT] stdout: [ +2 ms] executing: /opt/s/w/ir/cache/android/platform-tools/adb start-server
[flutter_view__start_up] [STDOUT] stdout: [ +6 ms] Stopping app 'app-profile.apk' on Moto G 4.
[flutter_view__start_up] [STDOUT] stdout: [ +1 ms] executing: /opt/s/w/ir/cache/android/platform-tools/adb -s ZY223J893R shell am force-stop io.flutter.examples.flutter_view
[flutter_view__start_up] [STDOUT] stdout: [ +880 ms] executing: /opt/s/w/ir/cache/android/platform-tools/adb -s ZY223J893R shell pm list packages io.flutter.examples.flutter_view
[flutter_view__start_up] [STDOUT] stdout: [ +936 ms] Installing APK.
[flutter_view__start_up] [STDOUT] stdout: [ +4 ms] Installing build/app/outputs/flutter-apk/app-profile.apk...
[flutter_view__start_up] [STDOUT] stdout: [ ] executing: /opt/s/w/ir/cache/android/platform-tools/adb -s ZY223J893R install -t -r /opt/s/w/ir/k/recipe_cleanup/tmpfZcGdz/flutter sdk/examples/flutter_view/build/app/outputs/flutter-apk/app-profile.apk
[flutter_view__start_up] [STDOUT] stdout: [+5320 ms] Performing Streamed Install
[flutter_view__start_up] [STDOUT] stdout: Success
[flutter_view__start_up] [STDOUT] stdout: [ +12 ms] Installing build/app/outputs/flutter-apk/app-profile.apk... (completed in 5.3s)
[flutter_view__start_up] [STDOUT] stdout: [ ] executing: /opt/s/w/ir/cache/android/platform-tools/adb -s ZY223J893R shell echo -n > /data/local/tmp/sky.io.flutter.examples.flutter_view.sha1
[flutter_view__start_up] [STDOUT] stdout: [ +40 ms] executing: /opt/s/w/ir/cache/android/platform-tools/adb -s ZY223J893R shell -x logcat -v time -t 1
[flutter_view__start_up] [STDOUT] stdout: [ +86 ms] --------- beginning of main
[flutter_view__start_up] [STDOUT] stdout: 03-01 09:30:29.934 I/Finsky ( 6740): [467] qod.run(-1): Wrote row to frosting DB: 25210
[flutter_view__start_up] [STDOUT] stdout: [ +5 ms] executing: /opt/s/w/ir/cache/android/platform-tools/adb -s ZY223J893R shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez trace-startup true io.flutter.examples.flutter_view/com.example.view.MainActivity
[flutter_view__start_up] [STDOUT] stdout: [ +911 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=io.flutter.examples.flutter_view/com.example.view.MainActivity (has extras) }
[flutter_view__start_up] [STDOUT] stdout: [ ] Waiting for observatory port to be available...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.c: fatal crashCrashes that terminate the processCrashes that terminate the processc: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-androidAndroid applications specificallyAndroid applications specifically
Activity
godofredoc commentedon Mar 4, 2021
\cc @jonahwilliams @jmagman
Hixie commentedon Mar 9, 2021
cc @goderbauer
Hixie commentedon Mar 17, 2021
cc @xster
jmagman commentedon Mar 17, 2021
These tests pass locally for me on a Pixel 4.
Hixie commentedon Mar 23, 2021
@godofredoc These are failing on the Moto G4s, with a macOS host, right?
godofredoc commentedon Mar 23, 2021
yes, that is correct.
xster commentedon Mar 31, 2021
I think it's going to be hard to archeologize this from the old run instances now since it's not reproducible and the flake rate since those runs in the last month is bad but not blocking.
We should certainly improve on this. I'd recommend continuing on #79097 to take more actions in the future since it's likely hard to extract more todos from the old logs. Dan's timeline dump could likely help categorize and break this cluster down more. I think we can do an adb logcat dump too on the side to help more.
44 remaining items
zanderso commentedon May 20, 2021
@jonahwilliams do you know if something like your change in #77193 (comment) ever landed?
jonahwilliams commentedon May 20, 2021
No, I haven't landed anything that changed stopApp around.
jonahwilliams commentedon May 20, 2021
that said I did re-discover that we need an attached device for attach, which is wrong, but it means we could easily make the switch with no regressions today.
keyonghan commentedon Jun 2, 2021
Another failed build: https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_android%20microbenchmarks/1367/overview
zanderso commentedon Jun 2, 2021
Are we getting logs from the device on these failures? I didn't think we needed a VM service connection on Android to get the device logs. Either way, since I think there hasn't been any fix for this landed anywhere, we should assume that the cause is the same as above.
@jonahwilliams Is the issue with
attacha blocker for re-orderingdevice.stopAppandvmService.flutterExit?jonahwilliams commentedon Jun 2, 2021
There is no issue with attach since we require a device. LMK and I can change the behavior here
zanderso commentedon Jun 2, 2021
Yes, let's do it =) Thanks.
jonahwilliams commentedon Jun 2, 2021
on it
keyonghan commentedon Jun 3, 2021
is anything changed here related to recent TOT failures? More than 10 tests failed with timeout on

Waiting for observatory port to be availablejonahwilliams commentedon Jun 3, 2021
That is a different failure caused by a bad engine roll
godofredoc commentedon Sep 24, 2021
I haven't seen this issue recently, please reopen if you find it again.
github-actions commentedon Oct 8, 2021
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.