-
Notifications
You must be signed in to change notification settings - Fork 101
Memory leak of Settings dialogue #51
Comments
Seems a possible solution: https://stackoverflow.com/questions/15674422/unable-to-detect-why-qdialog-is-memory-leaking |
Nope. Not the source. But fixed:
|
How did you confirm the memory leak? I read the documentation of |
Open & close the settings menu using a script and monitor the memory usage ;) |
Sorry for the late reply @SilverBut. I've tested your pull request #52 but I'm still seeing a memory leak. Even if the dialog is reused, memory usage increases every time I open and close it. In all of my testing, the singleton method appears to be equivalent to using |
Strange. The commit 2714069 should not create any more setting dialogues and its pages. Maybe it is not the dialog which is created for many times. |
I'm not mean to be offensive, but I wonder why we need to care about things like this? |
totally agree, just keep it in a corner of our head for when there will be no more issue :)). |
But I also suggest that we solve this issue when we already have a pre-release |
In both current
master
branch and myissue-guis
branch, theSettingsDialog
is created for everytime you clickSettings
in menu. However, it is not destroyed after the dialogue got closed. This can be reproduced by adding a singleton class into the__init__
method of classSetingsDialog
.Fix related with this issue will be committed together with other code from #46.
The text was updated successfully, but these errors were encountered: