测试人社区

STF 进入手机页面报错具体报错信息已贴日志


2020-12-25T10:28:18.557Z IMP/device:plugins:group 155 [977707a29807] Now owned by "1104211831@QQ.com"
2020-12-25T10:28:18.557Z INF/device:plugins:group 155 [977707a29807] Subscribing to group channel "zCHjO48xQH6nc/GH2d0Shg=="
2020-12-25T10:28:18.645Z INF/device:plugins:screen:stream 155 [977707a29807] Setting frame producer projection to 728x1065
2020-12-25T10:28:18.647Z INF/device:plugins:screen:stream 155 [977707a29807] Requesting frame producer to start
2020-12-25T10:28:18.647Z INF/device:plugins:screen:stream 155 [977707a29807] Launching screen service
2020-12-25T10:28:18.716Z INF/device:plugins:connect 155 [977707a29807] Listening on port 7405
2020-12-25T10:28:18.718Z IMP/device:plugins:connect 155 [977707a29807] Remote Connect Started for device "977707a29807" at "192.168.3.206:7405"
2020-12-25T10:28:18.742Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "PID: 29062"
2020-12-25T10:28:18.743Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "INFO: Using projection 720x1520@504x1065/0"
2020-12-25T10:28:18.744Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "INFO: (external/MY_minicap/src/minicap_28.cpp:241) Creating SurfaceComposerClient"
2020-12-25T10:28:18.744Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "INFO: (external/MY_minicap/src/minicap_28.cpp:244) Performing SurfaceComposerClient init check"
2020-12-25T10:28:18.745Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "INFO: (external/MY_minicap/src/minicap_28.cpp:255) Creating virtual display"
2020-12-25T10:28:18.745Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "INFO: (external/MY_minicap/src/minicap_28.cpp:261) Creating buffer queue"
2020-12-25T10:28:18.745Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "INFO: (external/MY_minicap/src/minicap_28.cpp:264) Setting buffer options"
2020-12-25T10:28:18.746Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "INFO: (external/MY_minicap/src/minicap_28.cpp:268) Creating CPU consumer"
2020-12-25T10:28:18.746Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "INFO: (external/MY_minicap/src/minicap_28.cpp:272) Creating frame waiter"
2020-12-25T10:28:18.746Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "INFO: (external/MY_minicap/src/minicap_28.cpp:276) Publishing virtual display"
2020-12-25T10:28:18.747Z INF/device:plugins:screen:stream 155 [977707a29807] minicap says: "Vector<> have different types (this=0xbed23554, rhs=0xbed235c4)"
2020-12-25T10:28:18.748Z INF/device:plugins:screen:stream 155 [977707a29807] Connecting to minicap service
2020-12-25T10:28:18.866Z WRN/device:plugins:screen:stream 155 [977707a29807] Shell keeping minicap running ended unexpectedly
2020-12-25T10:28:20.302Z INF/device:plugins:screen:stream 155 [977707a29807] Disconnecting from minicap service
2020-12-25T10:28:20.308Z INF/device:plugins:screen:stream 155 [977707a29807] Stopping mi nicap service
2020-12-25T10:28:20.309Z FTL/device:plugins:screen:stream 155 [977707a29807] Frame producer had an error FailError: Failure: 'closed'
    at /app/node_modules/adbkit/lib/adb/parser.js:183:29
    at runCallback (timers.js:789:20)
    at tryOnImmediate (timers.js:751:5)
    at processImmediate [as _immediateCallback] (timers.js:722:5)
