Pipe example hanging on OS X
See original GitHub issueThe 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:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ahh, this is probably what’s going on: https://github.com/electron/electron/issues/4218
That issue was for a windows application build, but maybe there’s something similar going on for OS X applications as well.
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.