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 ?
Please sign in to leave a comment.
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.
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 )) .
Same happening here, IntelliJ IDEA 2022.1 (Ultimate Edition) macOS. None of the solutions here have worked.
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.
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
Those of who are still stuck, I found a solution in this stack overflow post - https://stackoverflow.com/a/51833034/2709971
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.
Same behavior with Scala debugger and 2023.3.7
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.
David Perez
Please collect the following data for analysis:
workspace.xml
located in the.idea
directory in the project rootYou can upload the files to https://uploads.jetbrains.com and provide the ID of the upload here.