CLion 2021: GDB "Command Timed Out"

Answered

I'm aware of some duplicated threads with this issue in 2015 but now, in 2021, when debugging my SFML application sometimes when the debugger goes to a breakpoint it will show "collecting data" but nothing will happen and the debugger then exits with "command timed out" after a very short time. This is not consistently reproducible, sometimes it works sometimes it doesn't on the same breakpoint with the exact same environment two runs right after the other with no changes in-between which makes it incredibly annoying.

I'm running Ubuntu 20.04.2, with CLion I'm on Build #CL211.7442.12. I just did a clean reinstall of CLion and it's still happening. I've tried both the bundled GDB 10.2 aswell as 9.2 that I installed myself, both have the same issue.

An archive of the entirety of my log folder can be access via 2021_06_06_WRyE5wKjTh3uvsNV 
This log was (again) from the very first build after the clean reinstall of CLion, the relevant portion is also posted below

Is there a setting somewhere that lets me increase the time before it times out or is this still a bug from 2015? If my machine is too slow that's fine just let it collect data for more than 30s because the debugger is basically unusable for my application now and the fact it only sometimes doesn't work makes it infuriating.

(...)
2021-06-06 02:00:51,380 [ 253604] INFO - indexing.UnindexedFilesUpdater - Pushing properties took 24ms; general responsiveness: ok; EDT responsiveness: ok
2021-06-06 02:00:51,385 [ 253609] INFO - indexing.UnindexedFilesUpdater - Use 4 indexing threads
2021-06-06 02:00:51,664 [ 253888] INFO - indexing.UnindexedFilesUpdater - Finished. Unindexed files update took 279ms; general responsiveness: ok; EDT responsiveness: ok
2021-06-06 02:00:57,607 [ 259831] WARN - brains.cidr.execution.debugger - Command timed out (30000): 0-interpreter-exec --thread 1 --frame 7 mi2 "-var-create var4_this * \"this\""
2021-06-06 02:00:59,108 [ 261332] WARN - brains.cidr.execution.debugger - Command timed out (1500): 0-interpreter-exec --thread 1 --frame 7 mi2 "-var-create var4_this * \"this\""
2021-06-06 02:00:59,108 [ 261332] WARN - brains.cidr.execution.debugger - Command timed out
com.jetbrains.cidr.execution.debugger.backend.DebuggerCommandTimedOutException: Command timed out
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.executeCommandNoUserException(GDBDriver.java:3345)
at com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver.doExit(GDBDriver.java:1537)
at com.jetbrains.cidr.execution.debugger.backend.DebuggerDriver$2.processWillTerminate(DebuggerDriver.java:993)
at jdk.internal.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:246)
at com.sun.proxy.$Proxy47.processWillTerminate(Unknown Source)
at com.intellij.execution.process.ProcessHandler.fireProcessWillTerminate(ProcessHandler.java:228)
at com.intellij.execution.process.ProcessHandler.lambda$destroyProcess$0(ProcessHandler.java:122)
at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:279)
at com.intellij.execution.process.ProcessHandler.destroyProcess(ProcessHandler.java:120)
at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.handleCommandException(CidrDebugProcess.java:1084)
at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invokeSuspend(CidrDebuggerCommandExecutor.kt:88)
at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommand$3.invoke(CidrDebuggerCommandExecutor.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor.executeCommand(CidrDebuggerCommandExecutor.kt:77)
at com.jetbrains.cidr.execution.debugger.CidrDebuggerCommandExecutor$executeCommandAsync$1.invokeSuspend(CidrDebuggerCommandExecutor.kt:58)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:216)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:27)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:195)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:184)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
2021-06-06 02:00:59,122 [ 261346] INFO - ntellij.util.io.BaseDataReader - Stream closed
java.io.IOException: Stream closed
at java.base/java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:176)
at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:289)
at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.base/java.io.InputStreamReader.read(InputStreamReader.java:181)
at java.base/java.io.Reader.read(Reader.java:229)
at com.intellij.util.io.BaseOutputReader.readAvailableBlocking(BaseOutputReader.java:134)
at com.intellij.util.io.BaseDataReader.readAvailable(BaseDataReader.java:68)
at com.intellij.util.io.BaseDataReader.doRun(BaseDataReader.java:158)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
at com.intellij.util.io.BaseDataReader.lambda$start$0(BaseDataReader.java:51)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
2021-06-06 02:00:59,224 [ 261448] INFO - brains.cidr.execution.debugger - Debugger exited with code 0
2021-06-06 02:01:02,227 [ 264451] WARN - brains.cidr.execution.debugger - Cannot detach/abort. Forcing driver termination

0
4 comments

Anna thats not a solution!  having to wait 10m for Clion to display a variable makes CLion - well - worse than useless as a development tool.

0

Notching You tagged the wrong Anna on your comment.

0

Notching Please enable debugger logging as described here, reproduce the issue and send the resulting idea.log file (Help | Show Log in ...) to clion-support at jetbrains.com. Do not forget to disable debug logging after that. Note that logs might contain private user's information (like file paths and names). 

0

Please sign in to leave a comment.