Closed omarshaarawi closed 4 years ago
I was struggling with this today, I got it working by passing additional server args to xvfb-run, here's my orca
script (on my $PATH
):
#!/bin/bash
LIBGL_DEBUG=verbose xvfb-run --server-args "-screen 0 1920x1080x24" -a /home/bjorn/Downloads/orca-1.2.1-x86_64.AppImage "$@"
For reference, this answer led me to trying this: https://unix.stackexchange.com/a/283129/119480
I encountered the same problem. But the reason is weird, it maybe helps you. I changed the size of the font, some values could lead to the problem. Maybe you can set a small font size.
I encountered the same problem. But the reason is weird, it maybe helps you. I changed the size of the font, some values could lead to the problem. Maybe you can set a small font size.
@ZilinXiang I would like to better understand the issue you faced. Could you provide me with the JSON of the figure exhibiting this problem?
layout = {
"margin": {"l": 0,
"r": 0,
"t": 30,
"b": 0,
"pad": 0},
},
"xaxis": {
"autorange": True,
"gridcolor": "#FFFFFF",
"gridwidth": 2,
"showspikes": False,
"showticklabels": True,
"tickfont": {"color": "#000000", "size": 18, "family": "Cousine"},
"ticks": "outside",
"title": {
"font": {
"size": 18,
"family": "Cousine",
"color": "#000000"
},
},
"type": "category",
"zerolinecolor": "#FFFFFF"
},
}
when I set the size=20
, the error incurs.
Closing this issue since it seems to be a plotly.js error. Such errors should be reported in the following repo https://github.com/plotly/plotly.js with a full JSON example.
Running my python script in a Dockerfile is giving me this error.
My script runs fine on my local machine so I don't believe it's my code. Yet replacing my code
pio.write_image(fig, '/images/fig1.png',width=995, height=249)
with thispio.write_image(go.Figure(data=[{'y': [1, 3, 2]}]), 'simple_fig.png')
produces a file.My Dockerfile looks like this:
I have yet to find a working instance of orca running in a Docker container. What could be causing the errors above?
I should mention that issues arise with my code in other docker containers that have orca installed. This is the closest I've gotten it to working flawlessly and I am unsure if there is a dependency issue or if there is an extra step needed to take in a docker image.