You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
CLI: 5.1.0 or 5.1.1-2019-01-11-12787
Cross-platform modules: Not applicable
Android Runtime: Not applicable
iOS Runtime: 5.1.0
Plugin(s): Not applicable
Describe the bug
During debug on iOS Device, sometimes an error is shown in CLI and the process exits:
RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to write outside buffer bounds
at boundsError (internal/buffer.js:51:11)
at Buffer.readInt32BE (internal/buffer.js:365:5)
at PacketStream._transform (/Users/username/workspace/CLI-master-tests-simulator-osx-yarn/node_modules/nativescript/lib/device-sockets/ios/packet-stream.js:11:39)
at PacketStream.Transform._read (_stream_transform.js:190:10)
at PacketStream.Transform._write (_stream_transform.js:178:12)
at doWrite (_stream_writable.js:410:12)
at writeOrBuffer (_stream_writable.js:394:5)
at PacketStream.Writable.write (_stream_writable.js:294:11)
at Socket.ondata (_stream_readable.js:666:20)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
The actual problem is that CLI parses some messages from iOS Runtime and tries to send them to device. However, in some cases the messages are received by CLI on chunks and in rare occasions it is unable to parse them.
To Reproduce
NOTE: Issue is hard to reproduce. We've reproduced it in Sidekick when trying to debug on iOS device.
Start debug session on iOS device
Execute some actions while device is locked.
Expected behavior
CLI should work correctly
The text was updated successfully, but these errors were encountered:
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
During debug on iOS Device, sometimes an error is shown in CLI and the process exits:
The actual problem is that CLI parses some messages from iOS Runtime and tries to send them to device. However, in some cases the messages are received by CLI on chunks and in rare occasions it is unable to parse them.
To Reproduce
Expected behavior
CLI should work correctly
The text was updated successfully, but these errors were encountered: