THUDM / CodeGeeX

CodeGeeX: An Open Multilingual Code Generation Model (KDD 2023)
https://codegeex.cn
Apache License 2.0
8.1k stars 588 forks source link

ai.codegeex.plugin holds static reference to EditorImpl #234

Open ViugiNick opened 9 months ago

ViugiNick commented 9 months ago

Also there are some disposed objects in the EditorImpl subtree, which may lead to a memory leak.

Android Studio Iguana | 2023.2.1 Canary 14

    37.1MB/1 objects          (root): java.lang.Class(ai.codegeex.plugin.toolWindow.AskCodegeexContent)
    37.1MB/1 objects          (static): java.util.HashMap
    37.1MB/1 objects          table: [Ljava.util.HashMap$Node;
    37.1MB/3 objects          []: java.util.HashMap$Node
    37.1MB/3 objects          value: com.intellij.openapi.editor.impl.EditorImpl
    26.3MB/3 objects          +-value: com.intellij.util.keyFMap.MapBackedFMap
    26.3MB/3 objects          | value: [Ljava.lang.Object;
    26.0MB/1 objects          | []: com.intellij.codeInsight.codeVision.EditorCodeVisionContext
    26.0MB/1 objects          | codeVisionHost: com.intellij.codeInsight.codeVision.CodeVisionHost
    26.0MB/1 objects          | project: com.intellij.openapi.project.impl.ProjectImpl(disposed)
    10.1MB/1 objects          \-myPanel: javax.swing.JPanel
    10.1MB/1 objects            parent: com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorComponent(disposed)