profile
viewpoint

Ask questions 'NoneType' object has no attribute 'pydev_notify_kill' on Flask with multiprocess implementation

Environment data

  • PTVSD version: 4.2.10
  • OS and version: Ubuntu 18.04
  • Python version (& distribution if applicable, e.g. Anaconda): Flask 0.12.2 with Python 3.6.8
  • Using VS Code or Visual Studio: VS Code (1.36.0)

Actual behavior

in notify_thread_not_alive: was_notified = thread.additional_info.pydev_notify_kill 'NoneType' object has no attribute 'pydev_notify_kill'

Expected behavior

Should continue

Steps to reproduce:

  1. Using multiprocessing.managers class BaseManager

Tried these:

import ptvsd ptvsd.debug_this_thread() 2. ptvsd.enable_attach(address=('127.0.0.1', 7777), redirect_output=True) ptvsd.wait_for_attach() Sorry if this is a dumb report

microsoft/ptvsd

Answer questions fabioz

Inspecting the code I think this could be caused by a race condition. The pull request above should fix it (although as a note, I haven't been able to reproduce locally).

useful!
source:https://uonfu.com/
answerer
Fabio Zadrozny fabioz Python enthusiast. Maintainer of PyDev, PyDev.Debugger, LiClipse, LiClipseText, PyVmMonitor and mu-repo
Github User Rank List