Skip to content

[Bug] Scrcpy doesn't work for individual app mirroring in new version 4.0.0 #284

Description

@banothsidhu

Describe the bug
The bug is that scrcpy is not working in the latest version of airsync i.e 4.0.0
When i try to open any app by clicking on the app icon, it just gives this error

[adb connect 192.168.1.7:39879] scrcpy exited:
/opt/homebrew/Cellar/scrcpy/4.1/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 28.5 MB/s (733706 bytes in 0.025s)
[server] ERROR: length=0; index=0
java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
	at com.genymobile.scrcpy.Options.parseNewDisplay(Options.java:655)
	at com.genymobile.scrcpy.Options.parse(Options.java:525)
	at com.genymobile.scrcpy.Server.internalMain(Server.java:240)
	at com.genymobile.scrcpy.Server.main(Server.java:215)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:438)
ERROR: Server connection failed
scrcpy 4.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:         (tcpip)  192.168.1.7:39879               device  MY_DEVICE
INFO:     --> (tcpip)  adb-xxxxxxxx._adb-tls-connect._tcp            device  MY_DEVICE

To Reproduce
Steps to reproduce the behavior:
Click on any app from the app section which uses scrcpy to open the app

Expected behavior
It is expected for the app to open in a external window.
It used to work this way before the update

Screenshots

Image

Environment (please complete the following information):

  • OS: Macos 27 Beta 4
  • App Version 4.0.0
  • Device: Macbook Air M4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions