carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.09k stars 230 forks source link

Lambda in CodeGPTUpdateActivity holds diposed project #595

Open ViugiNick opened 5 months ago

ViugiNick commented 5 months ago

What happened?

Lambda in CodeGPTUpdateActivity holds diposed project. Similar to https://github.com/carlrobertoh/CodeGPT/issues/364

Relevant log output or stack trace

(root): com.intellij.util.concurrency.AppDelayQueue$TransferThread
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
task: ee.carlrobert.codegpt.CodeGPTUpdateActivity$$Lambda
arg$1: ee.carlrobert.codegpt.CodeGPTUpdateActivity$schedulePluginUpdateChecks$command$1
$project: com.intellij.openapi.project.impl.ProjectImpl (disposed)


### Steps to reproduce

_No response_

### CodeGPT version

no data

### Operating System

None
ViugiNick commented 3 months ago

Disposed project is also retained via a similar path:

(root): com.intellij.util.concurrency.AppDelayQueue$TransferThread
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
task: ee.carlrobert.codegpt.CodeGPTUpdateActivity$$Lambda
arg$1: ee.carlrobert.codegpt.CodeGPTUpdateActivity$$Lambda
arg$1: com.intellij.openapi.project.impl.ProjectImpl (disposed)