Debugger hangs

system: Ubuntu, pycharm 2019.3.2, pytorch 1.5.1

I'm facing really strange bug. When debugging the debugger hangs when going step by step (F8) I have noticed that most of the time it happened when pytorch operations take place. 

Debugging through breakpoints (using F9) the debugger works as expected. Any hint on what can cause this and how can it be solved? 

Thanks in advance.

0
8 comments

Hi, I suggest submitting an issue to https://youtrack.jetbrains.com/issues with code sample and steps to reproduce.

Also, Logs from **Help | Collect Logs and Diagnostic Data** after reproducing the issue.

0

Hi Andrey Resler,

I'm using pycharm 2019.3.2 and I can't find " Collect Logs and Diagnostic Data" under Help menu. Maybe it been called differently? 

 

0

You can collect logs manually by zipping and attaching the logs directory: https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#logs-directory

0

Andrey Resler

I have two pycharm versions installed on my pc (2019.1.3 and 2020.1) under cache folder I can only see 2020.1 folder

0

This is really annoying problem and it's really weird. 

Sergey Karpov maybe you can help?

When I use Evaluate Expression I'm getting the following error:

Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/cortex/users/aviv/softwares/pycharm-2019.3/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1767, in pydevd_find_thread_by_id
pydevd_log(1, "Available: %s\n" % [get_thread_id(t) for t in threads] % thread_id)
TypeError: not all arguments converted during string formatting

0

Mista2311

> I have two pycharm versions installed on my pc (2019.1.3 and 2020.1) under cache folder I can only see 2020.1 folder

2019.3 directories have different locations, please see https://www.jetbrains.com/help/pycharm/2019.3/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html

Sorry for not mentioning this right away

0

Ok Thanks for the help I found it.

I have two folders: cache and caches weighting together ~230MB is that expected?

 

   

0

IDE caches can get quite large, this is expected. You can safely remove caches from 2019.3 version.

0

Please sign in to leave a comment.