Skip to content

Windows Terminal v1.1.2233.0 disappears leaving all processes intact #7345

Closed

Description

@qm2k

Environment

Windows build number: 10.0.19041.0
Windows Terminal version (if applicable): 1.1.2233.0

Any other software?

I'm using git bash as shell, but I don't think it's relevant.

Steps to reproduce

Keep Windows Terminal started for days with multiple tabs and some processes running inside (e.g. normal use mode).

Expected behavior

Windows Terminal not disappearing. As a workaround (since the problem may recur), if it closes it allows me to access all of my earlier started processes again after I restart the app.

Actual behavior

Windows Terminal disappears at some time while I'm not using my computer, leaving all started processes intact. When I relaunch it the Task Manager shows my previously started processes (immediate siblings only, not processes started from these processes) under the newly opened window, but the window itself only shows one default tab:
image
image

The symptoms are exactly repeating those described in #3253 that was supposed to be fixed in v0.7.3291.0

Activity

  1. ghost added
    Needs-Triage
    on Aug 19, 2020
  2. ghost added
    Needs-Tag-Fix
    on Aug 19, 2020
  3. zadjii-msft commented on Aug 19, 2020

    @zadjii-msft
    Member

    Well that's definitely unexpected. Especially the fact that Task manager can figure out that those child processes should be re-parented to the Windows Terminal package - if the original process were truly killed and cleaned up, then you'd imagine that there'd be no way of determining that.

    Does this always take multiple days to reproduce? Or is there something that you can do to trigger this behavior on demand?

  4. added
    Needs-Author-Feedback
    Product-Terminal
    Severity-Crash
    on Aug 19, 2020
  5. qm2k commented on Aug 20, 2020

    @qm2k
    Author

    Does this always take multiple days to reproduce? Or is there something that you can do to trigger this behavior on demand?

    It happened twice already. I found both corresponding windows log events. Previous time was 30/07/2020 04:27:26 and I was definitely not present at the computer. Yesterday it happened on 09:25 and I might have been present but I don't remember anything unusual (I'm using multiple desktops so it took me some time to notice that the terminal window missing). According to logs there was no windows update at the time, and automatic suspend on mains power was disabled (and I definitely did not wake the computer up, only unlocked the screen).

    Here's the last event (also .xml and .evtx):

    Logged: 19/08/2020 09:25:13
    The program WindowsTerminal.exe version 1.1.2007.20001 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Security and Maintenance control panel.
    Process ID: 52ec
    Start Time: 01d6724a7dc40bd8
    Termination Time: 4294967295
    Application Path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.1.2021.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
    Report Id: 8a097a96-a30a-4804-b26e-61e690adf68a
    Faulting package full name: Microsoft.WindowsTerminal_1.1.2021.0_x64__8wekyb3d8bbwe
    Faulting package-relative application ID: App
    Hang type: Quiesce

  6. ghost added
    Needs-Attention
    on Aug 20, 2020
  7. ghost removed
    Needs-Author-Feedback
    on Aug 20, 2020
  8. qm2k commented on Aug 20, 2020

    @qm2k
    Author

    Just noticed that versions in the version I'm currently running (1.1.2233.0, also latest in Microsoft Store) and the version in the event viewer do not match. Also found the following events from WindowsUpdateClient:

    Logged: 19/08/2020 09:24:30
    Installation Started: Windows has started installing the following update: 9N0DX20HK701-Microsoft.WindowsTerminal

    Logged: 19/08/2020 09:25:14
    Installation Successful: Windows successfully installed the following update: 9N0DX20HK701-Microsoft.WindowsTerminal

    There was no system update, but apparently an app update happend sometime around the crash. Looks highly suspicious.

  9. DHowett commented on Aug 20, 2020

    @DHowett
    Member

    We've seen an uptick in these issues very recently--about 7 days since we released the last update. I'm starting to become convinced that this is because of the update (and not the other way around.) Thanks for the info above ^

    I had a colleague help me look at dumps from these hangs, and it looks like they happen predominantly when the "do you want to close all tabs?" dialog is open.

    Here's my theory:

    1. The store decides there's been an update available for long enough
    2. It asks Terminal to exit nicely
    3. Terminal resists, and says "i've got tabs open -- at least let the user confirm it"
    4. With or without an answer, this looks like Terminal is another intransigent application that needs to be put down, and so it gets terminated and blamed for "hanging".

    This is a place where the platform treats us like a "store-managed" application, where we're really not.

    I'm tentatively closing this as a /duplicate of #6726. Thanks for following up 😄

  10. ghost closed this as completedon Aug 20, 2020
  11. ghost removed
    Needs-Triage
    on Aug 20, 2020
  12. ghost added
    Resolution-Duplicate
    on Aug 20, 2020
  13. ghost removed
    Needs-Tag-Fix
    on Aug 20, 2020
  14. ghost removed
    Needs-Attention
    on Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Product-TerminalResolution-DuplicateSeverity-Crash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions