{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/14732","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/14732/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/14732/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/14732/events","html_url":"https://github.com/flutter/flutter/issues/14732","id":297588726,"node_id":"MDU6SXNzdWUyOTc1ODg3MjY=","number":14732,"title":"Integration test timeout on headless android emulator","user":{"login":"sthai256","id":30804656,"node_id":"MDQ6VXNlcjMwODA0NjU2","avatar_url":"https://avatars3.githubusercontent.com/u/30804656?v=4","gravatar_id":"","url":"https://api.github.com/users/sthai256","html_url":"https://github.com/sthai256","followers_url":"https://api.github.com/users/sthai256/followers","following_url":"https://api.github.com/users/sthai256/following{/other_user}","gists_url":"https://api.github.com/users/sthai256/gists{/gist_id}","starred_url":"https://api.github.com/users/sthai256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sthai256/subscriptions","organizations_url":"https://api.github.com/users/sthai256/orgs","repos_url":"https://api.github.com/users/sthai256/repos","events_url":"https://api.github.com/users/sthai256/events{/privacy}","received_events_url":"https://api.github.com/users/sthai256/received_events","type":"User","site_admin":false},"labels":[{"id":628202929,"node_id":"MDU6TGFiZWw2MjgyMDI5Mjk=","url":"https://api.github.com/repos/flutter/flutter/labels/t:%20flutter%20driver","name":"t: flutter driver","color":"5319e7","default":false},{"id":283480100,"node_id":"MDU6TGFiZWwyODM0ODAxMDA=","url":"https://api.github.com/repos/flutter/flutter/labels/tool","name":"tool","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-15T20:39:16Z","updated_at":"2018-10-20T21:36:29Z","closed_at":null,"author_association":"NONE","body":"## Steps to Reproduce\r\n\r\n1. Create a headless android emulator\r\n2. Create the flutter sample project\r\n3. Create a simple integration test to tap the plus button 4 or so times\r\n4. Run flutter drive.\r\n5. Times out upon the second tap.\r\nExpected: integration should pass as running this exact same test on a non-headless emulator works perfectly fine.\r\n\r\n## Logs\r\n\r\nUsing device Android SDK built for x86.\r\nStarting application: test_driver/simple.dart\r\nInitializing gradle...                                0.7s\r\nResolving dependencies...                             0.6s\r\nInstalling build/app/outputs/apk/app.apk...           3.2s\r\nRunning 'gradlew assembleDebug'...                    1.1s\r\nBuilt build/app/outputs/apk/debug/app-debug.apk (24.6MB).\r\nI/flutter ( 6838): Observatory listening on http://127.0.0.1:42659/\r\nI/FlutterActivityDelegate( 6838): onResume setting current activity to this\r\n00:00 +0: groupTest (setUpAll)\r\n[info ] FlutterDriver: Connecting to Flutter application at http://127.0.0.1:8118/\r\n[trace] FlutterDriver: Looking for the isolate\r\n[trace] FlutterDriver: Isolate is paused at start.\r\n[trace] FlutterDriver: Attempting to resume isolate\r\n[trace] FlutterDriver: Waiting for service extension\r\n[info ] FlutterDriver: Connected to Flutter application.\r\n00:01 +0: groupTest test tap\r\ntap 1\r\ntap 2\r\n00:06 +0 -1: groupTest test tap [E]\r\n  DriverError: Error in Flutter application: Timeout while executing tap: TimeoutException after 0:00:05.000000: Future not completed\r\n  #0      FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:168)\r\n  <asynchronous suspension>\r\n  #1      BindingBase.registerServiceExtension.<anonymous closure> (package:flutter/src/foundation/binding.dart:370)\r\n  <asynchronous suspension>\r\n  #2      _runExtension (dart:developer-patch/dart:developer/developer.dart:85)\r\n  \r\n  Original error: null\r\n  Original stack trace:\r\n  null\r\n      \r\n  package:flutter_driver/src/driver/driver.dart 342:7           FlutterDriver._sendCommand\r\n  ===== asynchronous gap ===========================\r\n  dart:async/future_impl.dart 22                                _Completer.completeError\r\n  package:flutter_driver/src/driver/driver.dart                 FlutterDriver._sendCommand\r\n  ===== asynchronous gap ===========================\r\n  dart:async/zone.dart 1055                                     _CustomZone.registerUnaryCallback\r\n  dart:async-patch/dart:async/async_patch.dart 40               _asyncThenWrapperHelper\r\n  package:flutter_driver/src/driver/driver.dart 319:68          FlutterDriver._sendCommand\r\n  package:flutter_driver/src/driver/driver.dart 368:11          FlutterDriver.tap\r\n  ===== asynchronous gap ===========================\r\n  dart:async/zone.dart 1047                                     _CustomZone.registerCallback\r\n  dart:async/zone.dart 964                                      _CustomZone.bindCallbackGuarded\r\n  dart:async/schedule_microtask.dart 147                        scheduleMicrotask\r\n  dart:async/future.dart 198                                    new Future.microtask\r\n  package:flutter_driver/src/driver/driver.dart 367:73          FlutterDriver.tap\r\n  test_driver/simple_test.dart 28:22                            main.<fn>.<fn>\r\n  ===== asynchronous gap ===========================\r\n  dart:async/zone.dart 1055                                     _CustomZone.registerUnaryCallback\r\n  dart:async-patch/dart:async/async_patch.dart 40               _asyncThenWrapperHelper\r\n  test_driver/simple_test.dart 23:31                            main.<fn>.<fn>\r\n  package:test/src/backend/declarer.dart 161:27                 Declarer.test.<fn>.<fn>.<fn>\r\n  ===== asynchronous gap ===========================\r\n  dart:async/zone.dart 1055                                     _CustomZone.registerUnaryCallback\r\n  dart:async-patch/dart:async/async_patch.dart 40               _asyncThenWrapperHelper\r\n  package:test/src/backend/declarer.dart 159:70                 Declarer.test.<fn>.<fn>.<fn>\r\n  package:test/src/backend/invoker.dart 250:15                  Invoker.waitForOutstandingCallbacks.<fn>\r\n  ===== asynchronous gap ===========================\r\n  dart:async/zone.dart 1047                                     _CustomZone.registerCallback\r\n  dart:async/zone.dart 964                                      _CustomZone.bindCallbackGuarded\r\n  dart:async/schedule_microtask.dart 147                        scheduleMicrotask\r\n  dart:async/future.dart 198                                    new Future.microtask\r\n  package:test/src/backend/invoker.dart 247:23                  Invoker.waitForOutstandingCallbacks.<fn>\r\n  dart:async/zone.dart 1126                                     _rootRun\r\n  dart:async/zone.dart 1023                                     _CustomZone.run\r\n  dart:async/zone.dart 1501                                     runZoned\r\n  package:test/src/backend/invoker.dart 247:5                   Invoker.waitForOutstandingCallbacks\r\n  package:test/src/backend/declarer.dart 159:33                 Declarer.test.<fn>.<fn>\r\n  dart:async/zone.dart 1126                                     _rootRun\r\n  dart:async/zone.dart 1023                                     _CustomZone.run\r\n  dart:async/zone.dart 1501                                     runZoned\r\n  package:test/src/backend/declarer.dart 158:13                 Declarer.test.<fn>\r\n  ===== asynchronous gap ===========================\r\n  dart:async/zone.dart 1047                                     _CustomZone.registerCallback\r\n  dart:async/zone.dart 964                                      _CustomZone.bindCallbackGuarded\r\n  dart:async/schedule_microtask.dart 147                        scheduleMicrotask\r\n  dart:async/future.dart 198                                    new Future.microtask\r\n  package:test/src/backend/declarer.dart 143:66                 Declarer.test.<fn>\r\n  package:test/src/backend/invoker.dart 404:25                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>\r\n  ===== asynchronous gap ===========================\r\n  dart:async/zone.dart 1047                                     _CustomZone.registerCallback\r\n  dart:async/zone.dart 964                                      _CustomZone.bindCallbackGuarded\r\n  dart:async/schedule_microtask.dart 147                        scheduleMicrotask\r\n  dart:async/future.dart 198                                    new Future.microtask\r\n  package:test/src/backend/invoker.dart 403:31                  Invoker._onRun.<fn>.<fn>.<fn>.<fn>\r\n  dart:async/future.dart 174                                    new Future.<fn>\r\n  package:stack_trace/src/stack_zone_specification.dart 209:15  StackZoneSpecification._run\r\n  package:stack_trace/src/stack_zone_specification.dart 119:48  StackZoneSpecification._registerCallback.<fn>\r\n  dart:async/zone.dart 1122                                     _rootRun\r\n  dart:async/zone.dart 1023                                     _CustomZone.run\r\n  dart:async/zone.dart 925                                      _CustomZone.runGuarded\r\n  dart:async/zone.dart 965                                      _CustomZone.bindCallbackGuarded.<fn>\r\n  package:stack_trace/src/stack_zone_specification.dart 209:15  StackZoneSpecification._run\r\n  package:stack_trace/src/stack_zone_specification.dart 119:48  StackZoneSpecification._registerCallback.<fn>\r\n  dart:async/zone.dart 1126                                     _rootRun\r\n  dart:async/zone.dart 1023                                     _CustomZone.run\r\n  dart:async/zone.dart 949                                      _CustomZone.bindCallback.<fn>\r\n  dart:async-patch/dart:async/timer_patch.dart 21               Timer._createTimer.<fn>\r\n  dart:isolate-patch/dart:isolate/timer_impl.dart 367           _Timer._runTimers\r\n  dart:isolate-patch/dart:isolate/timer_impl.dart 401           _Timer._handleMessage\r\n  dart:isolate-patch/dart:isolate/isolate_patch.dart 164        _RawReceivePortImpl._handleMessage\r\n  ===== asynchronous gap ===========================\r\n  dart:async/zone.dart 1047                                     _CustomZone.registerCallback\r\n  dart:async/zone.dart 964                                      _CustomZone.bindCallbackGuarded\r\n  dart:async/timer.dart 52                                      new Timer\r\n  dart:async/timer.dart 87                                      Timer.run\r\n  dart:async/future.dart 172                                    new Future\r\n  package:test/src/backend/invoker.dart 403:15                  Invoker._onRun.<fn>.<fn>.<fn>\r\n  ===== asynchronous gap ===========================\r\n  dart:async/zone.dart 1047                                     _CustomZone.registerCallback\r\n  dart:async/zone.dart 964                                      _CustomZone.bindCallbackGuarded\r\n  dart:async/schedule_microtask.dart 147                        scheduleMicrotask\r\n  dart:async/future.dart 198                                    new Future.microtask\r\n  package:test/src/backend/invoker.dart 390:27                  Invoker._onRun.<fn>.<fn>.<fn>\r\n  dart:async/zone.dart 1126                                     _rootRun\r\n  dart:async/zone.dart 1023                                     _CustomZone.run\r\n  dart:async/zone.dart 1501                                     runZoned\r\n  package:test/src/backend/invoker.dart 390:9                   Invoker._onRun.<fn>.<fn>\r\n  package:test/src/backend/invoker.dart 444:15                  Invoker._guardIfGuarded\r\n  package:test/src/backend/invoker.dart 389:7                   Invoker._onRun.<fn>\r\n  package:stack_trace/src/chain.dart 101:24                     Chain.capture.<fn>\r\n  dart:async/zone.dart 1126                                     _rootRun\r\n  dart:async/zone.dart 1023                                     _CustomZone.run\r\n  dart:async/zone.dart 1501                                     runZoned\r\n  package:stack_trace/src/chain.dart 99:12                      Chain.capture\r\n  package:test/src/backend/invoker.dart 388:11                  Invoker._onRun\r\n  package:test/src/backend/live_test_controller.dart 188:11     LiveTestController._run\r\n  package:test/src/backend/live_test_controller.dart 40:31      _LiveTest.run\r\n  dart:async/future.dart 200                                    new Future.microtask.<fn>\r\n  dart:async/zone.dart 1122                                     _rootRun\r\n  dart:async/zone.dart 1023                                     _CustomZone.run\r\n  dart:async/zone.dart 925                                      _CustomZone.runGuarded\r\n  dart:async/zone.dart 965                                      _CustomZone.bindCallbackGuarded.<fn>\r\n  dart:async/zone.dart 1126                                     _rootRun\r\n  dart:async/zone.dart 1023                                     _CustomZone.run\r\n  dart:async/zone.dart 925                                      _CustomZone.runGuarded\r\n  dart:async/zone.dart 965                                      _CustomZone.bindCallbackGuarded.<fn>\r\n  dart:async/schedule_microtask.dart 41                         _microtaskLoop\r\n  dart:async/schedule_microtask.dart 50                         _startMicrotaskLoop\r\n  dart:isolate-patch/dart:isolate/timer_impl.dart 376           _Timer._runTimers\r\n  dart:isolate-patch/dart:isolate/timer_impl.dart 401           _Timer._handleMessage\r\n  dart:isolate-patch/dart:isolate/isolate_patch.dart 164        _RawReceivePortImpl._handleMessage\r\n  \r\n00:06 +0 -1: groupTest (tearDownAll)\r\n00:06 +0 -1: Some tests failed.\r\n\r\nUnhandled exception:\r\nDummy exception to set exit code.\r\n#0      _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:1114)\r\n#1      _microtaskLoop (dart:async/schedule_microtask.dart:41)\r\n#2      _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)\r\n#3      _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:376)\r\n#4      _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:401)\r\n#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:164)\r\nStopping application instance.\r\nDriver tests failed: 255\r\n"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/431619864","html_url":"https://github.com/flutter/flutter/issues/14732#issuecomment-431619864","issue_url":"https://api.github.com/repos/flutter/flutter/issues/14732","id":431619864,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTYxOTg2NA==","user":{"login":"mmcc007","id":1980785,"node_id":"MDQ6VXNlcjE5ODA3ODU=","avatar_url":"https://avatars2.githubusercontent.com/u/1980785?v=4","gravatar_id":"","url":"https://api.github.com/users/mmcc007","html_url":"https://github.com/mmcc007","followers_url":"https://api.github.com/users/mmcc007/followers","following_url":"https://api.github.com/users/mmcc007/following{/other_user}","gists_url":"https://api.github.com/users/mmcc007/gists{/gist_id}","starred_url":"https://api.github.com/users/mmcc007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmcc007/subscriptions","organizations_url":"https://api.github.com/users/mmcc007/orgs","repos_url":"https://api.github.com/users/mmcc007/repos","events_url":"https://api.github.com/users/mmcc007/events{/privacy}","received_events_url":"https://api.github.com/users/mmcc007/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T21:36:29Z","updated_at":"2018-10-20T21:36:29Z","author_association":"NONE","body":"Yep that would help. Currently have to add a timeout to each call to the emulator/simulator so a global way to do that would make a lot of sense."}}
{"actor":{"display_login":"mmcc007"}}