question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pipe example hanging on OS X

See original GitHub issue

The help info for orca graph --help displays this usage example:

 $ cat plot.json | orca graph {options} > plot.png

However, when I try to use this (on OS X) the command just hangs

echo '{"data": [{"y": [2, 3, 1]}]}' > plot.json
cat plot.json | orca graph > plot.png

For background, I was considering using a STDIN approach for the plotly.py integration because there’s a limit to how large command-line arguments can be. For example, the Python approach in the README, of passing the JSON definition of the graph as an argument to orca, fails for a scatter plot with 100,000 points. cc @chriddyp

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
jonmmeasecommented, Aug 1, 2018

Ahh, this is probably what’s going on: https://github.com/electron/electron/issues/4218

On Windows only console programs can have stdin, but Electron is a GUI program.

That issue was for a windows application build, but maybe there’s something similar going on for OS X applications as well.

1reaction
jonmmeasecommented, Jul 30, 2018

Yeah, it also hangs if I use the bin/orca.js entry point from the development environment.

Converting the large scatter plots to images is actually pretty fast when I save the json to a file first, and pass the file path to orca (The save time is still dominated by orca’s startup time).

I was hoping to find a way to handle large plots, and avoid writing out temp files. But the temp file approach might be preferable anyway, to make it easier to handle the batch conversion of multiple images in one call to orca.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python pipe.send() hangs on Mac OS - Stack Overflow
When I'm calling send() pipe is not closed yet in my example, because I'm closing both pipes in the main process after join()...
Read more >
net: localhost pipes cause test hangs on macOS Sierra #25696
I've looked into this a bit. My best guess is that the OS drops localhost pipes on the floor when it is heavily...
Read more >
Server hang with "unable to create a pipe" error message - IBM
A Tivoli Storage Manager server may become unresponsive and stop processing tape mounts to an external library. When this situation occurs, ...
Read more >
pipe() System call - GeeksforGeeks
It opens a pipe, which is an area of main memory that is treated as a “virtual file”. The pipe can be used...
Read more >
How can I prevent an SSH session from hanging in OS X ...
That is, press the tilde and then the period, if it doesn't work, press Enter before you press that, that will kill the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found