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

Output from custom target *very* slow to appear in the terminal #3965

Closed
1 task done
adbancroft opened this issue Jun 6, 2021 · 3 comments
Closed
1 task done

Output from custom target *very* slow to appear in the terminal #3965

adbancroft opened this issue Jun 6, 2021 · 3 comments

Comments

@adbancroft
Copy link

adbancroft commented Jun 6, 2021

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

Goal

Add a custom target that launches a simulator: simavr in my case.

Configuration

Operating system: Window 10 64 bit Version 1909

PlatformIO Version (platformio --version): PlatformIO Core, version 5.2.0a6

Description of problem

Simulator output is incredibly slow to echo in the terminal: up to the point it looks like nothing is happening. If I wait long enough (minutes) it eventually appears.

Running simavr on it's own produces output line by line.

Steps to Reproduce

  1. Setup a project using the ini, cpp & python script below.
  2. Build
  3. Launch the 'Simulate' custom target. E.g. pio run -t Simulate

Actual Results

Simulator output doesn't appear in the terminal

Expected Results

Simulator output (to stdout & stderr) is echoed in the terminal as soon as the child simavr process prints to stdout/stderr.

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
extra_scripts = simavr_env.py

Source file to reproduce issue:

#include <Arduino.h>

int counter = 0;

void setup() {
  Serial.begin(9600);
  Serial.println("TESTING");
}

void loop() {
  if (counter % 10 == 0) {
    Serial.println(counter); 
  } else {
    Serial.print(counter); Serial.print("-");
  }
  counter++;
  delay(100);
}

Additional info

@valeros
Copy link
Member

valeros commented Sep 24, 2021

Hi @adbancroft ! It seems your extra script is no longer available. Could you please upload it somewhere so I can reproduce the issue?

@adbancroft
Copy link
Author

@ivankravets ivankravets assigned ivankravets and unassigned valeros Sep 29, 2021
@ivankravets ivankravets modified the milestones: 5.2.1, 5.2.2 Oct 11, 2021
@ivankravets ivankravets modified the milestones: 5.2.3, 5.2.4 Nov 5, 2021
@ivankravets ivankravets modified the milestones: 5.2.4, 5.2.5, 5.3.0 Dec 2, 2021
@ivankravets ivankravets modified the milestones: 5.4, Backlog Feb 9, 2022
@ivankravets
Copy link
Member

Duplicate of buserror/simavr#489

@ivankravets ivankravets marked this as a duplicate of buserror/simavr#489 May 4, 2022
@ivankravets ivankravets removed this from the Backlog milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants