-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
What is the issue or idea you have?
When using like Microsoft Surface, multiple touch in a manipulating smart phone page causes an error.
After the error, STF always returns the error unless the STF process is restarted...
Does it only happen on a specific device? Please run adb devices -l and paste the corresponding row.
No, this error occurs any devices.
Please provide the steps to reproduce the issue.
precondtion: Use Surface or Tablet to touch display.
- Open a manipulating smart phone page. (after chose a smart phone from a list)
- Touch a smart phone area.
- At the same time, touch the area other than a smart phone. (like upload application)
- The error occurs.
What is the expected behavior?
Does not occur the error.
Do you see errors or warnings in the stf local output? If so, please paste them or the full log here.
The error log is following.
/usr/lib/node_modules/stf/node_modules/protobufjs/dist/ProtoBuf.js:2641
throw Error("Illegal value for "+this.toString(true)+" of type "+this.type.name+": "+val+" ("+msg+")");
^
Error: Illegal value for Message.Field .TouchMoveMessage.contact of type uint32: undefined (not an integer)
at Field.<anonymous> (/usr/lib/node_modules/stf/node_modules/protobufjs/dist/ProtoBuf.js:2641:27)
at Field.ProtoBuf.Reflect.FieldPrototype.verifyValue (/usr/lib/node_modules/stf/node_modules/protobufjs/dist/ProtoBuf.js:2675:29)
at MessagePrototype.set (/usr/lib/node_modules/stf/node_modules/protobufjs/dist/ProtoBuf.js:1799:63)
at new Message (/usr/lib/node_modules/stf/node_modules/protobufjs/dist/ProtoBuf.js:1728:42)
at Socket.<anonymous> (/usr/lib/node_modules/stf/lib/units/websocket/index.js:466:31)
at emitTwo (events.js:126:13)
at Socket.emit (events.js:214:7)
at /usr/lib/node_modules/stf/node_modules/socket.io/lib/socket.js:528:12
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
This error occurred in protobufjs.
I think the version of protobuffjs in STF is too old... 🤔
-
package.json
https://github.com/openstf/stf/blob/master/package.json#L75 -
releases of protobufjs
https://github.com/protobufjs/protobuf.js/releases