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

instrumentation tests uses: reactivecircus/android-emulator-runner@v2 failing - Error: Timeout waiting for emulator to boot. #160

Closed
gsubu-kroger opened this issue Jun 23, 2021 · 23 comments

Comments

@gsubu-kroger
Copy link

This is error is happening both repo's CI when run the reactivecircus/android-emulator-runner@v2 job

dyld: lazy symbol binding failed: Symbol not found: _preadv
84 Referenced from: /Users/runner/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64-headless
85 Expected in: /usr/lib/libSystem.B.dylib
86
87dyld: Symbol not found: _preadv
88 Referenced from: /Users/runner/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64-headless
89 Expected in: /usr/lib/libSystem.B.dylib

https://github.com/google/android-fhir/runs/2888614202?check_suite_focus=true

https://github.com/ReactiveCircus/streamlined/runs/2890357179?check_suite_focus=true

I think this is github macos-latest runner issue - please help!

@gsubu-kroger
Copy link
Author

@epicadk Thank you! macos-11 worked instead of macos-11.0 for us!

https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners

@AlexBenny
Copy link

The workaround runs-on: macos-11 seems not working for us.

As mentioned here(https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners):

The macOS 11 virtual environment is currently provided as a private preview only. Any users or organizations that are already using this runner can continue using it, but we're not accepting any further users or organizations at this time.

So, for orgs that didn't move to macos-11 there isn't a viable workaround apparently.

@mikehardy
Copy link

emulator version 30.7.4 just released. I suspect it's the problem, it's happened before where the android emulator team released an update to the stable channel that had an unexpected issue. 30.6.5 was the prior release

Just looking for the exact build number of 30.6.5 (prior version) so people can use it in their action incantation here via theemulator-build parameter ...should have it in a moment

@mikehardy
Copy link

Here's the upstream bug https://issuetracker.google.com/issues/191799887 - go star it

@ychescale9
Copy link
Member

Thanks @mikehardy, that's also my guess. I pinged the emulator build id to a really old version and it works:

emulator-build: 6110076

Does anyone know where to find all the Emulator release versions their build ids?

Someone from the Emulator team mentioned they would publish all emulator download paths about 18 months ago but there's no progress yet: #11 (comment)

@mikehardy
Copy link

mikehardy commented Jun 23, 2021

I am completely stumped on where to find the exact emulator build id that will download, as the build id for 30.6.5 (previous stable until 30.7.4 released and was broken) is showing a build-id of 7324830 but the URL https://dl.google.com/android/repository/emulator-darwin-7324830.zip is 404

Appears that you've got a valid build id at least though, so there is a workaround.

@alizeec
Copy link

alizeec commented Jun 23, 2021

Hello

I have a similar problem

/Users/runner/android-sdk/platform-tools/adb -s emulator-5554 emu kill
error: could not connect to TCP port 5554: Connection refused
The process '/Users/runner/android-sdk/platform-tools/adb' failed with exit code 1
Error: The process '/bin/sh' failed with exit code 1

not a timeout but the error is also error: could not connect to TCP port 5554: Connection refused

I tried with runs-on: macos-11 and emulator-build: 6110076 it doesn't work

- name: create AVD
  uses: reactivecircus/android-emulator-runner@v2
  with:
    api-level: 28
    target: default
    arch: x86
    profile: Nexus 6
    emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
    disable-animations: true
    emulator-build: 6110076
    script: echo "Generated AVD."

Thanks

greenhat added a commit to ergoplatform/sigma-rust that referenced this issue Jun 23, 2021
@Tobias-Pe
Copy link

Hello

I have a similar problem

/Users/runner/android-sdk/platform-tools/adb -s emulator-5554 emu kill
error: could not connect to TCP port 5554: Connection refused
The process '/Users/runner/android-sdk/platform-tools/adb' failed with exit code 1
Error: The process '/bin/sh' failed with exit code 1

not a timeout but the error is also error: could not connect to TCP port 5554: Connection refused

I tried with runs-on: macos-11 and emulator-build: 6110076 it doesn't work

Thanks

try macos-latest and emulator-build: 6110076

@alizeec
Copy link

alizeec commented Jun 23, 2021

Hello
I have a similar problem

/Users/runner/android-sdk/platform-tools/adb -s emulator-5554 emu kill
error: could not connect to TCP port 5554: Connection refused
The process '/Users/runner/android-sdk/platform-tools/adb' failed with exit code 1
Error: The process '/bin/sh' failed with exit code 1

not a timeout but the error is also error: could not connect to TCP port 5554: Connection refused
I tried with runs-on: macos-11 and emulator-build: 6110076 it doesn't work
Thanks

try macos-latest and emulator-build: 6110076

same problem with macos-latest

@ychescale9
Copy link
Member

ychescale9 commented Jun 23, 2021

@mikehardy They changed the download url patten at some point: https://dl.google.com/android/repository/emulator-darwin_x64-7324830.zip so setting emulator-build to 7324830 won't work right now.

I'll see if I can reverse-engineer the valid download url pattern and build ids so emulator-build can be more robust.

@AaronMT
Copy link

AaronMT commented Jun 23, 2021

Running into the same problem on our project. We don't have access to macOS11 VMs yet, hopeful that a working emulator is posted here.

@brian-themaven
Copy link

+1 hit this issue too. We're not upgrading to BigSur yet.

@TheReprator
Copy link

I am also facing this issue, any solution,

My error is as follow,
The process '/Users/runner/Library/Android/sdk/platform-tools/adb' failed with exit code 1
/Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 emu kill
error: could not connect to TCP port 5554: Connection refused
The process '/Users/runner/Library/Android/sdk/platform-tools/adb' failed with exit code 1
Error: Timeout waiting for emulator to boot.

Regards,
Vikram Singh

jossiwolf pushed a commit to jossiwolf/accompanist that referenced this issue Aug 1, 2021
jossiwolf pushed a commit to jossiwolf/accompanist that referenced this issue Aug 1, 2021
Sharkaboi added a commit to Sharkaboi/MediaHub that referenced this issue Aug 13, 2021
kneth added a commit to realm/realm-js that referenced this issue Aug 20, 2021
ChristopherBull added a commit to ChristopherBull/demo-merge-android-coverage that referenced this issue Oct 1, 2021
EdwarDDay added a commit to EdwarDDay/serialization.kprefs that referenced this issue Oct 3, 2021
@jingtang10
Copy link
Contributor

emulator version 30.7.4 just released. I suspect it's the problem, it's happened before where the android emulator team released an update to the stable channel that had an unexpected issue. 30.6.5 was the prior release

Just looking for the exact build number of 30.6.5 (prior version) so people can use it in their action incantation here via theemulator-build parameter ...should have it in a moment

Thanks @mikehardy for this comment. Is there any way we can find out about these new emulator verion releases. We're experiencing an issue that we suspected is related with another emulator change. Thanks - Jing

bedrin added a commit to sniffy/unsafe that referenced this issue Feb 28, 2023
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.
Also fixed install to use x86 or x86_64 arch based on what emulator images are actually available
Updated emulator build - we were running an emulator from mid-2021 to work around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.
Also fixed install to use x86 or x86_64 arch based on what emulator images are actually available
Updated emulator build - we were running an emulator from mid-2021 to work around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.
Also fixed install to use x86 or x86_64 arch based on what emulator images are actually available
Updated emulator build - we were running an emulator from mid-2021 to work around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.
Also fixed install to use x86 or x86_64 arch based on what emulator images are actually available
Updated emulator build - we were running an emulator from mid-2021 to work around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.
Also fixed install to use x86 or x86_64 arch based on what emulator images are actually available
Updated emulator build - we were running an emulator from mid-2021 to work around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
hamiltont added a commit to hamiltont/iNaturalistAndroid that referenced this issue Dec 27, 2023
Android 34 is latest public, 33 is iNat target version. 23 continues to be iNat min version.

Also fixed:
 - Set a timezone for emulator, allowing snapshots to be loaded. Reduced instrumentation test time by ~30 seconds
 - Use x86 or x86_64 arch based on what emulator images are actually available. Tagged cache with sdk-arch naming
 - Updated emulator build from a mid-2021 build to latest (we were working around
emulator boot issues (see ReactiveCircus/android-emulator-runner#160
for details). Newest emulator boots fine with all SDK versions
 - Updated host VM to Mac 12 from 11. Also allows us to tap into more hardware cores
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