PyCharmCE Debugger console isn't evaluating expressions

Answered

Hi,
I am using PyCharm community edition and after force shutting down my system the debugger console isn't evaluating expressions. I am adding screenshots here for help.

10 comments
Comment actions Permalink

Hi,

Have you tried restarting your PC?

Does it happen with a particular code or reproducible with some simple code snippet?

0
Comment actions Permalink

Yes, I have tried restarting and also reinstalled the IDE, this time with the help of Toolbox application, still the problem hasn't vanished and this happens with every-time irrespective of the code i am running.

0
Comment actions Permalink

Just to make sure, does it happen with the following code?

a = 1
print(a) # <--- breakpoint is here

If so, report it to https://youtrack.jetbrains.com/issues/PY and attach your idea.log from Help | Show Log in...

0
Comment actions Permalink

Strangely, it is working in this case.

0
Comment actions Permalink

Would it be possible to provide some steps and code for reproducing the issue?

0
Comment actions Permalink

At the moment the debugger is responding again, still i'll post some of the exception caught while the issue was there.

 

2019-11-07 19:05:43,295 [ 123265] WARN - ains.python.pydev.PyStackFrame - Couldn't send frame 114 
com.jetbrains.python.debugger.PyDebuggerException: Couldn't send frame 114
at com.jetbrains.python.debugger.pydev.AbstractCommand.execute(AbstractCommand.java:138)
at com.jetbrains.python.debugger.pydev.RemoteDebugger.loadFrame(RemoteDebugger.java:168)
at com.jetbrains.python.debugger.pydev.MultiProcessDebugger.loadFrame(MultiProcessDebugger.java:171)
at com.jetbrains.python.debugger.PyDebugProcess.loadFrame(PyDebugProcess.java:734)
at com.jetbrains.python.debugger.PyStackFrame.lambda$computeChildren$1(PyStackFrame.java:122)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
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.lang.Thread.run(Thread.java:834)
2019-11-07 19:05:43,615 [ 123585] INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 1 to update, calculated in 1ms
2019-11-07 19:05:43,778 [ 123748] INFO - .diagnostic.PerformanceWatcher - Reindexing refreshed files took 163ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-07 19:08:12,404 [ 272374] WARN - n.process.BaseOSProcessHandler - Process hasn't generated any output for a long time.
If it's a long-running mostly idle daemon process, consider overriding OSProcessHandler#readerOptions with 'BaseOutputReader.Options.forMostlySilentProcess()' to reduce CPU usage.
Command line: /home/dshrikant/anaconda3/envs/xflow/bin/python /home/dshrikant/.local/share/JetBrains/Toolbox/apps/PyCharm-C/ch-0/192.7142.42/helpers/pydev/pydevd.py --cmd-line --multiproc --save-signatures --qt-support=auto --client 127.0.0.1 --port 36657 --file /opt/BigData/ooda/stat_engine/gf_computer.py --env local db_id omantra vendor_id 3 from_date 2018011900
java.lang.Throwable: Process creation:
at com.intellij.execution.process.BaseOSProcessHandler.<init>(BaseOSProcessHandler.java:33)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:151)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:38)
at com.intellij.execution.process.KillableProcessHandler.<init>(KillableProcessHandler.java:34)
at com.intellij.execution.process.ColoredProcessHandler.<init>(ColoredProcessHandler.java:24)
at com.intellij.execution.process.KillableColoredProcessHandler.<init>(KillableColoredProcessHandler.java:38)
at com.jetbrains.python.run.PythonProcessHandler.<init>(PythonProcessHandler.java:37)
at com.jetbrains.python.run.PythonProcessRunner.createProcess(PythonProcessRunner.java:37)
at com.jetbrains.python.run.PythonProcessRunner.createProcess(PythonProcessRunner.java:42)
at com.jetbrains.python.run.PythonCommandLineState.doCreateProcess(PythonCommandLineState.java:289)
at com.jetbrains.python.run.PythonScriptCommandLineState.doCreateProcess(PythonScriptCommandLineState.java:202)
at com.jetbrains.python.run.PythonCommandLineState.lambda$getDefaultPythonProcessStarter$0(PythonCommandLineState.java:239)
at com.jetbrains.python.run.PythonCommandLineState.startProcess(PythonCommandLineState.java:219)
at com.jetbrains.python.run.PythonCommandLineState.execute(PythonCommandLineState.java:145)
at com.jetbrains.python.run.PythonScriptCommandLineState.execute(PythonScriptCommandLineState.java:71)
at com.jetbrains.python.run.PythonCommandLineState.execute(PythonCommandLineState.java:139)
at com.jetbrains.python.debugger.PyDebugRunner.createSession(PyDebugRunner.java:142)
at com.jetbrains.python.debugger.PyDebugRunner.doExecute(PyDebugRunner.java:170)
at com.intellij.execution.runners.GenericProgramRunner$execute$$inlined$runProfileStarter$1.executeAsync(GenericProgramRunner.kt:56)
at com.intellij.execution.runners.GenericProgramRunnerKt$startRunProfile$$inlined$runProfileStarter$1.executeAsync(GenericProgramRunner.kt:56)
at com.intellij.execution.impl.ExecutionManagerKtImpl$startRunProfile$startRunnable$1.run(ExecutionManagerKtImpl.kt:63)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:82)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:106)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:115)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:121)
at com.intellij.execution.impl.ExecutionManagerKtImpl$startRunProfile$2.run(ExecutionManagerKtImpl.kt:116)
at com.intellij.execution.impl.ExecutionManagerImpl.compileAndRun(ExecutionManagerImpl.java:278)
at com.intellij.execution.impl.ExecutionManagerKtImpl.startRunProfile(ExecutionManagerKtImpl.kt:116)
at com.intellij.execution.runners.GenericProgramRunnerKt.startRunProfile(GenericProgramRunner.kt:50)
at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.kt:17)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:46)
at com.intellij.execution.runners.BaseProgramRunner.execute(BaseProgramRunner.java:35)
at com.intellij.execution.ProgramRunnerUtil.executeConfigurationAsync(ProgramRunnerUtil.java:92)
at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:40)
at com.intellij.execution.impl.ExecutionManagerImpl.restart(ExecutionManagerImpl.java:94)
at com.intellij.execution.impl.ExecutionManagerImpl.access$300(ExecutionManagerImpl.java:45)
at com.intellij.execution.impl.ExecutionManagerImpl$3.run(ExecutionManagerImpl.java:470)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:231)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:368)
at com.intellij.util.Alarm$Request.run(Alarm.java:355)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:224)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:312)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:433)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:416)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:878)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:827)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:466)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:465)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2019-11-07 19:12:40,268 [ 540238] INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 1 to update, calculated in 1ms
2019-11-07 19:12:40,481 [ 540451] INFO - .diagnostic.PerformanceWatcher - Reindexing refreshed files took 211ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-07 19:13:07,320 [ 567290] INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 1 to update, calculated in 0ms
2019-11-07 19:13:07,490 [ 567460] INFO - .diagnostic.PerformanceWatcher - Reindexing refreshed files took 169ms; general responsiveness: ok; EDT responsiveness: ok
2019-11-07 19:13:16,040 [ 576010] WARN - ains.python.pydev.PyStackFrame - Couldn't send frame 114
com.jetbrains.python.debugger.PyDebuggerException: Couldn't send frame 114
at com.jetbrains.python.debugger.pydev.AbstractCommand.execute(AbstractCommand.java:138)
at com.jetbrains.python.debugger.pydev.RemoteDebugger.loadFrame(RemoteDebugger.java:168)
at com.jetbrains.python.debugger.pydev.MultiProcessDebugger.loadFrame(MultiProcessDebugger.java:171)
at com.jetbrains.python.debugger.PyDebugProcess.loadFrame(PyDebugProcess.java:734)
at com.jetbrains.python.debugger.PyStackFrame.lambda$computeChildren$1(PyStackFrame.java:122)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
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.lang.Thread.run(Thread.java:834)

 

0
Comment actions Permalink

Probably this was the problem

  1. Couldn't send frame 114 
    com.jetbrains.python.debugger.PyDebuggerException: Couldn't send frame 114
0
Comment actions Permalink

So the problem has resurfaced and here is the latest log entry.

2019-11-08 12:08:00,761 [ 198439]   WARN - ains.python.pydev.PyStackFrame - Disconnected 
com.jetbrains.python.debugger.PyDebuggerException: Disconnected
at com.jetbrains.python.debugger.PyDebugProcess.currentFrame(PyDebugProcess.java:862)
at com.jetbrains.python.debugger.PyDebugProcess.loadFrame(PyDebugProcess.java:730)
at com.jetbrains.python.debugger.PyStackFrame.lambda$computeChildren$1(PyStackFrame.java:122)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
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.lang.Thread.run(Thread.java:834)
2019-11-08 12:08:00,761 [ 198439] WARN - ains.python.pydev.PyStackFrame - No connection (command: 114 )
com.jetbrains.python.debugger.PyDebuggerException: No connection (command: 114 )
at com.jetbrains.python.debugger.pydev.AbstractCommand.execute(AbstractCommand.java:144)
at com.jetbrains.python.debugger.pydev.RemoteDebugger.loadFrame(RemoteDebugger.java:168)
at com.jetbrains.python.debugger.pydev.MultiProcessDebugger.loadFrame(MultiProcessDebugger.java:171)
at com.jetbrains.python.debugger.PyDebugProcess.loadFrame(PyDebugProcess.java:734)
at com.jetbrains.python.debugger.PyStackFrame.lambda$computeChildren$1(PyStackFrame.java:122)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
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.lang.Thread.run(Thread.java:834)
0
Comment actions Permalink

Hello,

 

I am having exactly this issue (down to the same debug log.) Does anyone have a solution for this?

0
Comment actions Permalink

Seems to be this issue: https://youtrack.jetbrains.com/issue/PY-37366

Should be fixed in 2020.1.1 release

0

Please sign in to leave a comment.