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
scattermapbox to_image error #188
Comments
@fdrcslv Thank you for your interest in Orca and for reporting this issue. Can you add the following command line argument |
done that!
Thanks you for your time! |
Oops my bad I didn't see that. It seems there is a problem rendering WebGL. Is WebGL working reliably on your machine (https://get.webgl.org/). Also, are you running this in a VM? |
Yes it is working reliably, however I noticed that chrome version on my machine is 71.0.3578.98, while on the traceback it's this No, I'm not running on a VM |
Potentially also fixed by #195 |
@etpinard @antoinerg Thank you very much for your work! |
Hey @etpinard and @antoinerg! I'm running into the same issue as OP where using
I'm using
The above are on my local machine (not VM) and I checked that WebGL is working properly via the link above. I also ran through the steps that OP took to save the image as json using
the command never finished running after ~5 mins and I killed it from there. Do you have any suggestions for what I should do get past this error? Thanks for your time! |
I have been facing this timeout issue too. You can see here in create-server.js that Orca will produce a 522 error when a socket timeout occurs: https://github.com/plotly/orca/blob/master/src/app/server/create-server.js#L69 In my case, I think this is happening because I have a lot of data. I have been trying to increase the socket timeout using the requestTimeout option but with no success so far. requestTimeout doesn't even show up as a possible argument under "orca serve --help". |
@tombailey I'm sorry to hear you are facing an issue with exporting
It should be there as Lines 48 to 54 in a2ce478
What version of Orca are you running? |
In my case, I am not using scattermapbox, instead a sankey diagram but I think the situation is similar. As a temporary hack, I have upped the timeout by manually editing my global node_modules. The 522 error has now been replace by an Electron error as the process seems to be hitting OOM issues:
On the --request-timeout arg, I see nothing in --help, see below:
|
@tombailey can you render your figure in a browser using plotly.js? If not, I suspect you're hitting this plotly.js issue: plotly/plotly.js#3813 A fix for it will be released this week as part of plotly.js |
@antoinerg I think you are right, in my case it appears it was a circular sankey issue although I couldn't get plotly.js v1.49.0 to render the sankey diagram either. Back to the original issue, a 522 client timeout error would suggest large data or a bug causing Orca to spend too much time rendering the image so the timeout happens. Whether that is because of an infinite loop in my case or large data which might be the case for this original issue. As @antoinerg mentions, --request-timeout can be used to give Orca more time to render an image assuming the issue isn't caused by an infinite loop. |
@tombailey v1.49.0 hasn't been released yet although you can try a bundle built off master temporarily hosted here: https://45455-45646037-gh.circle-artifacts.com/0/dist/plotly.min.js You can provide that URL to Orca directly via It this still doesn't render, could you please open a new issue or append the problematic dataset to the issue: plotly/plotly.js#3813. Thanks @tombailey |
Exporting a png of a scattermapbox chart using
plotly.io.to_image()
results in this error:It is somewhat inconsistent, sometimes I can export 20 images at a time and then stops altogether. I should add that I'm using GeoJson layers in my map. When it succeeds the output looks like this
I'm doing this from a controller in my application: all the other charts get exported with no problems and quite fast.
I tried launchung the orca server manually to see what is going on, and the error message is quite similar to the traceback I get from my webserver
{"severity":"ERROR","textPayload":"525 - plotly.js error","labels":{"fid":null}}
Lastly, I’ve used the basic example of scattermapbox to ensure nothing else was influencing the output and tried exporting a json with plotly, and then exporting it manually with orca.
Then in my terminal:
$ orca graph figure.json --mapbox-access-token MY_TOKEN -o figure.png --verbose
The output was this
Edit: I'm on windows
The text was updated successfully, but these errors were encountered: