Maestro crashes when app lands on webview
Is there an existing issue for this?
- [x] I have searched the existing issues and didn't find mine.
Steps to reproduce
Reproduction steps:
- Open Maestro
- Connect to an emulator or simulator
- Run a test that lands on webview or manually open a webview in your app
Actual results
IDE crashes with an error or screen mirror is frozen and user cannot change the device
Expected results
User should be able to inspect or view webview in the app
About app
Logs: https://gist.github.com/sudo-naim/d93b947653efee7424100e674e4c4f89 CLI logs: https://gist.github.com/sudo-naim/0a50b8ee353825306dc39095e5dd3c94
About environment
- Java
- openjdk version "17.0.10" 2024-01-16 LTS OpenJDK Runtime Environment Zulu17.48+15-CA (build 17.0.10+7-LTS) OpenJDK 64-Bit Server VM Zulu17.48+15-CA (build 17.0.10+7-LTS, mixed mode, sharing)
- Macbook M1 Pro
- Sequoia 15.7.1
Logs
Logs: https://gist.github.com/sudo-naim/d93b947653efee7424100e674e4c4f89 CLI logs: https://gist.github.com/sudo-naim/0a50b8ee353825306dc39095e5dd3c94
Maestro version
Maestro Studio: 0.8.5 | maestro cli package: 2.0.6
How did you install Maestro?
Homebrew
Anything else?
Slack discussion before opening bug: https://maestro--dev.slack.com/archives/C083YB8N42G/p1760622149310209
This isn't typical behaviour, so we need to understand what's different here.
I don't suppose there's an APK you can share (here, or privately)? If not, maybe the URL of the webview?
@Fishbowler
Few things:
- i cannot share the apk file
- about the url even if I shared it, it's an internal url so you won't be able to open it (however i am available to do a call on slack about this)
- yes you are right, this isn't typical behaviour since I tried the same thing with our company's production app and it worked there
- after some thinking i realised i didn't share the maestro test file, where we might find the issue there, since the only difference between the production app and our test app is that I start the test app with extra launchApp arguments. Could this be the reason of the issue ?
Test file:
appId: de.check24.android.car.alpha
---
- launchApp:
appId: "de.check24.android.car.alpha"
stopApp: true # default is true; keeps behavior same as your iOS snippet
clearState: false
arguments:
SET_APM_ENVIRONMENT: "Test"
REPLACE_URL_TO_FIT_ENV: true
LOGOUT_REMOVE_USER: false
SKIP_INFO_NOTICE_DIALOG: true
SKIP_TRACKING_CONSENT_DIALOG: true
SKIP_CONSENT_PUSH_PERMISSION_DIALOG: true
- scrollUntilVisible:
element:
text: Kfz-Versicherung
- tapOn: Kfz-Versicherung
# HERE APP LANDS on WEBVIEW AND MAESTRO IDE CRASHES
- tapOn: wechseln & sparen
after reinstalling the app and rebooting my macbook it now works...
Wow.
I wonder if in a debuggable state or something, the website can be large enough to overflow the gRPC. If you ever find a path to reproduce this, I'd love to help solve it.
In the meantime, good news that you're back up and running. If you hit any more problems, do come back to Slack!
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. Thank you for helping keep us our issue tracker clean!