8000 FIX: deal with negative canvas dimension in Qt by tacaswell · Pull Request #6152 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

FIX: deal with negative canvas dimension in Qt #6152

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

Merged
merged 1 commit into from
Mar 14, 2016

Conversation

tacaswell
Copy link
Member

In some cases Qt may report having a negative height (and presumably
width) in the case of minimizing windows / widgets. This causes issues
at the Agg layer when the re-size triggers a re-draw which tries to get
a renderer with a negative dimension (segfaults or OutOfMemory errors).

reported via https://stackoverflow.com/questions/35977326/a-figurecanvasqtagg-nested-in-a-qmdisubwindow-segfaults-when-i-minimize-the-qmdi

In some cases Qt may report having a negative height (and presumably
width) in the case of minimizing windows / widgets.  This causes issues
at the Agg layer when the re-size triggers a re-draw which tries to get
a renderer with a negative dimension (segfaults or OutOfMemory errors).
@tacaswell tacaswell added this to the 1.5.2 (Critical bug fix release) milestone Mar 14, 2016
jenshnielsen added a commit that referenced this pull request Mar 14, 2016
FIX: deal with negative canvas dimension in Qt
@jenshnielsen jenshnielsen merged commit cd88b31 into matplotlib:v1.5.x Mar 14, 2016
@tacaswell tacaswell deleted the fix_qt_segfault branch March 14, 2016 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0