Debugger stuck at "collecting data"

Answered

Hi everyone . I was developing a java program when suddenly it stopped debugging one of my modules(I have 2 modules and one of them is debugging without problems, but the second one stopping at the same place) . In the variable section (and everywhere) it just says "collecting data" , I waited for about 5 minutes cause i thought maybe something is wrong with my laptop, but I found out that it isn't the case. I tried the "invalid caches/restart" but that didn't help . I even updated the intelliJ but again , it wasnt the case . Any solutions ?

0
10 comments

Try the suggestions from https://intellij-support.jetbrains.com/hc/en-us/articles/206544799.

If the issue persists, please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA with the sample project to reproduce attached.

0

I solved the problem .Friendly advice,  If you ever put something under a watch , make sure its not a large one, cause it literally kills you memory , and you are getting stuck at "Collecting data" . But Intellij should fix this , cause i put an outputStream under a watch , which was just getting a byte array (smaller than 4 kb i think), So if you ever get this problem , first of all look at the objects under the watch )) . 

1

Same happening here, IntelliJ IDEA 2022.1 (Ultimate Edition) macOS. None of the solutions here have worked.

0

Ariel Mirra Please provide the debugger logs per https://intellij-support.jetbrains.com/hc/en-us/articles/207241125. Also provide .idea/workspace.xml from the project and IDE logs (Help | Collect Logs and Diagnostic Data). You can upload the files at https://uploads.jetbrains.com and provide the ID here.

0

Hi Serge Baranov

I am using PyCharm and I also face the same problem. I have uploaded the relevant files here - Upload id: 2022_05_22_8g692EzmgGUoSY9e (files: pycharm-logs-20220522-2305416556308933675804696.zip, console output.txt)

Kindly look into this and advice me on the next steps.

I am using PyCharm 2021.3.2 (Professional Edition) - Build #PY-213.6777.50, built on January 27, 2022 

0

Those of who are still stuck, I found a solution in this stack overflow post - https://stackoverflow.com/a/51833034/2709971

 

1

Ensure your java compiler version matches your build version. I had Java 11 biuld, Java 8 compiler and was stuck at collecting data during debugging.

0

Same behavior with Scala debugger and 2023.3.7

0

The only thing I've seen in the logs is:
2024-08-16 07:34:24,678 [  14490] SEVERE - #c.i.v.l.d.i.IndexDiagnosticRunner - IdeaLoggingEvent[message=Index is corrupted, throwable=java.lang.RuntimeException: Index is corrupted
    at com.intellij.vcs.log.data.index.IndexDiagnosticRunner.doRunDiagnostic(IndexDiagnosticRunner.kt:79)
    at com.intellij.vcs.log.data.index.IndexDiagnosticRunner.runDiagnostic$lambda$1(IndexDiagnosticRunner.kt:45)
    at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$submitTask$8(BackgroundTaskUtil.java:266)
    at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$createBackgroundTask$10(BackgroundTaskUtil.java:302)
    at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:73)
 

I can watch in the variables pane of the debugger any variable, except one, and it is precisely the one I'm more inteested about.

0

David Perez 

Please collect the following data for analysis:

  1. A screenshot of the issue in the editor with the Debugger window visible
  2. Debugger logs (see instructions)
  3. The file called workspace.xml located in the .idea directory in the project root
  4. IDE logs: Help | Collect Logs and Diagnostic Data

You can upload the files to https://uploads.jetbrains.com and provide the ID of the upload here.

0

Please sign in to leave a comment.