Skip to content

Closing integrated terminal causes window to crash with C++ assertion error #71789

Closed

Description

@kaleidawave
  • VSCode Version: 1.33.0
  • OS Version: Win10

Steps to Reproduce:

  1. Closing the integrated terminal

Does this issue occur when all extensions are disabled?: "Shouldn't be affected by extensions"

Before window crashes this Microsoft Visual C++ Runtime Library error comes up.

image

Activity

  1. vscodebot commented on Apr 5, 2019

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. Tyriar commented on Apr 12, 2019

    @Tyriar
    Contributor

    Does this crash for you reliably? I haven't been able to reproduce at all personally.

  3. added
    freeze-slow-crash-leak
    terminal
    info-needed
    windows
    on Apr 12, 2019
  4. added this to the Backlog milestone on Apr 12, 2019
  5. kaleidawave commented on Apr 14, 2019

    @kaleidawave
    Author

    Can confirm this is now quite frequent. It may be associated with using the keybind to close the integrated terminal. I think it has happens when you go to close it after it has first launched up with the terminal already open.

  6. Tyriar commented on Apr 14, 2019

    @Tyriar
    Contributor

    What's the build number of Windows 10? Is your repro just open and close the terminal?

    Could you also share your settings.json file?

  7. kaleidawave commented on Apr 14, 2019

    @kaleidawave
    Author

    Windows 10 Home: 17134.706
    So yeah it seems to crash if you close the terminal from when it first launched up.

    {
        "window.zoomLevel": 0,
        "git.ignoreMissingGitWarning": true,
        "breadcrumbs.enabled": true,
        "workbench.sideBar.location": "right",
        "html.format.wrapLineLength": 0,
        "window.restoreWindows": "all",
        "workbench.startupEditor": "none",
        "editor.minimap.enabled": false,
        "search.usePCRE2": true,
        "csharp.referencesCodeLens.enabled": false,
        "explorer.confirmDragAndDrop": false,
        "git.enableSmartCommit": true,
        "explorer.confirmDelete": false,
        "terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe",
        "git.confirmSync": false,
        "terminal.integrated.rendererType": "dom",
        "javascript.suggest.completeFunctionCalls": true,
        "editor.autoClosingBrackets": "beforeWhitespace",
        "javascript.updateImportsOnFileMove.enabled": "always",
        "git.autorefresh": false,
        "terminal.integrated.cursorStyle": "line",
        "terminal.integrated.windowsEnableConpty": false,
        "workbench.iconTheme": "material-icon-theme"
    }
    

    The line terminal.integrated.windowsEnableConpty": false, was added after the crashes appeared from a thread on a similar issue but has not affected the random crashes. This has only happened recently (~last 3 weeks)

  8. lvanvugt commented on Apr 15, 2019

    @lvanvugt

    Having the same issue, but only when my VScode workspace contains .ps1 sources. It is annoying, cause as long as the sources are part of the workspace the error is thrown when starting up VSCode. After removong the sources form the workspace VSCode can startup normally.

    Once VSCode opened normally the sources can be placed again in the workspace.

    VSCode version 1.33.1

  9. JulianTillmann commented on May 29, 2019

    @JulianTillmann

    I have the same issue as Luc van Vugt (@lvanvugt)

    I see that him and me are both NAV (Dynamics 365 Business Central) Partners, so I'm guessing he's using the same extensions as me

    the PowerShell guys already sent me here

  10. JulianTillmann commented on May 29, 2019

    @JulianTillmann

    By the way, the insiders version has the same issue
    image

  11. lvanvugt commented on May 29, 2019

    @lvanvugt

    Now on VSCode 1.34.0 it's not bothering me anymore, even though the issue occured once.

  12. JulianTillmann commented on May 29, 2019

    @JulianTillmann

    I'm also on VCode 1.30.0, but I've had the Problem 5 times today.

  13. Tyriar commented on Oct 9, 2019

    @Tyriar
    Contributor

    This looks like an issue with our old terminal backend "winpty", going forward we are focusing our efforts on the new backend "conpty" which is build by the Console team at Microsoft and should fix many issues with the terminal under Windows. You can read more about getting ConPTY here.

    /duplicate #45693

  14. added
    *duplicate
    on Oct 9, 2019
  15. locked and limited conversation to collaborators on Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatefreeze-slow-crash-leakinfo-neededterminalwindows

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions