-
Notifications
You must be signed in to change notification settings - Fork 317
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
App (React Native) seems to become unresponsive when running with Maestro #805
Comments
Not sure if it's related, but I've also now started getting this in a similar part of the test:
This is happening every time I try and scroll (either Not sure if this is a different symptom of the same problem, or a separate issue entirely. I can open up a different bug report if you'd prefer. |
Hey @matt-dalton can you please try again on the latest Maestro version? We've made a lot of improvements lately and would like to verify whether this is still an issue. Thank you for the help! |
Hey @Leland-Takamine - thanks for fixing. I'm currently on some other projects but will hopefully get back to this in a couple of weeks. |
I'm on the latest release of maestro and I've seen this a few times as well. ActivityIndicators will just freeze and the app hangs. Sometimes waitForAnimationToEnd helps it get through that but not always. |
I'm having the same issue on latest Maestro. Our react native app will freeze on loading screens a second or so after the loading animation starts. |
Joining the club. My observations: Error from maestro log file:
Dev environment:
P.S. As a quick temporary solution you can manually launch simulator and open the app, modify your test as follows and start test:
|
Same issue here. 😢
This just fixes the issue with @Leland-Takamine Any schedule to fix this by any chance? We were just about to setup maestro cloud but if all our tests get stuck, it's not really worth the effort. |
@matt-dalton @keeslinp @konstantinlindner @Dalamar @bobinrinder Thank you all for bumping this issue back up! If any of you are able to send over a simulator build (Feel free to DM me on Slack) along with repro steps that would be very much appreciated! |
I was able to reproduce locally - we are digging in! |
Hey @matt-dalton @keeslinp @konstantinlindner @Dalamar @bobinrinder , Thank you for your valuable feedback! Upon investigating the issue, we identified multiple contributing factors. Primarily, the main thread seems to get overwhelmed by certain XCTest API calls when specific screens are presented (notably during the presentation of the 'fit52' loading screen with an animation). Although XCTest has an internal API, Recommendations:
Additionally, it would immensely aid our investigation if you could share more app examples, flow cases, Should you have further queries or concerns, don't hesitate to reach out. We're here to help! |
Hey @artem888 @Leland-Takamine I believe can reliably reproduce this issue on screens that are using I've created a similar reproduction here: https://github.com/eeston/maestro-issue Hope this is useful! |
This issue has gotten a little stale, and has several slightly different problems. @eeston You don't mention the platform you're tackling, or which of the errors you're encountering. Maestro pulls the entire view of elements from the screen for lots of its commands. When you're running Studio, it's on a cadence. The larger the view, the larger the strain on the device to create it, and the additional traffic that needs to travel across the ADB or IDB bridge to the workstation. If the device cannot keep up with the cadence of requests, you're going to see problems. I'd be interested to know if emulator or workstation performance is a factor here. I wonder if we increased the memory or CPU of the emulator if the same problems would exhibit? |
I'm finding that with certain test runs, the test will get to a certain point, then the app will immediately freeze (i.e. it won't crash, but animations will stop and it will become unresponsive). Eventually maestro will timeout & fail the test.
What's weird is this exact test suite was working reliably yesterday, and a different one was failing repeatedly.
I'm guessing it's when I get to something consuming more memory/CPU:
If I follow the exact same steps manually on the simulator (without maestro running) everything works reliably & smoothly every time.
There's no visible error, but if I rebuild Xcode after the crash I get a debug report:
Versions:
React Native: 0.68.5
Maestro CLI: 1.23.0
Xcode 14.2
Running on Mac M1 16GB Memory
I'm guessing this is something to do with my machine struggling with running both the app and the test runner? But not sure if there's any way of addressing. Anything else I can provide to help debug the issue?
The text was updated successfully, but these errors were encountered: