GNOME Bugzilla – Bug 791970
AtkWrapper.java memory leak - adding listeners instead of removing them
Last modified: 2019-05-29 10:49:06 UTC
Created attachment 365990 [details] Debugging session showing the massive build up of event listeners I have chased down a performance problem with a Scala/Java application that boiled down to table UI's validating many cell renderers which in turn dispatch container events into AtkWrapper. There is a severe bug in the code: https://github.com/GNOME/java-atk-wrapper/blob/2d362dbcc8df35d8c0d16534f57eeaee055c2b66/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in#L309 This line wrongly _adds_ another listener when a component was removed from a container, instead of _removing_ it. The result is a massive build up of AWT event multi dispatchers, as indicated in the attached screen shot. Could you please provide information in the meantime how I can deactivate AtkWrapper on my system (Debian Stretch). Thank you.
Stumbled across this affecting NetBeans: https://issues.apache.org/jira/browse/NETBEANS-861
This is fixed by f9faf04a88685d6759c18572988876215332086a ("Fix removing component listener")