Debugging of multitaprocessing app on Fedora 25
Hi,
I'am trying to debug the b/m piece of code, however each time after 2 oraz 3 second I receive the error: KeyboardInterrupt
Full exception is at the bottom of this post.
The problem did not ocured on Fedora 21. I am using the follwoing Pycharm version: 2017.14, build PC-171.4694.25, JRE 1.8.
<code>
import time, multiprocessing
def the1():
while 1:
# here is the breakpoint
print("I am working in the background {:s}" . format(multiprocessing.current_process().name))
time.sleep(1)
def main():
t1 = multiprocessing.Process(target=the1, name='ARCHITECT')
t1.start()
if __name__ == "__main__":
main()
</code>
Full error:
Connected to pydev debugger (build 171.4694.25)
/usr/bin/python3.5 /home/phos/Downloads/pycharm-community-2017.1.4/helpers/pydev/pydevd.py --multiproc --qt-support --client 127.0.0.1 --port 39275 --file /home/phos/git/elasticsearch-inforia/test-multitask.py
warning: Debugger speedups using cython not found. Run '"/usr/bin/python3.5" "/home/phos/Downloads/pycharm-community-2017.1.4/helpers/pydev/setup_cython.py" build_ext --inplace' to build.
pydev debugger: process 6231 is connecting
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib64/python3.5/multiprocessing/popen_fork.py", line 29, in poll
pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt
Traceback (most recent call last):
File "/home/phos/Downloads/pycharm-community-2017.1.4/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 608, in trace_dispatch
self.do_wait_suspend(thread, frame, event, arg)
File "/home/phos/Downloads/pycharm-community-2017.1.4/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 125, in do_wait_suspend
self._args[0].do_wait_suspend(*args, **kwargs)
File "/home/phos/Downloads/pycharm-community-2017.1.4/helpers/pydev/pydevd.py", line 766, in do_wait_suspend
time.sleep(0.01)
KeyboardInterrupt
Process ARCHITECT:
Traceback (most recent call last):
File "/usr/lib64/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/usr/lib64/python3.5/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/home/phos/git/elasticsearch-inforia/test-multitask.py", line 5, in the1
print("I am working in the background {:s}" . format(multiprocessing.current_process().name))
File "/home/phos/git/elasticsearch-inforia/test-multitask.py", line 5, in the1
print("I am working in the background {:s}" . format(multiprocessing.current_process().name))
File "/home/phos/Downloads/pycharm-community-2017.1.4/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 608, in trace_dispatch
self.do_wait_suspend(thread, frame, event, arg)
File "/home/phos/Downloads/pycharm-community-2017.1.4/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 125, in do_wait_suspend
self._args[0].do_wait_suspend(*args, **kwargs)
File "/home/phos/Downloads/pycharm-community-2017.1.4/helpers/pydev/pydevd.py", line 766, in do_wait_suspend
time.sleep(0.01)
KeyboardInterrupt
Process finished with exit code 0
Please sign in to leave a comment.
Hi Przemek! We have a similar issue in our issue tracker, but, unfortunately, we still can't reproduce it: https://youtrack.jetbrains.com/issue/PY-16301
Feel free to vote for it and leave a comment.