Closed ViugiNick closed 6 months ago
I came to report the same issue.
My plugin is dynamic and normally unloads without issue.
But sometimes my plugin fails to unload and in the memory snapshot I see:
2024-02-11 15:14:07,829 [55421708] INFO - #c.i.i.p.DynamicPlugins - Snapshot analysis result: Root 1:
ROOT: Sticky class.
java.lang.Class.(root):
sun.lwawt.macosx.LWCToolkit.enumConstantDirectory:
java.util.WeakHashMap.listener2SelectiveListener:
java.util.WeakHashMap$Entry[].table:
java.util.WeakHashMap$Entry.[]:
java.awt.Toolkit$SelectiveAWTEventListener.value:
com.mallowigi.idea.ui.OverlayPainter.listener:
java.util.HashSet.rootPanes:
java.util.HashMap.map:
java.util.HashMap$Node[].table:
java.util.HashMap$Node.[]:
com.intellij.openapi.wm.impl.IdeRootPane.key:
com.intellij.toolWindow.ToolWindowPane.toolWindowPane:
com.intellij.toolWindow.ToolWindowPaneNewButtonManager.buttonManager:
com.intellij.toolWindow.ToolWindowRightToolbar.right:
com.intellij.toolWindow.ToolWindowToolbar$StripeV2.bottomStripe:
java.util.ArrayList.buttons:
java.lang.Object[].elementData:
com.intellij.toolWindow.ToolWindowPaneNewButtonManager$createStripeButton$manager$1.[]:
com.intellij.openapi.wm.impl.ToolWindowImpl.$toolWindow:
matt.idea.main.extensions.toolwin.MyToolWindowContentFactory.contentFactory:
java.lang.Class.<class>:
* com.intellij.ide.plugins.cl.PluginClassLoader.annotationType:
Note that com.mallowigi.idea.ui.OverlayPainter.listener
is in there. I don't have any understanding about this, but I'm sure that it is the same issue.
I am not sure how to reproduce it. Sometimes this happens, sometimes it doesn't.
Using Material Theme UI version 8.13.2
Describe the bug
com.mallowigi.idea.ui.OverlayPainter retains disposed
ProjectImpl
s andDockableEditorTabbedContainers
s.To Reproduce
Unfortunately we don't have exact steps to reproduce the issue, the bug is based on memory usage reports
Expected behavior
No memory leaks
Material Theme Version
no data
IDE
Android Studio
System Info
Logs/Screenshots
No response