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

Appearance settings

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.