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

Some times Waited for the root of the view hierarchy error on emulator booted #81

Closed
Axrorxoja opened this issue Jul 14, 2020 · 7 comments

Comments

@Axrorxoja
Copy link

Sometimes after booting emulator
Happen something like this
java.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and not request layout for 10 seconds. If you specified a non default root matcher, it may be picking a root that never takes focus. Root:
Tue, 14 Jul 2020 08:46:38 GMT
Root{application-window-token=android.view.ViewRootImpl$W@6a7b583, window-token=android.view.ViewRootImpl$W@6a7b583, has-window-focus=false, layout-params-type=1, layout-params-string={(0,0)(fillxfill) sim={forwardNavigation} ty=BASE_APPLICATION wanim=0x10302f8

And all ui tests failed after this

@ychescale9
Copy link
Member

Can you please provide more info:

How often is sometimes?
Have you ever got this error locally?
Do you have a build log that you can share?
Could you share your workflow config?
Does this happen to any specific tests or is it random?

FYI I usually get this when my test device's screen is turned off.

@Axrorxoja
Copy link
Author

I can say it happen in every time on CI(github action)
It's workflow config file https://gist.github.com/Axrorxoja/1e28ee4431e403e8f8bd4ea78d72e070
When emulator booted up and no one test can't run because this issue

@ychescale9
Copy link
Member

Unfortunately Linux support is very limited. I’m sure you’re read this😀

The best I can suggest is to try a much lower API level.

I’m looking into adding windows support instead as the VMs have hardware acceleration enabled and they are much cheaper than macOS. That should offer a much better experience.

@Axrorxoja
Copy link
Author

Okay decrease api level not problem
Can you suggest some api level which that work good

@ychescale9
Copy link
Member

I’m not sure. I’m able to start an API 16 Emulator and run 1 test for the CI workflow for this project itself.

As mentioned in that issue, running on Linux will be slow and unstable.

Please either use a macOS VM or wait a bit for windows support (it’d be great if you can help as I’m not familiar with windows😀).

@Axrorxoja
Copy link
Author

Ooo )
I also not familiar with windows )))
But I'm ready to help you :)

@mrk-han
Copy link
Collaborator

mrk-han commented Nov 2, 2022

Closing because stale.

@mrk-han mrk-han closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants