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

console.log hangs on long lines #8050

Closed
jo opened this issue Aug 10, 2016 · 3 comments
Closed

console.log hangs on long lines #8050

jo opened this issue Aug 10, 2016 · 3 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. process Issues and PRs related to the process subsystem.

Comments

@jo
Copy link

jo commented Aug 10, 2016

Version: 6.3.1
Platform: Linux localhost.localdomain 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linux

for (var i = 0; i < 10000; i++) {
  str = '' 
  for (var k = 0; k < i; k++) {
    str += 'x'
  }
  console.log(str)
}
@Fishrock123 Fishrock123 added process Issues and PRs related to the process subsystem. duplicate Issues and PRs that are duplicates of other issues or PRs. labels Aug 10, 2016
@Fishrock123
Copy link
Contributor

Looks like a duplicate of #1741

@addaleax
Copy link
Member

Btw, #6816 would probably fix this (it makes sense and that is what the discussion in #1741 indicates). @Fishrock123 do you want to go ahead and land it?

@jo
Copy link
Author

jo commented Aug 10, 2016

Indeed a duplicate, thanks!

Suggestion by @pgkos hotfixes the problem for now:

process.stdout._handle.setBlocking(true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. process Issues and PRs related to the process subsystem.
Projects
None yet
Development

No branches or pull requests

3 participants