Open Slayvin opened 1 year ago
Hi, this is affecting us as well. Current workaround is downgrade to 0.1.0
I get the similar error where it crashes under ubuntu 20.0. It works for a while and then hangs all of a sudden.
[0404/171525.764737:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 224: Permission denied (13)
[0404/171525.767326:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/grpc/_server.py", line 494, in _call_behavior
response_or_iterator = behavior(argument, context)
File "/usr/local/lib/python3.8/dist-packages/plotly/basedatatypes.py", line 3758, in to_image
return pio.to_image(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/plotly/io/_kaleido.py", line 144, in to_image
img_bytes = scope.transform(
File "/usr/local/lib/python3.8/dist-packages/kaleido/scopes/plotly.py", line 153, in transform
response = self._perform_transform(
File "/usr/local/lib/python3.8/dist-packages/kaleido/scopes/base.py", line 293, in _perform_transform
self._ensure_kaleido()
File "/usr/local/lib/python3.8/dist-packages/kaleido/scopes/base.py", line 198, in _ensure_kaleido
raise ValueError(message)
ValueError: Failed to start Kaleido subprocess. Error stream:
[0404/171525.735950:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
[0404/171525.746247:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
[0404/171525.746267:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
[0404/171525.754043:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 222: Permission denied (13)
[0404/171525.764737:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 224: Permission denied (13)
[0404/171525.767326:WARNING:resource_bundle.cc(431)] locale_file_path.empty() for locale
Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson
Hello,
I'm writing a python script to render a plotly graph to an image with kaleido. unfortunately, it keeps crashing on the first call. I've seen many users with the same issue, but none of the solutions work so far...
My environment: Windows 10 wsl2 with a Debian container python 3.9 plotly 5.12.0 kaleido 0.2.1
Here is the python code snippet I'm using:
Here is the docker container log output:
It looks like it's a memory issue with the internal javascript engine of chromium (V8)
Note that Kaleido will start when executed in a docker terminal, and will generate an output. It is crashing when executed from the python script above.
Here is the output when launched in terminal:
If I copy-paste this afterwards, it will output some result