-
-
Notifications
You must be signed in to change notification settings - Fork 43
Pipe example hanging on OS X #104
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
Comments
Strange. This works just fine on my Ubuntu laptop. |
I think the best workaround would be to save the JSON to a temporary file, call orca and then remove the temporary file. I suspect piping a JSON of 100,000+ pts to orca might be very slow as we have to wait until the entire JSON is in memory before booting orca. |
Just to remove one layer of indirection, I get the same behavior if I call the orca executable directly (rather than the wrapper in /usr/local/bin):
I wonder if there's something going on here with the application bundle. I'll try it from development environment. |
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. |
Ahh, this is probably what's going on: electron/electron#4218
That issue was for a windows application build, but maybe there's something similar going on for OS X applications as well. |
Tagging as |
The help info for
orca graph --help
displays this usage example:However, when I try to use this (on OS X) the command just hangs
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
The text was updated successfully, but these errors were encountered: