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

Memory management issues for images under Windows/PySide2 #1108

Closed
corranwebster opened this issue Feb 23, 2022 · 0 comments · Fixed by #1109
Closed

Memory management issues for images under Windows/PySide2 #1108

corranwebster opened this issue Feb 23, 2022 · 0 comments · Fixed by #1109

Comments

@corranwebster
Copy link
Contributor

This was observed with the TraitsUI ImageEditor occasionally segfaulting in CI: see enthought/traitsui#1815

Running directly on Windows shows results like this:

image

This is likely caused by memory being deallocated but still referenced somewhere.

corranwebster added a commit that referenced this issue Feb 23, 2022
corranwebster added a commit that referenced this issue Feb 24, 2022
* Fix QPixmap references to QImage

This hopefully fixes #1108.

* Add comments to explain why we are stashing references.
corranwebster added a commit that referenced this issue Feb 24, 2022
corranwebster added a commit that referenced this issue Feb 24, 2022
* Fix QPixmap references to QImage

This hopefully fixes #1108.

* Add comments to explain why we are stashing references.
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 a pull request may close this issue.

1 participant