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
Needed to restart ORCA server after some number of plots #14
Comments
Hmm, thanks for opening. to be totally honest, I'm not sure what would cause this error or how to fix it beyond some sort of manual restart of the server like you do hear? Perhaps we could automate what you have done here by doing a |
As a temporary pragmatic measure, testing for this timeout and restarting would suffice. It may be a bit before I have time to make that pull request. The only thing I worry about is getting into a restart loop that wouldn't terminate, so I like the try-catch idea just to do it once. Alternatively, it may be useful to try and track down the resource limit in ORCA itself to see if there would be something else that may be reportable from there. e.g. these reports in the orca process seem somehow related plotly/orca#188 Doing so would involve manually interacting with the ORCA process and enabling verbose reporting. (Or maybe there is some way to log orca messages?) e.g. what I would do if I had time would be to...
|
great ideas. Whenever you have time to make an attempt at that I'll gladly review with you. Thanks |
Okay, it definitely seems like something in the ORCA process. I managed to debug this a bit... (much easier than expected!) Steps to debug and get more info.
Then you can overwrite the default savefig from which you can avoid the ensure_server call to skip starting up ORCA.jl's own instance :)
This will get called if you run a plot now.. (you can verify with the output) Anyway, this shows that Orca is throwing a memory error after 19 plots. Ideally, this suggests that there'd be some way to reset Orca, but it seems like restarting is almost the official recommendation here. My quick recommendation: it seems the pragmatic solution is best :), check for the timeout error, restart and retry... |
Thanks for debugging! I wonder what the people over at the orca repo would say? I'm going to ping a couple of them @antoinerg, @nicolaskruchten (if I missed anyone please tag them here too!) |
Thank you for the great detective work @dgleich Due to the problems with this package, we have decided to go another direction. The savefig functionality offered by this package has been superseded by new routines built in to PlotlyBase.jl (and thus PlotlyJS.jl) itself. ORCA.jl is now deprecated and should not be used going forward. Thank you |
I encountered an issue where I'd receive a client socket timeout while generating an animation using Plots.jl, PlotlyJS.jl and ORCA.jl.
Here is a smaller version of the example I have that crashes, I tried to simplify but was unable to simplify.
If I change the final animation to
Note that I had to change rem(i,15) to rem(i,20) or rem(i,10) depending on exactly which plot I was generating.
Then it succeeds.
Possibly also related
JuliaPlots/Plots.jl#2055
The text was updated successfully, but these errors were encountered: