-
-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Exporting a png of a scattermapbox chart using plotly.io.to_image() results in this error:
ValueError:
The image request was rejected by the orca conversion utility
with the following error:
522: client socket timeout
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.
Data = [
go.Scattermapbox(
lat=['45.5017'],
lon=['-73.5673'],
mode='markers',
marker=dict(
size=14
),
text=['Montreal'],
)
]
layout = go.Layout(
autosize=True,
hovermode='closest',
mapbox=dict(
accesstoken=MY_TOKEN,
bearing=0,
center=dict(
lat=45,
lon=-73
),
pitch=0,
zoom=5
),
)
fig = dict(data=data, layout=layout)
#write json with plotly.io
pio.write_json(fig, 'figure.json', pretty=True)
Then in my terminal:
$ orca graph figure.json --mapbox-access-token MY_TOKEN -o figure.png --verbose
The output was this
gpu process crashed - false
Chrome version 59.0.3071.115
Electron version 1.8.4
renderer error - Uncaught TypeError: Failed to execute 'shaderSource' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLShader'.
Chrome version 59.0.3071.115
Electron version 1.8.4
renderer error - Uncaught TypeError: Failed to execute 'shaderSource' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLShader'.
Chrome version 59.0.3071.115
Electron version 1.8.4
renderer error - Uncaught TypeError: Failed to execute 'shaderSource' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLShader'.
Chrome version 59.0.3071.115
Electron version 1.8.4
Edit: I'm on windows