# VMServiceFlutterDriver problem

**URL:** <https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402>\
**Category:** Tooling Issues\
**Tags:** android, flutter\
**Created:** [July 12, 2021, 8:39pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402 "2021-07-12T20:39:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![esther.kim.dd](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@esther.kim.dd](https://discuss.bitrise.io/u/esther.kim.dd)\
**Post date:** [July 12, 2021, 8:39pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/1 "2021-07-12T20:39:03Z")

</div>

The workflow I’ve created for flutter integration tests does not seem to run 95% of the time.  
It hangs while showing this message.

I’ve tried changing the tests themselves and also changing the flutter drive command to include --debug but nothing seems to work.

I am using the android emulator.

Test call:

```auto
flutter drive --driver=test_driver/integration_test_driver.dart --target=integration_test/test.dart --flavor=development --debug 

```

Error Messasge:

````auto
VMServiceFlutterDriver: Flutter Driver extension is taking a long time to become available. Ensure your test app (often "lib/main.dart") imports "package:flutter_driver/driver_extension.dart" and calls enableFlutterDriverExtension() as the first call in main().```
````

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [July 16, 2021, 12:55pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/2 "2021-07-16T12:55:27Z")

</div>

Hello there @esther.kim.dd 👋

Can you please send us the log file or the URL of the related build and also enable Support Access on the `Settings` tab of the app ( [Enabling the Bitrise Support user for your app | Bitrise DevCenter](https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/) ) so that we can take a more in-depth look? 🙂

---

<div class="post-metadata">

**Author:** ![esther.kim.dd](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@esther.kim.dd](https://discuss.bitrise.io/u/esther.kim.dd)\
**Post date:** [July 17, 2021, 1:12am UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/3 "2021-07-17T01:12:22Z")

</div>

> **[Bitrise - Mobile Continuous Integration and Delivery](https://app.bitrise.io/users/sign_in)**
>
> Mobile Continuous Integration and Delivery for your whole team, with dozens of integrations for your favourite services.

---

<div class="post-metadata">

**Author:** ![seanconnolly](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@seanconnolly](https://discuss.bitrise.io/u/seanconnolly)\
**Post date:** [August 13, 2021, 6:47pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/4 "2021-08-13T18:47:39Z")

</div>

What was the solution to this? As we are facing the exact same problem.

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [August 18, 2021, 12:40pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/5 "2021-08-18T12:40:25Z")

</div>

Hello @seanconnolly 👋

Could you also please share your build’s URL link and enable Support Access? We’ll check it out and try to see what could be the reason behind this issue 🙂

---

<div class="post-metadata">

**Author:** ![seanconnolly](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@seanconnolly](https://discuss.bitrise.io/u/seanconnolly)\
**Post date:** [August 23, 2021, 4:35pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/6 "2021-08-23T16:35:30Z")

</div>

Here is an example build URL: [https://app.bitrise.io/build/da1ddbc3-7b44-4946-80f8-c0e8117f7dd5#?tab=log](https://app.bitrise.io/build/da1ddbc3-7b44-4946-80f8-c0e8117f7dd5#?tab=log)

I also enabled support access.

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [August 24, 2021, 12:44pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/7 "2021-08-24T12:44:58Z")

</div>

Hey there @seanconnolly 👋

I checked your build and wanted to ask if you could switch the custom script step to the Flutter Test step, but according to your workflow editor you’ve already made this change. Nevertheless, I haven’t seen any new builds with the updated workflow as of yet, can you let me know if there are any changes once there is? 🙂

---

<div class="post-metadata">

**Author:** ![seanconnolly](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@seanconnolly](https://discuss.bitrise.io/u/seanconnolly)\
**Post date:** [August 31, 2021, 3:06am UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/8 "2021-08-31T03:06:21Z")

</div>

So I didn’t quite understand your instructions. Our tests are failing in the “Flutter Driver” step, not the Flutter Test step.

In any case, we thought we moved past this by upgrading to Bitrise Elite plan but we started seeing issues again. Sometimes its the original VMServiceFlutterDriver problem but sometimes its just sporadic test failures that we can never reproduce locally.

Another example build: [Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation](https://app.bitrise.io/build/099e68a4-0198-4668-ab22-beec220f8f08#?tab=log)

---

<div class="post-metadata">

**Author:** ![seanconnolly](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@seanconnolly](https://discuss.bitrise.io/u/seanconnolly)\
**Post date:** [August 31, 2021, 8:04pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/9 "2021-08-31T20:04:08Z")

</div>

We also are seeing this error on some builds as well:

`waiting for emulator boot timed out after 300000000000 seconds`

Example build: [Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation](https://app.bitrise.io/build/cf702962-60b0-4616-b2bb-bacc39c55c50#?tab=log)

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [September 7, 2021, 11:51am UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/10 "2021-09-07T11:51:29Z")

</div>

Hello there @seanconnolly 👋

Can you please enable Support Access on the `Settings` tab of the app ( [Enabling the Bitrise Support user for your app | Bitrise DevCenter](https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/) ) so that we can take a more in-depth look? 🙂

---

<div class="post-metadata">

**Author:** ![seanconnolly](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@seanconnolly](https://discuss.bitrise.io/u/seanconnolly)\
**Post date:** [September 7, 2021, 3:24pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/11 "2021-09-07T15:24:11Z")

</div>

Hello,

Support Access is enabled (again). Thanks!

~Sean

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [September 8, 2021, 7:27am UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/12 "2021-09-08T07:27:45Z")

</div>

Hello @seanconnolly, thanks for the access! 🙂

It seems the issue is due to the emulator being created very slowly on this stack, but we could try multiple things to work around this.  
The first is to use a script step, described in this article: [Failed to boot emulator device (AVD) – Bitrise](https://support.bitrise.io/hc/en-us/articles/360006717838?input_string=avd+manager+always+times+out+waiting+for+emulator+to+boot)  
Please note that the script there is written for an android API 29, but you merely need to switch it up with whichever you need (currently it is set to API 30 in your AVD Manager step).

For a number of other users what helped is to switch to an Ubuntu stack from an Xcode stack 🙂

Hope this helps! 🚀

---

<div class="post-metadata">

**Author:** ![seanconnolly](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@seanconnolly](https://discuss.bitrise.io/u/seanconnolly)\
**Post date:** [September 8, 2021, 1:45pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/13 "2021-09-08T13:45:10Z")

</div>

Ok, we will give that a try, thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [October 8, 2021, 1:45pm UTC](https://discuss.bitrise.io/t/vmserviceflutterdriver-problem/17402/14 "2021-10-08T13:45:58Z")

</div>

Closed on October 8, 2021, 1:45pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
