plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
MIT License
378 stars 38 forks source link

feat: add timeout parameter for full_figure_for_development or prevent stackoverflow otherwise #197

Open gvwilson opened 4 months ago

gvwilson commented 4 months ago

Problem description: Every now and then, the kaleido process gets stuck in an endless loop while rendering and crashes after ~45 seconds with a stackoverflow message. Since this is running in an external process and the python process is blocked, it is very hard / unreliable to try and implement a timeout on the python side. This problem happens with all different kinds of charts and changing a single property usually fixes the issue. However, when interactively working with a chart, it is very annoying, if the interface is blocked for 45+ seconds.

Possible solutions: A) Implement a timeout mechanism in full_figure_for_development B) Build a reliable protection mechanism against infinite loops in the kaleido process

Thanks for looking into it.