Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Serial Monitor breaks after receiving Error: interrupted system call from the CLI #157

Closed
endorama opened this issue Nov 29, 2019 · 3 comments
Assignees
Labels
Milestone

Comments

@endorama
Copy link

Describe the bug
When using the serial monitor, if the amount of data is consistent and protracted in time, an error freeze it preventing any more data to be shown on the Pro Editor.

To Reproduce
Steps to reproduce the behavior:

  1. Create a sketch sending data to the Serial rapidly (like 20 chars with 1ms delay)
  2. Upload on board (I was using an Arduino Uno)
  3. Open Serial monitor
  4. Wait till freeze

Expected behavior
Serial Monitor keeps displaying incoming data

Desktop (please complete the following information):

  • OS: elementary OS Juno (based upon Ubuntu 18.04)
  • Version 0.0.3

Additional context
Add any other context about the problem here.

Relevant logs:

root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: yer
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b:  A s
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: core
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: : 19
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: 
pl
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: ayer
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b:  B s
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: core
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: : 1
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: 
pla
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: yer 
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: A sc
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: ore:
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b:  19
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: 
pla
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: yer 
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: B s
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: core
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: : 1
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: 
pla
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: yer 
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: A sc
root INFO Received data from 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b: ore:

monitor-service ERROR Error occurred for connection 42c0ce2c-761a-47f4-9eb7-3074cf7acd3b. Error: interrupted system call
    at Http2CallStream.call.on (/home/etenani/Downloads/Arduino Pro IDE-v0.0.3-linux/resources/app/node_modules/@grpc/grpc-js/build/src/call.js:68:41)
    at Http2CallStream.emit (events.js:187:15)
    at process.nextTick (/home/etenani/Downloads/Arduino Pro IDE-v0.0.3-linux/resources/app/node_modules/@grpc/grpc-js/build/src/call-stream.js:71:22)
    at process._tickCallback (internal/process/next_tick.js:61:11)

@endorama endorama added the type: imperfection Something isn't working label Nov 29, 2019
@kittaakos
Copy link
Contributor

kittaakos commented Dec 3, 2019

@endorama, thanks for reporting. It is not about the huge amount of data, but this is a bug in the CLI: arduino/arduino-cli#504

@kittaakos kittaakos changed the title Serial Monitor breaks after recieveing lots of data Serial Monitor breaks after receiving Error: interrupted system call from the CLI Dec 3, 2019
cmaglie added a commit to cmaglie/go-serial that referenced this issue Dec 3, 2019
This has been observed in particular on MacOS, in this case just retry
the call without throwing the error back to the user.

Related to:
arduino/arduino-cli#504
arduino/arduino-pro-ide#157
@kittaakos kittaakos added this to the v0.0.4 milestone Dec 9, 2019
@kittaakos
Copy link
Contributor

It will be fixed as part of #112.

I have moved this issue to the 0.0.4 milestone.

@kittaakos kittaakos self-assigned this Dec 9, 2019
@kittaakos kittaakos added topic: serial monitor ready for review topic: CLI Anything that has to implemented on the CLI side first labels Dec 9, 2019
@kittaakos kittaakos removed the topic: CLI Anything that has to implemented on the CLI side first label Dec 10, 2019
@kittaakos
Copy link
Contributor

Fixed, and we managed to roll it out in the 0.0.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants