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

iOS 16.1 无法连接 #15

Closed
juneix opened this issue Nov 22, 2022 · 8 comments
Closed

iOS 16.1 无法连接 #15

juneix opened this issue Nov 22, 2022 · 8 comments

Comments

@juneix
Copy link

juneix commented Nov 22, 2022

安卓手机(系统版本8.1.0),已开启了 WiFi ADB,已同意 USB 调试请求,使用 Mac 版的 QtScrcpy 连接投屏正常,但用 Scrcpy Remote 1.6 连接时(iPhone 系统版本 iOS 16.1),先提示Connected,然后变成Start Scrcpy Failed

@juneix juneix changed the title iOS 16 提醒但投屏出错 iOS 16.1 无法连接 Nov 22, 2022
@Leebais
Copy link

Leebais commented Dec 1, 2022

加一,我也是这样的。当然也打不开右上角的选项,一按就闪退

@slgray
Copy link

slgray commented Dec 12, 2022

我这边也是类似的现象,可能和Android版本有关,设备是Andorid 9 的时候可以,换到 8.1后不行了。App的日志如下:

scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
> thread: pid=5847, name=ADB-5847 started.
> adb start-server
> pid=5847, success=true
> result:

> thread: pid=2401, name=ADB-2401 started.
> adb devices -l
> pid=2401, success=true
> result:
List of devices attached
192.168.10.107:5555    device product:lineage_xxx model:Lenovo_xxx device:xxx transport_id:1


> thread: pid=4060, name=ADB-4060 started.
> adb -s 192.168.10.107:5555 push scrcpy-server /data/local/tmp/scrcpy-server.jar
> pid=4060, success=true
> result:
scrcpy-server: 1 file pushed, 0 skipped. 14.2 MB/s (41275 bytes in 0.003s)

> wait pid=4060, result=true
> thread: pid=7191, name=ADB-7191 started.
> adb -s 192.168.10.107:5555 forward tcp:27183 localabstract:scrcpy
> pid=7191, success=true
> result:
27183

> thread: pid=6429, name=ADB-6429 started.
> adb -s 192.168.10.107:5555 shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server 1.24 log_level=debug bit_rate=4000000 max_fps=60 tunnel_forward=true
> scrcpy-server app_process started
2022-12-12 21:00:10.472 scrcpy-ios[77209:6654841] DEBUG: Remaining connection attempts: 95
2022-12-12 21:00:10.485 scrcpy-ios[77209:6654853] DEBUG: Server disconnected
2022-12-12 21:00:10.485 scrcpy-ios[77209:6654853] DEBUG: Server terminated
2022-12-12 21:00:10.488 scrcpy-ios[77209:6654809] DEBUG: User requested to quit
2022-12-12 21:00:10.493 scrcpy-ios[77209:6654841] ERROR: Could not retrieve device information
> thread: pid=3661, name=ADB-3661 started.
> adb -s 192.168.10.107:5555 forward --remove tcp:27183
> wait pid=6429, result=false
> pid=3661, success=true
> result:

Windows 上面scrcpy可以正常使用,下面是Debug相关的log

scrcpy -V debug
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
DEBUG: ADB device found:
DEBUG:     --> (tcpip)   192.168.10.107:5555            device  Lenovo_TB_8703F
DEBUG: Device serial: 192.168.10.107:5555
DEBUG: Using server (portable): C:\Users\xxx\scoop\apps\scrcpy\current\scrcpy-server
C:\Users\xxx\scoop\apps\scrcpy\current\scrcpy-server: 1 file pushed, 0 skipped. 62.1 MB/s (41159 bytes in 0.001s)
adb.exe: error: more than one device/emulator
ERROR: "adb reverse" returned with value 1
WARN: 'adb reverse' failed, fallback to 'adb forward'
DEBUG: Remaining connection attempts: 100
DEBUG: Remaining connection attempts: 99
DEBUG: Remaining connection attempts: 98
DEBUG: Remaining connection attempts: 97
DEBUG: Remaining connection attempts: 96
DEBUG: Remaining connection attempts: 95
DEBUG: Remaining connection attempts: 94
DEBUG: Remaining connection attempts: 93
[server] INFO: Device: xxx (Android 8.1.0)
DEBUG: Remaining connection attempts: 92
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Using encoder: 'OMX.qcom.video.encoder.avc'
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Using icon (portable): C:\Users\xxx\scoop\apps\scrcpy\current\icon.png
INFO: Initial texture: 1200x1920
DEBUG: Starting demuxer thread
DEBUG: User requested to quit
DEBUG: quit...
DEBUG: End of frames
DEBUG: Receiver stopped
[server] DEBUG: Controller stopped
[server] DEBUG: Screen streaming stopped
[server] DEBUG: Device message sender stopped
DEBUG: Server disconnected
DEBUG: Server terminated

@wsvn53
Copy link
Owner

wsvn53 commented Dec 13, 2022

感谢提供信息,但是目前我没有对应版本的设备,所以也很难排查,如果有人能够开放自己设备的 5555 端口给我测试就太好了。

@wsvn53
Copy link
Owner

wsvn53 commented Dec 13, 2022

奥,我好像重现出问题了,跟版本无关,任何 Android 版本强制开启 Force ADB Forward 就会失败,大家稍等一下,我 Debug 一下。

@slgray
Copy link

slgray commented Dec 13, 2022

scrcpy 对 Forward 有说明,是不是可能和这个服务启动等待超时有关。 Make scrcpy work with adb over tcpip #5

@wsvn53
Copy link
Owner

wsvn53 commented Dec 13, 2022

scrcpy 对 Forward 有说明,是不是可能和这个服务启动等待超时有关。 Make scrcpy work with adb over tcpip #5

No,大概率是我后来改出什么 bug 了,以前是好的

@wsvn53
Copy link
Owner

wsvn53 commented Dec 15, 2022

@slgray @juneix @Leebais 请提供一下各位的 Apple ID,我邀请你们加入 TestFlight Internal Test,帮忙测试一下这个问题是否已修复。

@slgray
Copy link

slgray commented Dec 15, 2022

新的 TestFlight 版本下已经可以正常连接了,感谢。

@wsvn53 wsvn53 closed this as completed Dec 15, 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

4 participants