Skip to content

Closing a conpty terminal can hang the window #76548

Closed

Description

@Tyriar

Activity

  1. added
    bug
    upstream
    freeze-slow-crash-leak
    terminal
    windows
    terminal-conpty
    on Jul 3, 2019
  2. added this to the Backlog milestone on Jul 3, 2019
  3. Tyriar commented on Jul 4, 2019

    @Tyriar
    ContributorAuthor

    This is causing integration tests to fail under conpty #75689

  4. Tyriar commented on Jul 27, 2019

    @Tyriar
    ContributorAuthor

    Console team's issue: microsoft/terminal#1810

  5. Tyriar commented on Aug 8, 2019

    @Tyriar
    ContributorAuthor

    Alex Ross (@alexr00) this is caused by inherit cursor position which was a fix for terminals that have already been written to before the process launches (just tasks). We have 2 options to workaround the crashes:

    • Only enable the flag for ter minals that have already been written to, we don't need to pass around as I just need to know if TerminalInstance.write was called. There's still a chance of a crash but it should rarely happen as the most common repro is creating a bunch of terminals and killing them immediately.
    • Disable the flag completely and move tasks to winpty again.
  6. alexr00 commented on Aug 8, 2019

    @alexr00
    Member

    Option 1. Conpty is the way of the future and I'd rather we keep finding new bugs there than seeing the same old winpty bugs.

  7. Tyriar commented on Aug 8, 2019

    @Tyriar
    ContributorAuthor

    I'm going to call this fixed in August with this workaround, while a hang likely can still occur it should be very tough to reproduce just with tasks. If people are hitting it they can avoid using the flag completely by configuring the task to not show the intro line and not reuse terminals.

  8. Tyriar commented on Aug 16, 2019

    @Tyriar
    ContributorAuthor
  9. usernamehw commented on Sep 22, 2019

    @usernamehw
    Contributor

    The upstream issue microsoft/terminal#1810 (comment) was fixed. Will the fix be included in 1.39 or does it depend on Windows update?

  10. Tyriar commented on Sep 23, 2019

    @Tyriar
    ContributorAuthor

    Alexander (@usernamehw) depends on a Windows update and the fix is too complicated to backport.

  11. Tyriar commented on Oct 9, 2019

    @Tyriar
    ContributorAuthor

    Fixed upstream, closing. You may see this until updating to Windows >1903, other windows crashes tracked in #71966

  12. locked and limited conversation to collaborators on Nov 25, 2019
  13. Tyriar commented on Mar 3, 2021

    @Tyriar
    ContributorAuthor

    Not sure why I reopened this, see #71966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugfreeze-slow-crash-leakterminalterminal-conptyupstreamwindows

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions