-
Notifications
You must be signed in to change notification settings - Fork 20
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
Fix Garbage Collection #270
Conversation
The WindowManager needs to take care that the dialogs are properly disposed.
fixes #269 |
Hello @maarzt The test that fails:
|
Oh, this is a pity. I didn't expect the test to fail on other platforms. I thought the Java Swing implementation on linux would be the most unforgiving in terms a memory leaks. But the test passes on my machine. Could you please double check if everything is setup correctly? Is your working directory clean? Did you checkout the correct "fix-garbage-collection" branch. Please make sure to run @stefanhahmann Could you test if the test passes on windows? |
Ok, @stefanhahmann did run the GarbageCollectionTest on Windows. It passes. @tinevez I hope the test will pass on your Mac after executing "mvn clean". Worst case, the test continues to fail. This would likely mean, that there is a platform specific memory leak on Mac. We could have a video call, and try to debug the problem together. I can show you how I use the Eclipse Memory Analyzer to find memory leaks. |
The unit test in
GarbageCollectionTest
fails currently, when executed with an enabled graphics environement.This is because
TagSetDialog
,FeatureComputationDialog
andPreferencesDialog
are no longer disposed properly since the latest changes to the app model.This PR fixes the problem by adding the dialog's
dispose()
methods to theProjectModel.projectClosedListeners()
.