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

Fails with more than one device or emulator.. even if theres only one device #121

Closed
cswl opened this issue Apr 14, 2018 · 16 comments
Closed

Comments

@cswl
Copy link

cswl commented Apr 14, 2018

adb devices
List of devices attached
192.168.100.5:5555      device
 scrcpy                      
/usr/share/scrcpy/scrcpy-server.jar: 1 file pushed. 0.3 MB/s (19334 bytes in 0.070s)
error: more than one device/emulator
ERROR: "adb reverse" returned with value 1
WARN: 'adb reverse' failed, fallback to 'adb forward'

Version:

 scrcpy -v
scrcpy v1.1

dependencies:
 - SDL 2.0.8
 - libavcodec 57.107.100
 - libavformat 57.83.100
 - libavutil 55.78.100
@rom1v
Copy link
Collaborator

rom1v commented Apr 14, 2018

Thank you for your report.

error: more than one device/emulator
ERROR: "adb reverse" returned with value 1

This is "expected" over TCP, that's why a fallback to adb forward has been implemented. See #5.

WARN: 'adb reverse' failed, fallback to 'adb forward'

If after that scrcpy stops without displaying the device, the number of connection attempts for adb forward is probably too low (see discussion). It has been increased on master (not released yet).

@rom1v
Copy link
Collaborator

rom1v commented Jun 15, 2018

Could you try with v1.2, please?

@pundoo
Copy link

pundoo commented Jun 22, 2018

@rom1v Yes, it works with v1.2, but the error (impt?) still shows up.

@rom1v
Copy link
Collaborator

rom1v commented Jun 22, 2018

but the error (impt?) still shows up.

That's expected (see #5). 👍

@pablitok
Copy link

Same error with v1.6 here

scrcpy -v
scrcpy 1.6

dependencies:
 - SDL 2.0.8
 - libavcodec 58.18.100
 - libavformat 58.12.100
 - libavutil 56.14.100

@rom1v
Copy link
Collaborator

rom1v commented Jan 22, 2019

@pablitok This "error" is expected over TCPIP (and harmless, since there is a fallback). Do you use it over wifi?

@pablitok
Copy link

pablitok commented Jan 22, 2019 via email

@rom1v
Copy link
Collaborator

rom1v commented Jan 22, 2019

@pablitok So it works? (if it does not, please paste the whole scrcpy output)

@pablitok
Copy link

pablitok commented Jan 22, 2019 via email

@carstenhag
Copy link

Hey @rom1v, I'm hitting this issue too on 1.10:

 chag0709  Carstens-MacBook  ~  $  scrcpy -t
2019-09-13 13:16:43.146 scrcpy[29062:450094] INFO: scrcpy 1.10 <https://github.com/Genymobile/scrcpy>
adb: error: failed to get feature set: more than one device/emulator
2019-09-13 13:16:43.163 scrcpy[29062:450094] ERROR: "adb push" returned with value 1

I've got an emulator running and a device.

@rom1v
Copy link
Collaborator

rom1v commented Sep 13, 2019

I've got an emulator running and a device.

Then use scrcpy -s SERIAL, with the serial as printed by adb devices.

@aminukano585
Copy link

@rom1v I really need your help on this, I've tried all the workarounds but it still fails.

Here is my scrcpy version:

$ scrcpy -v
scrcpy 1.11

dependencies:
 - SDL 2.0.8
 - libavcodec 57.107.100
 - libavformat 57.83.100
 - libavutil 55.78.100

Here is my device, you can see it's just one:

$ adb devices
List of devices attached
192.168.43.1:5555	device

But after runniny scrcpy command, the error persists

$ scrcpy
INFO: scrcpy 1.11 <https://github.com/Genymobile/scrcpy>
/usr/local/share/scrcpy/scrcpy-server:...shed. 0.6 MB/s (25454 bytes in 0.038s)
adb: error: more than one device/emulator
ERROR: "adb reverse" returned with value 1
WARN: 'adb reverse' failed, fallback to 'adb forward'
27183
Aborted 

@rom1v
Copy link
Collaborator

rom1v commented Nov 30, 2019

adb: error: more than one device/emulator
ERROR: "adb reverse" returned with value 1
```

This is an expected error message (see #5), but then it fallbacks to adb forward, so this is not the problem.

Aborted

Probably #944. Try v1.10 or dev branch instead.
Could also be #268 (see #956).

@aminukano585
Copy link

Thanks a lot @rom1v it now works with v1.10..

But there's one little issue, the device appears upside down :)

@rom1v
Copy link
Collaborator

rom1v commented Dec 1, 2019

@aminukano585 Please open a new issue for that, with more details (device, android version, does it always happen, screenshot...). Thank you.

@aminukano585
Copy link

Thanks, @rom1v, I just created #972 to this effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants