还未发布过话题
  • STF 集成 iOS 之 开源了 at 2019年09月19日

    谢谢,我试下

  • STF 集成 iOS 之 开源了 at 2019年09月16日

    iphone 7 连上 stf 后,一直抛这个错误,看上去像是抓屏有问题,请教下要怎么处理,谢谢
    (node:619) UnhandledPromiseRejectionWarning: Error: Input buffer contains unsupported image format
    (node:619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2231)
    (node:619) UnhandledPromiseRejectionWarning: Error: VipsJpeg: Premature end of JPEG file

    (node:619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2232)
    (node:619) UnhandledPromiseRejectionWarning: Error: Input buffer contains unsupported image format
    (node:619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2233)
    (node:619) UnhandledPromiseRejectionWarning: TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
    at Function.Buffer.from (buffer.js:202:9)
    at Sender.send (/Users/xuqq/src/stf/node_modules/ws/lib/Sender.js:277:23)
    at WebSocket.send (/Users/xuqq/src/stf/node_modules/ws/lib/WebSocket.js:377:18)
    at /Users/xuqq/src/stf/lib/units/ios-device/plugins/screen/stream.js:366:20
    at send (/Users/xuqq/src/stf/lib/units/ios-device/plugins/screen/stream.js:357:20)
    at sharp.resize.rotate.toBuffer.then.data (/Users/xuqq/src/stf/lib/units/ios-device/plugins/screen/stream.js:416:24)
    at
    (node:619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2234)
    (node:619) UnhandledPromiseRejectionWarning: Error: Input buffer contains unsupported image format
    (node:619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2235)
    (node:619) UnhandledPromiseRejectionWarning: Error: Input buffer contains unsupported image format
    (node:619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2236)