-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.34.1] MaestroDriverStartupException$IOSDriverTimeoutException #1585
Comments
up, same problem |
Same, this does not repro on 1.34.0, so it looks to be a regression in the 1.34.1 release |
Same problem here with maestro 1.34.1 |
Actually, I have the same issue with the 1.34.0 version. I just tried it. |
I faced the same problem when running Maestro on CI. It went away when I increased the driver's timeout from 15s to 60s. The following is from the Maestro docs on how to do this: https://maestro.mobile.dev/advanced/configuring-maestro-driver-timeout
|
Thanks, but I already try that too. It doesn't change, same error : |
has a work around here been found? this is preventing us from running iOS 17 with maestro |
I'm having this exact issue. For reference, I'm trying to run maestro from crontab using the .zsh profile and ~/.maestro/bin/maestro Works fine when run manually but that doesn't exactly help our automation |
same problem... |
Having this same problem mainly on v1.35.0, this was previously intermittent on v1.34.1. |
Same issue on v1.35.0, i run it for 3 times on CI and with delay in between, on 3rd attempt it managed to run |
I'm encountering the same issue with the latest version (1.36.0). I've tried different workarounds, like increasing the timeout or retrying after a delay. The old version (1.33.1) is more stable, although I'm also running into this error from time to time there. Has any of the devs had a chance to look at this issue? It is already open for over three months. Update: I've also noticed that Maestro runs more reliably when the Simulator app is visible in the foreground ( |
Same problem... I change ios 17.2 to 15.0 and know start |
same here, tried version from 1.33.1 to 1.36.1, |
Having same problem on v1.36.0:
|
After updating iOS 17.4 and Xcode 15.3 in the CI (Codemagic), Maestro now works flawlessly. Not sure of the reason but wanted to share my experience. |
Hi guys, a thing that helped me was to reboot the Mac to the factory setting. I know it is quite an unpopular and drastic solution. However, after that, the Maestro and VS code setup was done in one hour without any trouble. |
Any updates on this issue. we are facing a similar situation, where we use ios 17.2 device on CI |
Here is my discovery: for some reason, when you are running Maestro under IOS 17.0 or 17.2, when Maestro runs the command Build mastro runner-> Start Maestro driver -> wait until install is completed ( while |
Hey guys, thanks to all of you for sharing information and sorry for the problems. It'd be really helpful for us if you also shared the Xcode version and iOS simulator version you use when the error happens, along with Maestro CLI version. Thanks! |
@WzDTj Hey, could you explain this discover in more detail? Thank you. |
@bartekpacia After I saw ::1:22087, I realized that I didn’t enable ipv6 support in my proxy tool, so I enabled it. It was not connecting directly, but through the proxy. So I excluded ::1 from my proxy and everything worked fine. |
Also experiencing this issue on macos 14 Github action:
|
@gtokman Did you manage to find a workaround? This is stopping me from using Maestro for our end-to-end tests in Github Actions. Very unfortunate.. |
Hello I still encounter this issue on 1.37.9 on iOS I even tried to revert to older versiosn but i still have the timeout, I tried to changed the timeout but no success.
|
If it would be helpful to have a public repo demonstrating it, here is: I'm continuing to try troubleshooting steps above to see if I can fix it. UPDATE: I was able to fix this error on my work project by:
(Unfortunately I can't easily test that on the sample project above because my personal GitHub Actions account isn't paid.) |
I'm encountering this issue on version 1.37.9 for iOS. On my last five runs, it happened two times. |
We are also facing this issue in our Bitrise CI environment, currently using version 1.37.9.
|
Same issue with 1.37.9. Macos: 13.6.9
|
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
While trying to solve this problem in a circleci pipeline I changed from M1 Medium (6 GB RAM and 4 CPU) to M1 Large (12 GB RAM and 8 CPU) and the problem completly dissapeared. Maybe it's related to the lack of resources? |
For my setup on Bitrise CI, I managed to fix the issue by using Xcode 15.4 and Maestro version 1.37.9. |
Thanks, I will give it a try regarding the version 1.37.9. I am also using it within a Bitrise CI, and sometimes I also get the Unable to launch app com.: Unable to launch app com. ), so it is quite intermittent 😅 |
I'm running on It seems as mathias5r mentioned above, just the runner being busy(or lack of resources), that it takes over 2 minutes for it to start testing. Here's the snippet of my Github action script, I set timeout to 4 minutes echo "Install app"
xcrun simctl install ${{ env.DEVICE_ID }} my.app
echo "Launch app"
xcrun simctl launch --console ${{ env.DEVICE_ID }} com.my.app &
echo "Run test"
export MAESTRO_CLI_NO_ANALYTICS=1
export MAESTRO_DRIVER_STARTUP_TIMEOUT=240000
~/.maestro/bin/maestro --device ${{ env.DEVICE_ID }} test --format html -e PLATFORM=IOS --output ios.html maestro/ And it outputs like this
Meanwhile, in my M1 Pro local, the same tests with app already installed and launched, it also takes a good 10~15 seconds for the message
So it seems things just take a long time to start, especially on Github action where even the xlarge instance isn't very powerful for these tests. |
I'm also trying to set up Maestro on Github Actions and I'm having the exact same issue, I've already changed the mac os version and none of them works.
|
Hi, This is the script I wrote to ensure only one emulator was launched:
|
Hey folks, can you try the latest version. We made some improvements on setup of iOS driver so this should be fixed. LMK! |
Describe the bug
The issue occurs when running a Flow.
To Reproduce
Steps to reproduce the behavior :
maestro test ./flows
// (flows is a folder with all my .yml)Expected behavior
The error is not occurs
Screenshots
maestro.MaestroDriverStartupException$IOSDriverTimeoutException: Maestro iOS driver did not start up in time
at maestro.drivers.IOSDriver.awaitLaunch(IOSDriver.kt:476)
at maestro.drivers.IOSDriver.open(IOSDriver.kt:65)
at maestro.Maestro$Companion.ios(Maestro.kt:585)
at maestro.cli.session.MaestroSessionManager.createIOS(MaestroSessionManager.kt:309)
at maestro.cli.session.MaestroSessionManager.createMaestro(MaestroSessionManager.kt:154)
at maestro.cli.session.MaestroSessionManager.access$createMaestro(MaestroSessionManager.kt:49)
at maestro.cli.session.MaestroSessionManager$newSession$session$1.invoke(MaestroSessionManager.kt:82)
at maestro.cli.session.MaestroSessionManager$newSession$session$1.invoke(MaestroSessionManager.kt:81)
at maestro.cli.db.KeyValueStore.withExclusiveLock(KeyValueStore.kt:37)
at maestro.cli.session.SessionStore.withExclusiveLock(SessionStore.kt:74)
at maestro.cli.session.MaestroSessionManager.newSession(MaestroSessionManager.kt:81)
at maestro.cli.session.MaestroSessionManager.newSession$default(MaestroSessionManager.kt:58)
at maestro.cli.command.TestCommand.call(TestCommand.kt:136)
at maestro.cli.command.TestCommand.call(TestCommand.kt:46)
at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
at picocli.CommandLine.access$1200(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
at maestro.cli.DisableAnsiMixin$Companion.executionStrategy(DisableAnsiMixin.kt:22)
at picocli.CommandLine.execute(CommandLine.java:2058)
at maestro.cli.AppKt.main(App.kt:117)
Environment information (please complete the following information):
Additional context
After many attempts, it freezes the simulator.
The text was updated successfully, but these errors were encountered: