Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose upload output rate is very slow #68

Closed
per1234 opened this issue Feb 8, 2021 · 7 comments · Fixed by #1058
Closed

Verbose upload output rate is very slow #68

per1234 opened this issue Feb 8, 2021 · 7 comments · Fixed by #1058
Assignees
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Feb 8, 2021

Describe the bug

🐛 The rate of the output from the upload tool shown when verbose upload output is enabled in the preferences is very slow.

There seems to be some significant bottleneck in the communication stream between the tool and the Pro IDE's output pane.

To Reproduce

  1. Select File > Preferences from the Arduino IDE menus.
  2. Check the box next to "Show verbose output during: upload"
  3. Click the OK button.
  4. Upload a sketch to an AVR board, megaAVR board (upload tool is AVRDUDE), or the "Programming Port" of a Zero (upload tool is OpenOCD).
    For some reason, I don't have the problem when uploading to a board that uses bossac as the upload tool (e.g., the "Native Serial" port of the Zero).

🐛 The output from the upload tool slowly streams in to the output pane for seconds after the actual upload has finished.

Expected behavior

The upload tool output to be displayed in the output pane at approximately the same speed as when using it from the command line.

Desktop

Original report

  • OS: Windows 10
  • Version: 0.1.4-snapshot.3042c1a
    Date: 2021-02-08T10:04:20.854Z
    CLI Version: 0.15.1 alpha [c7403ed2]

Last verified with

  • OS: Windows 10, Ubuntu 20.04
  • Version: 2.0.0-rc7

Additional context

I don't have any problems with the rate of the compilation output.

Related

@ubidefeo
Copy link

@per1234 did you happen to have your Serial Monitor open when this happened?
I am not experience such sluggish behaviour unless the SM is open

@per1234
Copy link
Contributor Author

per1234 commented Feb 11, 2021

did you happen to have your Serial Monitor open when this happened?

No, I haven't used the Pro IDE's Serial Monitor at all yet. But it's certainly interesting information that you're finding a correlation.

@rsora rsora transferred this issue from arduino/arduino-pro-ide Mar 1, 2021
@rsora rsora added priority: low Resolution is a low priority os: windows Specific to Windows operating system labels Mar 1, 2021
@ben-qnimble
Copy link
Contributor

I believe I see the same issue when uploading a sketch from the IDE via the bossa command line program. Bossa has output progress bar that gives an update after every page is written. When I run this from the command line, the the write and verify is almost instant (I can't see it, bossa reports less than 100ms to write 70 pages). When I run from the IDE, bossa reports the same time, it takes ~3 seconds for the progress bar to go from 0% to 100%. It fees like to can only do ~20 screen updates per second. For 70 pages, each with a display update, that takes ~4 seconds.

Having the serial monitor open or not makes no difference.

@ubidefeo
Copy link

ubidefeo commented Mar 7, 2021

@ben-qnimble @per1234

There's some kind of throttling we had to add to overcome a responsiveness issue and it is probably at the root of this.
We need to rework that on the CLI side so it might take a bit :)

@Lorandil
Copy link

Lorandil commented Jun 3, 2021

I'm experiencing the same behaviour... Upload lags behind by some dozen seconds.

@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@ubidefeo ubidefeo added type: bug and removed type: imperfection Perceived defect in any part of project labels Oct 1, 2021
@fstasi fstasi removed their assignment Oct 6, 2021
@rsora rsora added priority: high Resolution is a high priority os: macos Specific to macOS operating system os: linux Specific to Linux operating system and removed priority: low Resolution is a low priority labels Oct 6, 2021
@per1234 per1234 added type: imperfection Perceived defect in any part of project and removed type: bug labels Oct 11, 2021
@rsora rsora added priority: medium Resolution is a medium priority and removed priority: high Resolution is a high priority labels Oct 18, 2021
@per1234 per1234 added topic: code Related to content of the project itself and removed os: windows Specific to Windows operating system os: macos Specific to macOS operating system os: linux Specific to Linux operating system labels Oct 29, 2021
@rsora rsora removed the priority: medium Resolution is a medium priority label Nov 2, 2021
@rsora rsora added the criticality: medium Of moderate impact label Nov 2, 2021
@rsora rsora added criticality: high Of high impact and removed criticality: medium Of moderate impact labels Nov 30, 2021
@fstasi fstasi added this to the arduino-ide rc5 milestone Jan 25, 2022
@FredM67
Copy link

FredM67 commented Jan 28, 2022

Problem still present with:
Version: 2.0.0-rc3
Date: 2021-12-22T15:46:56.004Z
CLI Version: 0.20.2 [13783819]

Copyright © 2022 Arduino SA

@fstasi fstasi added criticality: medium Of moderate impact and removed criticality: high Of high impact labels Feb 16, 2022
@fstasi fstasi modified the milestones: arduino-ide rc5, arduino-ide rc6 Mar 24, 2022
@GClairet
Copy link

GClairet commented Apr 6, 2022

I'm experiencing the same behaviour... Upload lags behind by some tens seconds and I have to repress the reset button on my Arduino Micro to have a programming success.
Win10 Pro (20H2)
Version: 2.0.0-rc5
Date: 2022-03-10T11:09:10.332Z
CLI Version: 0.21.0 [10107d24]

Copyright © 2022 Arduino SA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: medium Of moderate impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.