Skip to content
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

[Python] Display error stream when interrupting the program #160

Merged
merged 1 commit into from
Mar 9, 2023
Merged

[Python] Display error stream when interrupting the program #160

merged 1 commit into from
Mar 9, 2023

Conversation

Lucas-C
Copy link
Contributor

@Lucas-C Lucas-C commented Mar 8, 2023

Hi,

I am currently facing a case of Kaleido hanging forever, from Python code calling plotly.graph_objects.Figure.to_image(format="png", engine="kaleido").
I hope that this PR may be the solution I need: #149

In the meantime, adding those 3 lines allowed me access to the executable/bin/kaleido stderr when interrupting the whole program using CTRL+C:

Error stream:
[0308/083633.564952:ERROR:platform_shared_memory_region_posix.cc(47)] Descriptor access mode (0) differs from expected (2)
[0308/083633.565438:FATAL:platform_shared_memory_region_posix.cc(100)] Check failed: CheckPlatformHandlePermissionsCorrespondToMode(handle.get(), mode, size).
...

For this reason, it seems to me a useful an innocuous patch.

Copy link

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 Thanks @Lucas-C, this definitely looks useful!

I'll merge this now, but it may be some time before we can make a new release including it - we need to investigate #149 and the other open PRs related to hanging processes, and as you've discovered building Kaleido is a tricky process, as is testing it on all the platforms it compiles for.

@alexcjohnson alexcjohnson merged commit 3b590b5 into plotly:master Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants