Skip to content
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

The dialog "App would like to paste from" crashes Maestro CLI and Maestro Studio #1698

Open
mikhail-create opened this issue Mar 18, 2024 · 4 comments
Labels
bug Something isn't working maestro cli Related to the command-line Maestro tool maestro studio Related to Maestro Studio P1 Important, valid issues at the top of the work list platform: ios Testing iOS apps is affected

Comments

@mikhail-create
Copy link

mikhail-create commented Mar 18, 2024

Describe the bug
Tests execution and Maestro Studio stop working for no reason when that modal window appears. However, other native modals, such as the permission request for notifications, work fine.

Screenshots
2024-03-22 11 08 05 (1)

Environment information:

  • Maestro version: 1.36.0
  • Platform: IOS 17
  • Framework: React Native
  • Device model and OS version: IPhone 14 Pro Simulator

Bugreport output
[2024-03-18 12:42:20] [SEVERE ] Request for viewHierarchy failed, because of unknown reason, body: {"code":"internal","errorMessage":"Timed out while evaluating UI query."}

Console output
Error: Request for viewHierarchy failed, because of unknown reason, body: {"code":"internal","errorMessage":"Timed out while evaluating UI query."}
Exception in thread "main" UnknownFailure(errorResponse=Request for viewHierarchy failed, code: 500, body: {"code":"internal","errorMessage":"Timed out while evaluating UI query."})

@mikhail-create mikhail-create added the bug Something isn't working label Mar 18, 2024
@bartekpacia
Copy link
Contributor

Hey Mikhail – thanks for reporting this problem. However it's not reproducible - can you provide the app binary and the flow you're running?

@bartekpacia bartekpacia added waiting for customer response More information is needed from the customer before we can progress on the issue and removed bug Something isn't working labels Aug 15, 2024
@arneson
Copy link

arneson commented Aug 22, 2024

PastePermissionRepro.zip

Here is a minimal repro.
Hit the button to open the popup dialog and maestro studio will stop rendering the app.

@smehr123

This comment was marked as spam.

@bartekpacia bartekpacia changed the title [1.36.0] - Request for viewHierarchy failed The dialog "App would like to paste from" crashes Maestro CLI and Maestro Studio Aug 27, 2024
@bartekpacia bartekpacia added bug Something isn't working P1 Important, valid issues at the top of the work list platform: ios Testing iOS apps is affected maestro studio Related to Maestro Studio maestro cli Related to the command-line Maestro tool and removed waiting for customer response More information is needed from the customer before we can progress on the issue labels Aug 27, 2024
@tokou
Copy link
Contributor

tokou commented Aug 31, 2024

It seems that this is an issue with XCTest and the UIPasteboard popup.
The hierarchy seems to be impossible to get when the popup is showing (takes more than the timeout).
You can actually trigger the same bug without using Maestro at all.

  • Run the app from XCode (with the debugger connected)
  • Show the pasteboard permission system alert
  • Tap on the "Debug View Hierarchy" button in XCode Capture d’écran 2024-09-01 à 00 26 40
  • Observe it hang and then error out after 30 seconds with the same error as Maestro
Capture d’écran 2024-09-01 à 00 18 17 Capture d’écran 2024-09-01 à 00 18 44

It seems that what we're looking for here is a radar issue 🙈 Could not find anything related to this though 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maestro cli Related to the command-line Maestro tool maestro studio Related to Maestro Studio P1 Important, valid issues at the top of the work list platform: ios Testing iOS apps is affected
Projects
None yet
Development

No branches or pull requests

5 participants