2020-12-25T10:28:20.311Z FTL/util:lifecycle 155 [977707a29807] Shutting down due to fatal error
2020-12-25T10:28:20.322Z INF/provider 41 [*] Cleaning up device worker "977707a29807"
2020-12-25T10:28:20.322Z ERR/provider 41 [*] Device worker "977707a29807" died with code 1
2020-12-25T10:28:20.323Z INF/provider 41 [*] Restarting device worker "977707a29807"
2020-12-25T10:28:21.219Z INF/device:support:push 167 [977707a29807] Sending output to "tcp://127.0.0.1:7116"
2020-12-25T10:28:21.224Z INF/device 167 [977707a29807] Preparing device
2020-12-25T10:28:21.770Z INF/device:support:sub 167 [977707a29807] Receiving input from "tcp://127.0.0.1:7114"
2020-12-25T10:28:21.773Z INF/device:support:sub 167 [977707a29807] Subscribing to permanent channel "*ALL"
2020-12-25T10:28:21.842Z INF/device:support:properties 167 [977707a29807] Loading properties
2020-12-25T10:28:21.911Z INF/device:support:sdk 167 [977707a29807] Supports SDK 28
2020-12-25T10:28:21.912Z INF/device:support:abi 167 [977707a29807] Supports ABIs armeabi-v7a, armeabi
2020-12-25T10:28:22.241Z INF/device:resources:minicap 167 [977707a29807] Installing "/app/node_modules/minicap-prebuilt-beta/prebuilt/armeabi-v7a/bin/minicap" as "/data/local/tmp/minicap"
2020-12-25T10:28:22.242Z INF/device:resources:minicap 167 [977707a29807] Installing "/app/node_modules/minicap-prebuilt-beta/prebuilt/armeabi-v7a/lib/android-28/minicap.so" as "/data/local/tmp/minicap.so"
2020-12-25T10:28:22.386Z INF/device:resources:service 167 [977707a29807] Checking whether we need to install STFService
2020-12-25T10:28:22.464Z INF/device:resources:service 167 [977707a29807] Running version check
2020-12-25T10:28:23.063Z INF/device:resources:service 167 [977707a29807] STFService up to date
2020-12-25T10:28:23.067Z INF/device:plugins:service 167 [977707a29807] Launching agent
2020-12-25T10:28:24.030Z INF/device:plugins:service 167 [977707a29807] Agent says: "Listening on @stfagent"
2020-12-25T10:28:24.055Z INF/device:plugins:service 167 [977707a29807] Launching service
2020-12-25T10:28:24.056Z INF/device:plugins:service 167 [977707a29807] using 'start-foreground-service' command for API 28
2020-12-25T10:28:24.061Z INF/device:plugins:service 167 [977707a29807] Agent says: "InputClient started"
2020-12-25T10:28:24.083Z INF/provider 41 [*] Providing 0 of 1 device(s); waiting for "977707a29807"
2020-12-25T10:28:24.179Z INF/device:plugins:display 167 [977707a29807] Reading display info
2020-12-25T10:28:24.224Z INF/device:plugins:phone 167 [977707a29807] Fetching phone info
2020-12-25T10:28:24.259Z INF/device:plugins:identity 167 [977707a29807] Solving identity
2020-12-25T10:28:24.266Z INF/device:plugins:solo 167 [977707a29807] Subscribing to permanent channel "KKH+cu1tnTFMtxO4DY5yRp4V+Dk="
2020-12-25T10:28:24.270Z INF/device:plugins:screen:stream 167 [977707a29807] Starting WebSocket server on port 7408
2020-12-25T10:28:24.590Z INF/device:resources:minitouch 167 [977707a29807] Installing "/app/node_modules/minitouch-prebuilt-beta/prebuilt/armeabi-v7a/bin/minitouch" as "/data/local/tmp/minitouch"
2020-12-25T10:28:24.690Z WRN/device:plugins:data 167 [977707a29807] Unable to find device data { serial: '977707a29807',
  platform: 'Android',
  manufacturer: 'XIAOMI',
  operator: ',',
  model: 'Redmi 8A',
  version: '9',
  abi: 'armeabi-v7a',
  sdk: '28',
  product: 'olivelite',
  cpuPlatform: 'msm8937',
  openGLESVersion: '3.2',
  marketName: 'Redmi 8A',
  display: 
   { id: 0,
     width: 720,
     height: 1520,
     xdpi: 268.9410095214844,
     ydpi: 269.9859924316406,
     fps: 60.000003814697266,
     density: 2,
     rotation: 0,
     secure: true,
     size: 6.234038954456329,
     url: 'ws://192.168.3.206:7408' },
  phone: { network: 'UNKNOWN' } }
2020-12-25T10:28:24.696Z INF/device:plugins:touch 167 [977707a29807] Touch origin is top left
2020-12-25T10:28:24.697Z INF/device:plugins:touch 167 [977707a29807] Requesting touch consumer to start
2020-12-25T10:28:24.698Z INF/device:plugins:touch 167 [977707a29807] Launching touch service
2020-12-25T10:28:24.709Z INF/device:plugins:touch 167 [977707a29807] Connecting to minitouch service
2020-12-25T10:28:24.833Z INF/device:plugins:touch 167 [977707a29807] minitouch says: "Note: device /dev/input/mice is not supported by libevdev"
2020-12-25T10:28:24.934Z INF/device:plugins:touch 167 [977707a29807] minitouch says: "Type B touch device fts_ts (720x1520 with 10 contacts) detected on /dev/input/event1 (score 22055)"
2020-12-25T10:28:25.033Z INF/device:plugins:touch 167 [977707a29807] Reading minitouch banner
2020-12-25T10:28:25.041Z INF/device:plugins:touch 167 [977707a29807] minitouch says: "Connection established"
2020-12-25T10:28:25.097Z INF/device:plugins:vnc 167 [977707a29807] Starting VNC server on port 7410
2020-12-25T10:28:25.101Z INF/device:plugins:browser 167 [977707a29807] Loading browser list
2020-12-25T10:28:25.131Z INF/device:plugins:browser 167 [977707a29807] Updating browser list
2020-12-25T10:28:25.134Z INF/device:plugins:mute 167 [977707a29807] Will not mute master volume
2020-12-25T10:28:25.450Z INF/device:resources:minirev 167 [977707a29807] Installing "/app/vendor/minirev/armeabi-v7a/minirev" as "/data/local/tmp/minirev"
2020-12-25T10:28:25.549Z INF/device:plugins:forward 167 [977707a29807] Launching reverse port forwarding service
2020-12-25T10:28:25.561Z INF/device:plugins:forward 167 [977707a29807] Connecting to reverse port forwarding service
2020-12-25T10:28:25.812Z INF/device 167 [977707a29807] Fully operational
2020-12-25T10:28:34.093Z INF/provider 41 [*] Providing all 1 device(s)

报错信息:

2020-12-25T10:28:20.309Z FTL/device:plugins:screen:stream 155 [977707a29807] Frame producer had an error FailError: Failure: 'closed'
    at /app/node_modules/adbkit/lib/adb/parser.js:183:29
    at runCallback (timers.js:789:20)
    at tryOnImmediate (timers.js:751:5)
    at processImmediate [as _immediateCallback] (timers.js:722:5)

docker 部署的吗

是的

试试加上下面语句后面两个参数重新run容器

docker run -d --name stf --net host openstf/stf stf local --public-ip 宿主机IP --allow-remote