Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TST: Cache available interactive backends#27422

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
oscargus merged 1 commit intomatplotlib:mainfromQuLogic:test-cache-display
Dec 3, 2023

Conversation

QuLogic
Copy link
Member

PR summary

There are currently 7 backends, and this function is called 8 times during test collection. This means thatXOpenDisplay would be called 56 times (multiplied by process count if using xdist).

Locally, I'm seeing a deadlock after too many calls toXOpenDisplay during collection. While this is not directly our bug, it seems prudent to cut this down to only the one check per collection process.

I don't think we can cache this globally, as one might want to re-try a GUI figure after starting an X server (e.g., over SSH or similar), without restarting Python/Matplotlib.

PR checklist

There are currently 7 backends, and this function is called 8 timesduring test collection. This means that `XOpenDisplay` would be called56 times (multiplied by process count if using xdist).Locally, I'm seeing a deadlock after too many calls to `XOpenDisplay`during collection. While this is not directly our bug, it seems prudentto cut this down to only the one check per collection process.I don't think we can cache this globally, as one might want to re-try aGUI figure after starting an X server (e.g., over SSH or similar),without restarting Python/Matplotlib.
@oscargusoscargus merged commit5b5154d intomatplotlib:mainDec 3, 2023
@tacaswell
Copy link
Member

This fixes the collection failure for me as well.

@tacaswelltacaswell added this to thev3.9.0 milestoneDec 4, 2023
@QuLogicQuLogic deleted the test-cache-display branchDecember 4, 2023 22:53
@QuLogicQuLogic mentioned this pull requestDec 5, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

4 participants
@QuLogic@tacaswell@timhoffm@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp