Open ViugiNick opened 7 months ago
Hi! I didn't get :D Could you share more details about problem?
In the bug description I attached a few memory leaking paths. It looks like the task lambda in ModeProvider
holds an instance of ModeProvider
that holds released EditorImpl
and retains disposed objects like MergeThreesideViewer
, CaretModelImpl
, EditorView
ModeProvider
is also referenced from java.util.concurrent.Executors$RunnableAdapter
this$0: com.intellij.util.concurrency.AppDelayQueue
q: java.util.PriorityQueue
queue: java.lang.Object[]
[]: com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask
callable: java.util.concurrent.Executors$RunnableAdapter
arg$1: com.smallcloud.refactai.modes.ModeProvider
editor: com.intellij.openapi.editor.impl.EditorImpl
Lambda in ModeProvider registered as MyScheduledFutureTask holds reference to a released editor that refers a number of disposed objects