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

[Bug] ios 14 启动 wda 后访问 mjpeg-remote地址就会导致 wda就会退出 #68

Open
1 of 2 tasks
mocobk opened this issue Oct 16, 2023 · 3 comments
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@mocobk
Copy link

mocobk commented Oct 16, 2023

Search before asking

  • I searched in the issue and found nothing similar. | 我查找了并确认issue列表无相似报告。

Sonic version

2.6.1

Deploy platform

ios 14.2

Minimal reproduce step

>sib run wda -b com.motest.WebDriverAgentRunner --server-local-port 8002 --mjpeg-remote-port 7100 --mjpeg-local-port 7100
启动后 wda 地址访问正常,一旦访问了 mjpeg 地址(127.0.0.1:7100),就会导致退出,日志如下

2023-10-16 11:42:49.472286+0800 WebDriverAgentRunner-Runner[544:20149] Built at Oct 16 2023 11:08:15
2023-10-16 11:42:49.484190+0800 WebDriverAgentRunner-Runner[544:20149] ServerURLHere->http://10.91.230.114:8100<-ServerURLHere
WebDriverAgent server start successful
accept 127.0.0.1:51345
accept 127.0.0.1:51346
2023-10-16 11:43:39.467476+0800 WebDriverAgentRunner-Runner[544:20171] Got screenshots broadcast client connection at 127.0.0.1:50151
2023-10-16 11:43:39.469757+0800 WebDriverAgentRunner-Runner[544:20171] Starting screenshots broadcast for the client at 127.0.0.1:50151
2023-10-16 11:43:39.471049+0800 WebDriverAgentRunner-Runner[544:20171] Got screenshots broadcast client connection at 127.0.0.1:50152
2023-10-16 11:43:39.569895+0800 WebDriverAgentRunner-Runner[544:20171] Using singleton test manager
2023-10-16 11:43:39.586981+0800 WebDriverAgentRunner-Runner[544:20456] [Default] Exiting due to IDE disconnection.

Are you willing to submit a PR?

  • I'm willing to submit a PR! | 我将发起PR!
@mocobk mocobk added the bug Something isn't working label Oct 16, 2023
@ZhouYixun
Copy link
Member

你怎么访问的,我无法复现

@yangwutong
Copy link

我也遇到了这个问题,使用的手机为iphone 12mini,系统版本14.2.1
使用命令sib.exe run wda -u 00008101-000C694C0192001E -b com.abishkking.WebDriverAgentRunner.xctrunner --mjpeg-remote-port 9100 --server-remote-port 8100 --mjpeg-local-port 6725 --server-local-port 6726启动wda后,在浏览器访问http://localhost:6725 获取不到设备页面
以下是具体日志:

D:\Git\CloudMobile-Client\driver>sib.exe run wda -u 00008101-000C694C0192001E -b com.abishkking.WebDriverAgentRunner.xctrunner --mjpeg-remote-port 9100 --server-remote-port 8100 --mjpeg-local-port 6725 --server-local-port 6726
2023-12-13 10:44:06.650696+0800 WebDriverAgentRunner-Runner[6237:830594] Running tests...
Test Suite 'All tests' started at 2023-12-13 10:44:08.130
XCTestOutputBarrierTest Suite 'WebDriverAgentRunner.xctest' started at 2023-12-13 10:44:08.131
XCTestOutputBarrierTest Suite 'UITestingUITests' started at 2023-12-13 10:44:08.131
XCTestOutputBarrier t = nans Suite Set Up
2023-12-13 10:44:08.148174+0800 WebDriverAgentRunner-Runner[6237:830594] [User Defaults] Couldn't write values for keys (
KeyboardAutocorrection
) in CFPrefsPlistSource<0x283034f80> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-12-13 10:44:08.154499+0800 WebDriverAgentRunner-Runner[6237:830594] [User Defaults] Couldn't write values for keys (
KeyboardPrediction
) in CFPrefsPlistSource<0x283034f80> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-12-13 10:44:08.155058+0800 WebDriverAgentRunner-Runner[6237:830594] [User Defaults] Couldn't write values for keys (
KeyboardShowPredictionBar
) in CFPrefsPlistSource<0x283034f80> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2023-12-13 10:44:08.155503+0800 WebDriverAgentRunner-Runner[6237:830594] [User Defaults] Couldn't write values for keys (
DidShowGestureKeyboardIntroduction
) in CFPrefsPlistSource<0x283034f80> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
Test Case '-[UITestingUITests testRunner]' started.
XCTestOutputBarrier t = 0.00s Start Test at 2023-12-13 10:44:08.161
t = 0.00s Set Up
2023-12-13 10:44:08.161956+0800 WebDriverAgentRunner-Runner[6237:830594] Built at Dec 6 2023 10:36:39
2023-12-13 10:44:08.170882+0800 WebDriverAgentRunner-Runner[6237:830594] ServerURLHere->http://192.168.60.170:8100<-ServerURLHere
WebDriverAgent server start successful
2023-12-13 10:44:08.258437+0800 WebDriverAgentRunner-Runner[6237:830594] [TraitCollection] Class CKBrowserSwitcherViewController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.
accept [::1]:54683
accept [::1]:54684
2023-12-13 10:44:26.838161+0800 WebDriverAgentRunner-Runner[6237:830614] Got screenshots broadcast client connection at 127.0.0.1:51481
2023-12-13 10:44:26.839270+0800 WebDriverAgentRunner-Runner[6237:830614] Starting screenshots broadcast for the client at 127.0.0.1:51481
2023-12-13 10:44:26.840281+0800 WebDriverAgentRunner-Runner[6237:830614] Got screenshots broadcast client connection at 127.0.0.1:51482
2023-12-13 10:44:26.909588+0800 WebDriverAgentRunner-Runner[6237:830616] Using singleton test manager
2023-12-13 10:44:26.918644+0800 WebDriverAgentRunner-Runner[6237:830615] [Default] Exiting due to IDE disconnection.

@fudy
Copy link

fudy commented Feb 29, 2024

这个问题解决了吗?我也出现相同的问题
Deploy platform
ios 14.2
iphone 6s
sib: sonic-ios-bridge_1.3.18_macosx_x86_64.tar.gz

执行命令
sib run wda -b com.fudy.WebDriverAgentRunner.xctrunner --server-local-port 8002 --mjpeg-remote-port 7100 --mjpeg-local-port 7100

访问localhost:7100, 报如下错误
2024-02-29 13:50:42.145353+0800 WebDriverAgentRunner-Runner[6206:227964] Built at Feb 27 2024 17:49:21
2024-02-29 13:50:42.165871+0800 WebDriverAgentRunner-Runner[6206:227964] ServerURLHere->http://30.5.169.164:8100<-ServerURLHere
WebDriverAgent server start successful
accept [::1]:52960
accept [::1]:52961
2024-02-29 13:50:57.015895+0800 WebDriverAgentRunner-Runner[6206:227978] Got screenshots broadcast client connection at 127.0.0.1:50116
2024-02-29 13:50:57.016898+0800 WebDriverAgentRunner-Runner[6206:227978] Starting screenshots broadcast for the client at 127.0.0.1:50116
2024-02-29 13:50:57.017377+0800 WebDriverAgentRunner-Runner[6206:227997] Got screenshots broadcast client connection at 127.0.0.1:50117
2024-02-29 13:50:57.031983+0800 WebDriverAgentRunner-Runner[6206:227997] Using singleton test manager
2024-02-29 13:50:57.037587+0800 WebDriverAgentRunner-Runner[6206:228105] [Default] Exiting due to IDE disconnection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants