{"record":{"id":"4b3d171c5f48537d","repo":"JetBrains/intellij-community","slug":"some-action-is-already-running","errorCode":null,"errorMessage":"Some action is already running","messagePattern":"Some action is already running","errorType":"exception","errorClass":"EvaluateException","httpStatus":null,"severity":"error","filePath":"java/debugger/impl/src/com/intellij/debugger/memory/agent/MemoryAgentImpl.java","lineNumber":68,"sourceCode":"  private MemoryAgentImpl() {\n    String tempDir = FileUtil.getTempDirectory() + \"/\";\n    int version = new Random().nextInt();\n    myProxy = new IdeaNativeAgentProxyMirror(\n      tempDir + \"memoryAgentCancellationFile\" + version,\n      tempDir + \"memoryAgentProgressFile\" + version + \".json\"\n    );\n    myCapabilities = MemoryAgentCapabilities.DISABLED;\n    myState = MemoryAgentActionState.FINISHED;\n    myProgressTracker = MemoryAgentProgressTracker.DISABLED;\n  }\n\n  private @NotNull MemoryAgentCapabilities initializeCapabilities(@NotNull EvaluationContextImpl evaluationContext) throws EvaluateException {\n    return myProxy.initializeCapabilities(evaluationContext);\n  }\n\n  private <T> MemoryAgentActionResult<T> executeOperation(Callable<MemoryAgentActionResult<T>> callable) throws EvaluateException {\n    if (myState == MemoryAgentActionState.RUNNING) {\n      throw new EvaluateException(\"Some action is already running\");\n    }\n\n    if (myCancellationFile != null) {\n      FileUtil.delete(myCancellationFile);\n      myCancellationFile = null;\n    }\n\n    if (myProgressIndicator != null) {\n      myProgressTracker = new MemoryAgentProgressTrackerImpl(this, myProgressIndicator);\n    }\n    else {\n      myProgressTracker = MemoryAgentProgressTracker.DISABLED;\n    }\n\n    try {\n      myState = MemoryAgentActionState.RUNNING;\n      myProgressTracker.startMonitoringProgress();\n      return callable.call();","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/debugger/impl/src/com/intellij/debugger/memory/agent/MemoryAgentImpl.java#L50-L86","documentation":"Error \"Some action is already running\" thrown in JetBrains/intellij-community.","triggerScenarios":"A memory agent operation is requested while a previous one is still executing.","commonSituations":"Repeatedly triggering memory analysis (e.g. object size calculation) in the debugger before the previous run finished.","solutions":["Wait for the running memory-agent action to finish before starting another one.","Cancel the in-progress action if it is stuck, then retry."],"exampleFix":"Let the current 'Calculate retained size' (or similar) action complete, then run the next memory analysis action.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"be881553f2a76ac8b4ea53950d93f0de78295c19","analyzedAt":"2026-08-14T14:13:06.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}