Skip to content

Debugger crashes randomly during stepover or stepin with breakpoint #112

@rADikal8e7

Description

@rADikal8e7

Environment data

  • PTVSD version: ms-python.python Version: 2020.3.71659
  • OS and version: Darwin x64 19.4.0
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.1
  • Using VS Code or Visual Studio: VS code
    Version: 1.44.0-insider
    Commit: e8dbc5ea6092ba73ae70069d3e730f2cc56addff
    Date: 2020-04-03T22:09:44.908Z
    Electron: 7.1.11
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    V8: 7.8.279.23-electron.0
    OS: Darwin x64 19.4.0
  • Remote - Containers : ms-vscode-remote.remote-containers Version: 0.111.0

Actual behavior

Please note all the below actions are being done when attaching to remote container.

  • After the auto update of python extension to 2020.3.71659 remote debugger crashes randomly.

  • When using breakpoint to pause and using stepover or stepinto sometimes the debugger randomly crashes and asks to reload the window causing lose of script execution.

image

  • Also after the crash and the subsequent reloadtopshows that ms.python is using up ridiculous amount of CPU utilzilation.

image

  • This goes down after a few minutes.

  • These actions used to work perfectly fine with the same code base and ms.python 2020.3.69010 in the same env (remote container).

  • Only changes done to vscode are the auto update of python extension and installation of gitlens extension Version: 10.2.1 on local and remote.

Expected behavior

Using breakpoint stepover or stepinto should not crash the debugger.

Steps to reproduce:

  1. Load the current stable python extension 2020.3.71659 and the gitlens extension to remote container.
  2. Attach to said remote container and execute any python script which uses multiprocessing module.
  3. Pause in a code block and perform stepinto and stepover while there are subprocesses running in the vs code.
  4. Click the stepover or stepinto icon 2 or 3 times in quick succession and the debugger appears to hang for a min before throwing the reload window error.
  5. Also i see the following error on the console when the crash occurs.

image

Let me know what additional logs can be presented to debug this further for root cause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions