You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See what's being displayed for the location of main thread.
Not Flagged 1 0 Worker Thread MainThread [Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\ptvsd\ipcjson.py", line 319, in on_request
target(request, args)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\ptvsd\wrapper.py", line 384, in f
fut = m(self, self.loop, *args, **kwargs)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\ptvsd\futures.py", line 133, in g
it = f(self, *args, **kwargs)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\ptvsd\wrapper.py", line 493, in on_stackTrace
xframes = self.stack_traces[tid]
KeyError: 'pid_6920_id_2438299707656'
]
My code:
import multiprocessing
import threading
import sys
import time
def worker():
time.sleep(5)
print('worker')
print('end')
def main():
jobs = []
for i in range(5):
p = threading.Thread(target=worker)
jobs.append(p)
p.start()
for j in jobs:
j.join()
if __name__ == "__main__":
sys.exit(int(main() or 0))
The text was updated successfully, but these errors were encountered:
See what's being displayed for the location of main thread.
My code:
The text was updated successfully, but these errors were encountered: