mirror of
https://github.com/microsoft/terminal.git
synced 2026-07-08 18:16:28 +00:00
Terminal hangs when opening new windows or new tabs on Windows Server 2022 #15075
Closed
opened 2026-01-31 04:27:42 +00:00 by claunia
·
75 comments
No Branch/Tag Specified
main
dev/cazamor/patch/1.25/action-name
dev/cazamor/sui-rejuv/actions
dev/cazamor/sui-rejuv/expander-groups
user/migrie/per-window-prequel
dev/cazamor/bugfix/export-text-enter
dev/cazamor/bugfix/refresh-hyperlink-hover
dev/cazamor/sui-rejuv/profiles
dev/cazamor/selfhost/2026-06-18
dev/cazamor/sui-rejuv/profile-rejuv
dev/duhowett/onebranch-terrapin
dev/migrie/per-window-final
dev/cazamor/sui-rejuv/setting-container
dev/cazamor/toast/activity
dev/migrie/f/new-profile-subcommand
dev/cazamor/sui-rejuv/profiles-v2
dev/duhowett/asan-for-all
dev/cazamor/sui-rejuv/profiles-new
dev/cazamor/sui-rejuv/expander-groups-new
dev/cazamor/auto-save/refresh-settings
release-1.24
release-1.25
feature/llm
dev/cazamor/auto-save/model/json-manager
dev/migrie/overview-for-pr
dev/cazamor/auto-save/settings-model
dev/migrie/s/snippet-params
users/merlinbot/1es-pt-auto-baselining-pr
niels9001/inactive-tab-foreground
dev/cazamor/selfhost/2026-05-20-home
dev/duhowett/fzf-vcxproj
dev/cazamor/selfhost/2026-05-20
dev/cazamor/selfhost/2026-05-19
dev/cazamor/selfhost/2026-05-18
niels9001/fontweight-fixes
niels9001/page-transitions
dev/duhowett/fhl-2026/rewrite-paste-and-dragdrop-handling-writeinputstring
dev/duhowett/fhl-2026/remove-paste-hairpin-handler
dev/migrie/f/overview-view
dev/cazamor/selfhost/2026-05-13
dev/cazamor/selfhost/2026-05-13-sui
dev/yeelam/f/BuildTest
dev/duhowett/hax/our-own-tabview
dev/cazamor/bugfix/close-scratchpad
dev/cazamor/selfhost/2026-05-05
dev/cazamor/selfhost/2026-05-04-workspaces
dev/cazamor/selfhost/2026-05-04
dev/duhowett/win7-wpf-termcontrol-squash
dev/lhecker/20149-hotfix
dev/lhecker/osc-7-wsl
dev/lhecker/19977-kkp-altgr
dev/migrie/workspaces-real
dev/migrie/fhl-spring-2026/quake-4
dev/lhecker/pwsh-5.1
dev/cazamor/sui/dropdown-page
dev/cazamor/selfhost/2026-04-08
dev/cazamor/selfhost/2026-04-06
dev/migrie/fhl-spring-2026/confirmCloseOn
dev/cazamor/confirmCloseOn/dont-ask-me-again
dev/lhecker/inproc-conpty
dev/duhowett/powershell-module-supercharger
dev/cazamor/a11y/vt-seq-prototype
dev/migrie/fhl-spring26/osc777-2
dev/migrie/fhl-spring26/2/notification-infrastructure
dev/migrie/fhl-spring-2026/side-tabs
dev/cazamor/copilot/playground
dev/migrie/fhl-spring-2026/quake-3.5
dev/migrie/fhl-spring26/osc777
dev/migrie/fhl-spring26/unpackaged-notify
dev/migrie/fhl-spring26/bellStyle-notification
dev/migrie/fhl-spring26/activity-notifications
dev/migrie/fhl-spring-2026/x-open
dev/migrie/fhl-spring-2026/quake-5
dev/migrie/fhl-spring26/nextTab-filter
dev/duhowett/atlas-draw-d2d-dots-curlies-consistently
dev/lhecker/14165-conhost-font-size
dev/lhecker/ottosson-by-default
dev/duhowett/hax/unix-pty
dev/duhowett/hax/cmake
dev/lhecker/generate-256-colors
dev/lhecker/dcs-perf
dev/lhecker/1410-large-scrollback
dev/cazamor/selfhost/2026-02-10
dev/lhecker/11509-kitty-keyboard-protocol-wip
dev/cazamor/selfhost/2026-01-29
dev/lhecker/benchcat-fix
dev/duhowett/eoy-25/allow-set-foreground
release-1.23
dev/cazamor/bot/deprecate-area-atlasengine
dev/cazamor/selfhost/2026-01-20
dev/cazamor/selfhost/2026-01-12
dev/cazamor/spec/auto-save
dev/duhowett/fhl-2024/asciicast-recorder
dev/duhowett/eoy-25/underline-colors-in-atlas-bug
dev/duhowett/hax/serial-port-support
dev/duhowett/connection-utf8
dev/lhecker/fused-event
dev/lhecker/18928-wip
dev/duhowett/fhl-2024/clang
dev/duhowett/vt-cache-changes
dev/cazamor/uia-leak
release-1.22
dev/cazamor/selfhost/11-18-v3
dev/cazamor/selfhost/11-18
dev/duhowett/fhl-2025/bitmap-fonts
dev/duhowett/server-2025-vms
dev/duhowett/cant-believe-gotta-do-this-shit
dev/lhecker/dark-mode
dev/cazamor/sui/invert-cursor-color
dev/duhowett/fhl-2025/wt-command-palette-cmdpal-integration
dev/duhowett/fhl-2025/wt-json-relative-icons
dev/lhecker/fucking-service-locator
dev/duhowett/unicode-17
dev/duhowett/multi-blern
dev/lhecker/wellp2-alt
dev/duhowett/wellp2
dev/lhecker/1860-horizontal-scrollbar
dev/lhecker/fix-window-count
dev/cazamor/sui/tab-color-old
dev/duhowett/hax/conhost-icon
dev/duhowett/hax/sui-color-chip-border
dev/duhowett/hax/terminalsettings-as-a-lib-/with-types-merged-into-tsm
dev/pabhoj/page_control_input_cleanup
dev/duhowett/padding-in-atlas-rebase-20250729
dev/lhecker/attach-thread-input
dev/duhowett/portable-shader-members
msbuildcache-reenable
dev/cazamor/selfhost/1.24-2025-06-10
dev/cazamor/upgrade-settings-containers
dev/cazamor/sui/ext-page/powershell-stub
dev/cazamor/selfhost/1.24-2025-05-15
dev/pabhoj/sui_action_overhaul
dev/cazamor/selfhost/1.24-2025-05-06
dev/cazamor/selfhost/1.24-2025-04-29
dev/cazamor/sui/ext-page/lazy-load-objects
dev/cazamor/sui/ext-page/badge
dev/cazamor/selfhost/1.24
dev/lhecker/sdk-26100
dev/duhowett/testing
dev/jadelaga/VS-Pty.Net-1.22
dev/duhowett/fhl-2025/what-if-no-content-ids
dev/lhecker/18584-part2
dev/lhecker/get-lang-id
dev/duhowett/hax/clogs
release-1.21
dev/pabhoj/featurellm_fix_paste
dev/lhecker/grapheme-backup
dev/jadelaga/VS-Pty.netFixes
dev/lhecker/atlas-engine-compute-shader
dev/migrie/s/ai-providers
dev/lhecker/animated-cursor-wip
dev/pabhoj/featurellm_timeout
dev/lhecker/dark-mode-alt
dev/duhowett/osc-strided-table
dev/lhecker/bugbash
dev/pabhoj/featurellm_improve_parsing
dev/duhowett/coast-to-coast
dev/lhecker/curly-improvements
dev/duhowett/net8
dev/duhowett/onebranch-custom-pool
dev/lhecker/renderer-overhaul-2nd-attempt
dev/lhecker/cleanup
dev/cazamor/sui/confirmation-announcements
dev/lhecker/theme-quality
dev/lhecker/winconpty-cleanup
dev/duhowett/learn/rewrite-highlights
dev/migrie/b/no-nesting-when-searching
release-1.20
dev/duhowett/sel-2-spans
dev/lhecker/7118-cursor-color
dev/lhecker/remove-glyph-width
dev/lhecker/igfw-scroll-region
dev/lhecker/17656-win32im-double-encoding
dev/duhowett/fhl-2024/merge-idls
dev/duhowett/feed-forward-variables
dev/lhecker/remove-chrome-math
dev/duhowett/copylink
dev/duhowett/applicableactions
gh-readonly-queue/main/pr-17566-de50310295b7d92ed3d51f07974a2a945776bf9d
dev/lhecker/atlas-engine-stride-copy
dev/migrie/b/bump-nuget-in-c
dev/migrie/f/992-redux-redux
dev/migrie/f/filter-weight-input-too
dev/migrie/f/disable-nesting
dev/migrie/f/local-snippets-cleaner
dev/migrie/s/1553-mouse-bindings
selfhost-1.22-bugbash-2024-06-04
selfhost/1.22-bugbash-2024-06-04
dev/lhecker/15689-tab-drag-crash-fix
dev/migrie/f/sxnui-font-size-change
dev/migrie/f/local-snippets-on-action-refactor
dev/migrie/f/just-local-snippets
dev/migrie/save-input-patches
dev/migrie/f/md-pane-official
dev/migrie/base-pane
dev/migrie/fhl/tasks-pane
release-1.19
dev/migrie/b/17130-clear-marks-2
dev/migrie/b/17075-its-me-the-killer
dev/duhowett/i-figured-out-why-sometimes-the-publish-build-failed
dev/duhowett/nuget-publication-with-aad-app-id
selfhost-1.20
dev/duhowett/graph
dev/migrie/b/15803-activate-dont-copypasta
dev/duhowett/is-pgo-broken-because-of-sui-being-slower
dev/migrie/b/remove-terminaltab
dev/migrie/fhl/md-pane
dev/migrie/fhl/local-tasks-2024
dev/migrie/fhl/2024-inline-notebook
dev/duhowett/interface-projects
dev/duhowett/dead-loc
release-1.18
dev/migrie/fhl/2024-spring-merge-base
dev/duhowett/hax/l9
inbox
dev/migrie/14073-on-main
dev/duhowett/hax/conhost_dump_replay
user/lhecker/atlas-engine-srgb
dev/migrie/fhl/sxnui-tooltips-3
dev/migrie/7718-notifications-experiments
dev/migrie/fhl/7718-notifications
dev/migrie/fhl/7718-notifications-reboot
dev/lhecker/remove-gsl
dev/lhecker/16575-TerminateProcess
dev/lhecker/window-thread-climate-control
dev/lhecker/client-context-input-output-mode
dev/lhecker/ring-buffer-input-buffer
release-1.17
dev/lhecker/propsheet-fontdlg-refactor
dev/lhecker/renderer-overhaul
dev/pabhoj/test
dev/duhowett/chop
dev/lhecker/til-ulong-cleanup
dev/lhecker/til-env-cleanup
dev/migrie/f/16005-a11y-pane
dev/cazamor/a11y/fastpass
dev/migrie/b/15487-push-cwd
dev/migrie/b/15536-or-15219-idk
dev/duhowett/move-timers-down-into-core-interactivity-etc
dev/migrie/b/15812-broadcast-paste-two
dev/migrie/fhl-fall-2023/11162-quake-III-arena
dev/migrie/fhl-fall-2023/1620-automatic-tab-progress
dev/migrie/fhl-fall-2023/9992-quake-II
dev/migrie/fhl-fall-2023/9992-default-quake-settings
dev/migrie/fhl-fall-2023/9992-window-name-settings
dev/migrie/fhl-fall-2023/oceans
dev/lhecker/ColorScheme-improvements
dev/migrie/search-v2-v3
dev/migrie/pr-15717/its-dangerous-to-go-alone
dev/migrie/f/4768-taskbar-icons
dev/duhowett/padding-in-atlas
dev/migrie/f/3121-tooltips
dev/duhowett/sticky-control
dev/duhowett/fix-tracing-2
dev/migrie/b/add-support-for-vsc-marks
dev/migrie/f/1860-this-is-literally-what-less-is-for
dev/migrie/s/5916-draft
dev/lhecker/tracy
dev/migrie/s/north-star
dev/cazamor/tag-youre-it
dev/migrie/f/12336-let-it-mellow
dev/migrie/f/now-with-more-compat-settings
dev/migrie/f/compatibility-sui
dev/duhowett/hax/wpf-atlas
dev/duhowett/fgb
dev/migrie/b/15487-relative-paths-are-hard
dev/lhecker/colrv1
loc-update
dev/migrie/fhl/dyndep-csharp
dev/migrie/fhl/dyndep
dev/migrie/fhl-clickable-send-input
dev/migrie/f/cwd-hijinks-5506-15173
dev/lhecker/openconsole-async-start
1.17
dev/migrie/bump-scratch
dev/migrie/f/3726-restartConnection
dev/migrie/b/cxn-restarting-attempt-1-backport
dev/migrie/b/9053-part-3-the-actual-doing-of-the-thing
dev/migrie/b/13388-focus-logger
dev/migrie/b/9053-part-4-i-guess-defterm
dev/migrie/oop/3/of-the-silmarils
of-the-darkening-of-valinor
dev/migrie/fhl/notebook-proto-000
dev/migrie/f/narrator-buddy
dev/migrie/mux-2.8.2-march-2023
dev/migrie/f/roast-mutton
dev/migrie/f/12861-preview-input
dev/lhecker/clang-tidy
dev/migrie/f/3121-wE-dOnT-hAvE-dEv-DaYs
dev/duhowett/compiler-compliance
dev/duhowett/i-have-a-burning-hatred-for-ntstatus-of-later-so-why-not-fix-it
dev/duhowett/shorthand-namespaces
dev/duhowett/rename-all-dlls
dev/duhowett/errordialog
dev/lhecker/gsl-narrow
dev/migrie/b/11522-dumb-idea
release-1.16
dev/miniksa/env
dev/duhowett/hax/embed-everything
dev/migrie/b/13388-attempt-003
dev/migrie/b/14512-test-research
dev/migrie/b/13388-attempt-002
dev/migrie/b/14464-copyOnSelect-moving-text
dev/migrie/s/thema-schema-for-1.16
dev/migrie/s/theme-pair-schema
dev/migrie/b/13388-experiments-1
dev/cazamor/spec/a11y-vt-seq
dev/migrie/b/14557-empty-folder-dropdown
dev/cazamor/spec/a11y-vt-seq-v2
release-1.15
dev/migrie/f/process-model-v3-test-0
dev/lhecker/vsconfig
dev/migrie/s/5000-presentation
dev/lhecker/5907-startup-perf
dev/lhecker/winrt-file-api-benchmark
dev/duhowett/128-bit-compiler
dev/duhowett/hax/arm64-native-build
dev/migrie/fhl/more-shell-integration
dev/migrie/b/13388-experiments-0
dev/lhecker/til-to-ulong-improvements
dev/migrie/s/markdown-notebooks
dev/cazamor/a11y/nav-by-page
dev/cazamor/a11y/system-menu-support
dev/duhowett/no-private-registry-keys
dev/cazamor/wpf/uia-expose-enable-events
dev/cazamor/wpf/uia-events
extendAISpec
dev/migrie/fhl/clickSendInput
dev/migrie/fhl/save-command
dev/migrie/b/theme.profile
dev/migrie/b/13943-a-test-for-this
dev/migrie/oop/2/endgame
dev/duhowett/hax/merge_idl
dev/migrie/oop/2/infinity-war
dev/migrie/spellbot-cve
dev/cazamor/a11y-sev3/new-profile-announcement
dev/migrie/fhl/upside-down-mode
release-1.14
dev/migrie/f/9458-startupInfoToTerminal
dev/migrie/fhl/5916-triggers
dev/migrie/b/13523-context-menu
dev/migrie/b/6523-endpaint-outside-lock
dev/migrie/b/12413-OnUnhandledException
dev/lhecker/render-snapshot
dev/cazamor/1.15/scroll-to-point
dev/migrie/mux-2.8-aug-2022
dev/lhecker/lock-console-guard
dev/migrie/f/1504-final
dev/pabhoj/sui_follow_ups
dev/migrie/f/til-winrt.h
dev/cazamor/color-picker-redesign
dev/migrie/fhl/vscode-autocomplete-prototype
dev/migrie/f/1504-prototype
dev/migrie/oop/2/loki
dev/migrie/oop/2/wandavision
dev/migrie/b/8698-YOURE-OUT-OF-ORDER
fabricbot-configuration-migration
dev/migrie/b/12788-did-it-work
dev/migrie/b/localtests-ci-2022
dev/cazamor/1.14/replace-compareInBounds
dev/pabhoj/preview_string
dev/cazamor/ks/switchSelectionEndpoint
dev/migrie/oop/2/COM-ISwapChainProvider-attempt-1
dev/migrie/b/dxd-marker
release-1.13
dev/migrie/b/13066-for-defterm
dev/cazamor/revert-dwm
dev/migrie/b/13066-sw_flash_repeatedly
dev/migrie/b/no-cloaky-cloak
dev/migrie/f/apples-to-oranges
dev/migrie/f/no-custom-caption-btns
dev/migrie/f/10509-mica-and-transparent-titlebars
dev/migrie/b/12911-wpf-focus-fg
dev/migrie/titebar-colors
dev/lhecker/4015-cursor
dev/migrie/fhl/rgb-rainbow-window-frame
dev/migrie/fhl/scroll-marks-prototype
release-1.12
dev/miniksa/compliance
dev/migrie/f/default-icons
dev/migrie/fhl/10175-web-search-for-text
dev/migrie/fhl/menu-complete-prototype
dev/migrie/b/2988-merged-prototypes
dev/migrie/b/2988-niksa-msgs-prototype
dev/migrie/fhl/9583-colorSelection
dev/migrie/b/10609-sui-leak
dev/migrie/b/32-attempt-3
dev/migrie/release-1.12-rejuv-attempt-2
dev/migrie/demo-for-presentation
dev/migrie/b/32-but-im-here-for-12567
dev/duhowett/conpty_first_frame_blug
dev/migrie/b/11092-unfocused-acrylic-settings
dev/migrie/localtests-in-ci
dev/migrie/b/12356-attempt-2
dev/migrie/b/12353-with-null
dev/migrie/b/12387-trim-spaces
dev/migrie/b/5033-bad-start
dev/lhecker/12351-broken-locales
dev/migrie/b/8663-input-to-oem-crash
dev/migrie/b/11743-win10-opacity-is-hard
dev/migrie/f/ctrl-click-elevate
dev/migrie/b/12196-shim-localization
dev/lhecker/issue-4015-til-rect
dev/cazamor/eim/mvvm
dev/migrie/f/--elevate
dev/migrie/b/11668-i-think
dev/migrie/b/11994-wsl-mangline
dev/migrie/eim/3475-action-xmacros
dev/migrie/eim/incremental-build-000
dev/cazamor/a11y/fake-uia-data
dev/migrie/f/non-terminal-content-elevation-warning
dev/migrie/f/632-on-warning-dialog
dev/lhecker/rgba
dev/migrie/b/8480-keybindings-in-tabs
release-1.11
dev/migrie/b/11561-dead-ends
dev/migrie/oct-21-roadmap-update
dev/migrie/fhl/adaptive-card-extension
dev/cazamor/test/11440
dev/migrie/f/warning-dlg-automation
dev/migrie/b/1.12-crash-on-exit
dev/migrie/b/11146-next-tab-in-cmdpal
release-1.10
dev/migrie/5ff9a24-and-75e2b5f
dev/duhowtt/hax/cpal-jumplist-async
dev/lelian/actionid/1
dev/migrie/f/just-elevated-state
dev/lhecker/terminal-settings-cleanup
dev/migrie/gh-10824
dev/pabhoj/cursor_light
dev/migrie/oop/wandavision
dev/migrie/oop/endgame
dev/migrie/oop/infinity-war
dev/lhecker/app-state-actually-hidden
dev/migrie/b/6160-dynamic-default-warning
dev/mgirie/b/more-nchhittest-ideas
dev/migrie/b/9320-interfacial-separation
cinnamon/fhl/find-contextmenu
dev/lhecker/wsl-distro-generator-cleanup
dev/migrie/b/10875-but-more-clever
dev/migrie/b/broken-globalsummon-overloading
dev/duhowett/hax/rle-row
dev/migrie/fhl-2021/cmdpal-select-list
dev/migrie/fhl-2021/differential-pixel-shading
dev/duhowett/hax/no-writable-glyphat
dev/migrie/fhl-2021/more-shader-variables
dev/migrie/titlebar-shenannigans
dev/miniksa/win10_font_matching
dev/lhecker/conhost-oom
dev/migrie/b/10332-less-snappy-scrolling
dev/migrie/b/7422-1px-top-border
release-1.9
dev/cazamor/move-scratch
release-1.8
dev/miniksa/manifest_2
release-1.6
release-1.7
dev/migrie/oop/the-whole-thing
dev/migrie/oop/connection-factory
dev/migrie/f/quake-dropdown-2
dev/miniksa/rle2
dev/migrie/f/quake-toCurrent-experiments-2
dev/migrie/f/quake-toCurrent-experiments
dev/migrie/f/quake-dropdown
dev/cazamor/actions-page/template
dev/duhowett/hax/cursor_stamp_foreground_background
dev/migrie/f/1860-hey-might-was-well-hack-during-a-hackathon
dev/migrie/oop-terminal.control-split-control
dev/duhowett/hax/build-with-wholearchive
dev/cazamor/spec/tsm-actions-temp
dev/migrie/oop-tear-apart-control
dev/migrie/oop-scratch-3
dev/cazamor/sui/bugfix-reload-crash
dev/migrie/f/xmacro
dev/cazamor/sui/proto/profile-nav-view
dev/migrie/f/name-windows
dev/migrie/dol/messing-with-shaders-take-1
release-1.5
dev/cazamor/sui/inheritance-hyperlinks-test
dev/migrie/r/commandline-lib-002
dev/migrie/f/com.fabrikam.toaster
dev/cazamor/adaptive-cards-prototype
dev/migrie/f/commandline-lib
dev/miniksa/zipzoom2
dev/migrie/f/remote-commandlines
dev/migrie/f/632-elevated-profiles
dev/migrie/oop-broker-000
dev/migrie/fix-pr-7015
dev/duhowett/clang
dev/miniksa/input_tests_2
dev/miniksa/input2
dev/migrie/oop-rpc-000
release-1.4
dev/migrie/oop-mixed-elevation-1
dev/migrie/oop-window-content-1
cinnamon/open-json
dev/miniksa/input_tests
dev/duhowett/hax/tsm-graphviz
dev/miniksa/input
dev/duhowett/hax/caption_buttons
release-1.3
dev/cazamor/a11y/expand-line-under-viewport
dev/cazamor/acc/ch/word-nav-perf
dev/cazamor/spec/settings-ui-architecture-draft
dev/duhowett/hax/tap_upgrade
dev/migrie/f/pane-exit-animation
release-1.2
dev/migrie/move-lib-up-and-dll-down
release-1.1
dev/migrie/f/branch-2-backup
dev/migrie/f/settings-getters-only
dev/duhowett/hax/command_palette_search
dev/migrie/f/6856-let-terminalpage-expandcommands
dev/migrie/f/theming-2020
dev/migrie/oop-scratch-4
dev/duhowett/hax/punchout
dev/migrie/s/action-ids
dev/migrie/f/lets-just-generate-these
dev/migrie/oop-scratch-2
dev/miniksa/dcomp
dev/miniksa/gotta_go_fast_spsc
dev/miniksa/gotta_go_fast
dev/miniksa/perf_skip_checks
dev/miniksa/perf_buffer_dig
dev/migrie/s/1203-cursorTextColor
dev/migrie/f/fix-intellisense-i-guess-backup
release-1.0
dev/migrie/f/execute-commandlines
dev/migrie/f/2046-Command-Palette-v2
dev/migrie/b/6421-passthrough-alt
dev/migrie/b/moving-focus-is-hard
dev/miniksa/set
dev/migrie/f/1203-phase-1
dev/migrie/f/get-localtests-in-ci
dev/cazamor/drag-panes
dev/cazamor/tile-background
release-0.11
dev/duhowett/dev/duhowett/hax/appstate_remember
dev/duhowett/hax/wpf_win_8_hax
dev/migrie/b/3088-weird-exact-wrap-resize
release-0.10
dev/migrie/b/4591-custom-scaling-bug
dev/duhowett/hax/attr_smuggling
dev/migrie/b/5161-mingw-vim-fix
dev/miniksa/dx_bitmap
dev/migrie/b/1503-try-messing-with-cooked-read
dev/duhowett/eyebeam
dev/migrie/b/5113-experiments
dev/duhowett/hax-selection-exclusive
dev/migrie/f/more-vt-renderer-tracing
dev/miniksa/bitmap
dev/duhowett/wprp
dev/miniksa/bitmap-mad-with-power
dev/migrie/f/resize-quirk
dev/migrie/f/reflow-buffer-on-resize-002
wpf-renderer-revert
dev/miniksa/draw
release-0.9
dev/miniksa/tabs-color-fix
dev/miniksa/4309
dev/migrie/f/just-wrapping
dev/migrie/b/3490-try-another-resize-algo
release-0.8
dev/migrie/b/3490-a-simpler-resize
dev/migrie/b/3490-resize-down
dev/miniksa/4254
dev/migrie/f/conpty-wrapped-lines-2
dev/migrie/b/be-better-at-hiding
dev/migrie/f/3327-xaml-theming-proto
dev/miniksa/gardening2
release-0.7
dev/duhowett/conpty-flags
dev/migrie/f/603-vintage-opacity
dev/migrie/PR#3181-comments
dev/duhowett/font-64
release-0.5
dev/migrie/b/663-paste-lf-always
dev/migrie/b/2011-reordered-fallthrough-strings
dev/migrie/b/411-init-tab-stops
dev/migrie/b/json-patching-is-hard
dev/migrie/b/2455-try-getting-tests-working
dev/migrie/b/1223-change-256-table
dev/migrie/f/2171-openterm.cmd
dev/migrie/f/drag-panes
dev/migrie/f/2046-command-palette
release-0.3
dev/miniksa/manager
dev/migrie/f/non-terminal-panes
dev/migrie/f/passthrough-2019
dev/miniksa/shared_pch
dev/migrie/f/1897-less-duplicated-work
release-0.2
dev/cazamor/mcs/viewport-selection
dev/duhowett/version_hack
v1.25.1322.0
v1.24.11321.0
v1.25.1241.0
v1.25.1171.0
v1.25.923.0
v1.24.10921.0
v1.25.622.0
v1.24.10621.0
v1.24.10212.0
v1.23.20211.0
v1.24.3504.0
v1.23.13503.0
v1.24.2812.0
v1.23.12811.0
v1.24.2682.0
v1.23.12681.0
v1.24.2372.0
v1.23.12371.0
v1.23.12102.0
v1.22.12111.0
v1.23.11752.0
v1.22.11751.0
v1.22.11141.0
v1.23.11132.0
v1.23.10732.0
v1.22.10731.0
v1.21.10351.0
v1.22.10352.0
v1.23.10353.0
v1.22.3232.0
v1.21.3231.0
v1.22.2912.0
v1.21.2911.0
v1.22.2702.0
v1.21.2701.0
v1.22.2362.0
v1.21.2361.0
v1.21.1772.0
v1.20.11781.0
v1.21.1382.0
v1.20.11381.0
v1.21.1272.0
v1.20.11271.0
v1.20.11215.0
v1.19.11213.0
v1.20.10822.0
v1.19.10821.0
v1.20.10572.0
v1.19.10573.0
v1.20.10303.0
v1.19.10302.0
v1.18.10301.0
v1.20.10293.0
v1.19.10292.0
v1.18.10291.0
v1.18.3181.0
v1.19.3172.0
v1.19.2831.0
v1.18.2822.0
v1.19.2682.0
v1.18.2681.0
v1.18.1462.0
v1.17.11461.0
v1.18.1421.0
v1.17.11391.0
v1.17.11043.0
v1.16.10261.0
v1.17.1023
v1.16.10231.0
v1.15.3465.0
v1.16.3463.0
v1.15.2712.0
v1.15.2874.0
v1.16.2641.0
v1.16.2523.0
v1.15.2524.0
v1.15.2282.0
v1.14.2281.0
v1.14.1962.0
v1.15.2002.0
v1.15.2001.0
v1.15.1862.0
v1.14.1861.0
v1.14.1451.0
v1.14.1432.0
v1.13.11431.0
v1.13.10983.0
v1.12.10982.0
v1.13.10733.0
v1.12.10732.0
v1.13.10395.0
v1.12.10393.0
v1.13.10336.0
v1.12.10334.0
v1.12.3472.0
v1.11.3471.0
v1.12.2931.0
v1.12.2922.0
v1.11.2921.0
v1.11.2731.0
v1.10.2714.0
v1.11.2421.0
v1.10.2383.0
v1.10.1933.0
v1.9.1942.0
v1.9.1523.0
v1.8.1521.0
v1.9.1445.0
v1.8.1444.0
v1.8.1092.0
v1.7.1091.0
v1.8.1032.0
v1.7.1033.0
v1.7.572.0
v1.6.10571.0
v1.5.10411.0
v1.6.10412.0
v1.6.10272.0
v1.5.10271.0
v1.5.3242.0
v1.4.3243.0
v1.5.3142.0
v1.4.3141.0
v1.4.2652.0
v1.3.2651.0
v1.3.2382.0
v1.2.2381.0
v1.1.2233.0
v1.2.2234.0
v1.1.2021.0
v1.2.2022.0
v1.1.1812.0
v1.0.1811.0
v1.1.1671.0
v1.0.1401.0
v0.11.1333.0
v0.11.1251.0
v0.11.1191.0
v0.11.1111.0
v0.11.1121.0
v0.10.781.0
v0.10.761.0
v0.9.433.0
v0.8.10261.0
v0.8.10091.0
v0.7.3451.0
v0.7.3382.0
v0.7.3291.0
v0.7.3252.0
v0.6.3181.0
v0.6.2951.0
v0.6.2911.0
v0.5.2762.0
v0.5.2761.0
v0.5.2681.0
v0.5.2661.0
v0.3.2321.0
v0.4.2342.0
v0.4.2382.0
v0.3.2171.0
v0.3.2142.0
v0.2.1831.0
v0.2.1715.0
v0.2.1703.0
v0.1.1621.0
v0.1.1581.0
v0.1.1502.0
v0.1.1431.0
v0.1.1361.0
v0.1.1093.0
v0.1.1161.0
v0.1.1204.0
experiment-master
v0.1.1025.0
experiment-OutsideBuild
broken-tabstops
RS2-final
v0.1.1002.0
experiment-rel-windows-inbox
experiment-f-ServerApp
v0.1.1211.0
1904.29002
1810.02002
1708.14008
Labels
Clear labels
⛺ Reserved
A11yCO
A11yMAS
A11ySev1
A11ySev2
A11ySev3
A11yTTValidated
A11yUsable
A11yVoiceAccess
A11yWCAG
Area-Accessibility
Area-AtlasEngine
Area-AzureShell
Area-Build
Area-Build
Area-Chat
Area-CmdPal
Area-CodeHealth
Area-Commandline
Area-CookedRead
Area-DefApp
Area-Extensibility
Area-Fonts
Area-GroupPolicy
Area-i18n
Area-Input
Area-Interaction
Area-Interop
Area-Localization
Area-Output
Area-Performance
Area-Portable
Area-Quality
Area-Remoting
Area-Rendering
Area-Schema
Area-Server
Area-Settings
Area-SettingsUI
Area-ShellExtension
Area-ShellExtension
Area-ShellExtension
Area-Suggestions
Area-Suggestions
Area-TerminalConnection
Area-TerminalControl
Area-Theming
Area-UserInterface
Area-VT
Area-Windowing
Area-WPFControl
AutoMerge
Blocking-Ingestion
Culprit-Centennial
Culprit-WinUI
Disability-All
Disability-Blind
Disability-LowVision
Disability-Mobility
External-Blocked-WinUI3
Fixed
Gathering-Data
good first issue
HCL-E+D
HCL-WindowsTerminal
Help Wanted
Impact-Compatibility
Impact-Compliance
Impact-Correctness
Impact-Visual
In-PR
InclusionBacklog
InclusionBacklog-Windows TerminalWin32
InclusionCommitted-202206
Issue-Bug
Issue-Docs
Issue-Feature
Issue-Feature
Issue-Question
Issue-Samples
Issue-Scenario
Issue-Task
Needs-Attention
Needs-Author-Feedback
Needs-Bisect
Needs-Discussion
Needs-Repro
Needs-Tag-Fix
Needs-Tag-Fix
Needs-Triage
No-Recent-Activity
Priority-0
Priority-1
Priority-2
Priority-3
Product-Cmd.exe
Product-Colortool
Product-Colortool
Product-Colortool
Product-Conhost
Product-Conpty
Product-Meta
Product-Powershell
Product-Terminal
Product-WSL
pull-request
Resolution-Answered
Resolution-By-Design
Resolution-Duplicate
Resolution-External
Resolution-Fix-Available
Resolution-Fix-Committed
Resolution-No-Repro
Resolution-Won't-Fix
Severity-Blocking
Severity-Crash
Severity-DataLoss
spam
this-will-be-a-breaking-change
Tracking-External
WindowsTerminal_Win32
Work-Item
zAskModeBug
zInbox-Bug
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/terminal#15075
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wkbrd on GitHub (Sep 3, 2021).
Originally assigned to: @carlos-zamora, @miniksa on GitHub.
After installing either Terminal 1.10 or Terminal Preview 1.11 (after its dependencies and winget), opening it the first time (or subsequent times) causes the window to hang indefinitely (the process shows as 'Not Responding' in Task Manager). A similar problem happens when clicking the + to open a new tab.
The problem happens regardless if the default terminal is either Powershell or others (like Command Prompt).
A partial workaround is to launch a second copy of the app while the instance is hung, then use Task Manager to kill the hung app. Once the hung process closes, the application opens as expected. The workaround does not address the new tab problem, but just the initial window opening.
If there is any logging or debug that can be enabled, please let me know.
@zadjii-msft commented on GitHub (Sep 7, 2021):
That quells my fear that it's related to #4472.
What shell are you trying to open in the new tab?
@wkbrd commented on GitHub (Sep 7, 2021):
The default shell on a fresh install (PowerShell). I also changed the default to Command Prompt and it behaved the same.
@frugecn commented on GitHub (Sep 10, 2021):
I'm also seeing it in Windows 10 for Terminal 1.10
@ghost commented on GitHub (Sep 15, 2021):
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
@wkbrd commented on GitHub (Sep 15, 2021):
This is still a problem and I have replied. How does one remove the labels the bot mentions? I do not seem to have that ability.
Now the bot removed the labels but 8 days ago it did not.
@zadjii-msft commented on GitHub (Sep 15, 2021):
Sorry about that, you probably replied in a weird window where the bot was down.
I've honestly got no idea what's going on here - could you grab a dump of the Terminal process while it's in the hung state? You should be able to with Task Manager:

There's not a ton of logging around this scenario, but that's partially because it's not something that's really been problematic in the past.
@wkbrd commented on GitHub (Sep 15, 2021):
@zadjii-msft : How do I transfer the dump file to you securely? I cannot seem to upload .zip files or .dmp files here.
@zadjii-msft commented on GitHub (Sep 15, 2021):
My email is on my github profile, you can send it there ☺️
@wkbrd commented on GitHub (Sep 15, 2021):
@zadjii-msft : The dump file zipped is 76 MB which is larger than my e-mail quota allows. Is there another way to share it with you? I could request a temporary place via my IT organization, but it may take several days for the area to be provisioned.
@negf commented on GitHub (Sep 16, 2021):
I have the same problem. Windows Terminal Preview v1.10.1933.0 works, and Windows Terminal v1.10.2383.0 hangs. I am on Windows 10 (19043.1237).
@wkbrd commented on GitHub (Sep 20, 2021):
@zadjii-msft : What other methods do you have to provide Microsoft the dump file? I am unable to attach it here or send via e-mail?
@zadjii-msft commented on GitHub (Sep 20, 2021):
@wkbrd Honestly, not sure I have a good solution. @DHowett Do we have another way other than email for something like this?
@wkbrd commented on GitHub (Sep 20, 2021):
Perhaps if you have a private OneDrive folder that could be shared with me and then I could upload into it? (And hopefully the upload is not blocked by OneDrive)
@Falco20019 commented on GitHub (Sep 21, 2021):
Similar to #11252 btw.
@wkbrd commented on GitHub (Sep 21, 2021):
@Falco20019 : Yes, this appears similar.
@Sankgreall commented on GitHub (Sep 21, 2021):
#11252 appears to be related to Windows 10, whereas this issue appears to be related to Windows Server. I'm not sure they are duplicates, though #11252 has been marked as a duplicate of this issue now.
@Sankgreall commented on GitHub (Sep 21, 2021):
@zadjii-msft If it helps, I have uploaded a memory dump with Windows Terminal in its hang state and shared it with your email address. You can access it through OneDrive here. https://srminform-my.sharepoint.com/:u:/g/personal/j_jackson_s-rminform_com/EfptE2hZQ2xErdBCGJN967MBjQavxnnXQQx8JtaNyc8_uQ?email=migrie%40microsoft.com&e=9IKHlN
Hope that's okay but let me know if you would like me to host it somewhere else
@wkbrd commented on GitHub (Sep 21, 2021):
Hi @Sankgreall , was your dump from Windows 10 or Server 2022?
@zadjii-msft commented on GitHub (Sep 21, 2021):
main thread
Renderer Thread
0:018> k
Child-SP RetAddr Call Site
00 0000002f
569ffa38 00007ffe5f431a8e ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 211]01 0000002f
569ffa40 00007ffdfe36d0ec KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328]02 0000002f
569ffae0 00007ffe5fab7034 Microsoft_Terminal_Control!Microsoft::Console::Render::RenderThread::_ThreadProc+0x1c [C:\a_work\1\s\src\renderer\base\thread.cpp @ 173]03 0000002f
569ffb10 00007ffe616e2651 kernel32!BaseThreadInitThunk+0x14 [clientcore\base\win32\client\thread.c @ 64]04 0000002f
569ffb40 0000000000000000 ntdll!RtlUserThreadStart+0x21 [minkernel\ntdll\rtlstrt.c @ 1153]some variables on the main thread
Curious, the stack is stuck in
LockForWriting, butdxEnginehas been initialized. Maybe that's just garbage though?_rendererhas one engine, theUiaEnginealready hooked up. That's not terribly surprising, given the other UIA threads that already exist.what did we backport to 1.10.2383 that wasn't in 1.10.1933? The Uia change, #10971 maybe?
@Sankgreall commented on GitHub (Sep 21, 2021):
Windows 10 build 2004
@miniksa commented on GitHub (Sep 21, 2021):
0:000> vertarget
Windows 10 Version 19042 MP (8 procs) Free x64
Product: Server, suite: TerminalServer
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Machine Name:
Debug session time: Tue Sep 21 06:11:55.000 2021 (UTC - 7:00)
System Uptime: 0 days 10:01:57.506
Process Uptime: 0 days 0:00:19.000
Kernel time: 0 days 0:00:00.000
User time: 0 days 0:00:00.000
@Sankgreall... it looks like you're running Server too.
@zadjii-msft commented on GitHub (Sep 21, 2021):
My theory that it's related to OS version is probably wrong since @Falco20019 was seeing this on 1909 as well. I'm really thinking it's the uia change but @miniksa's going to check a Server VM just for sanity
@miniksa commented on GitHub (Sep 21, 2021):
I just want a local repro if possible since the SRWLock doesn't store the thread ID that locked it.
@Sankgreall commented on GitHub (Sep 21, 2021):
I think this is because I am using the multi-session build on Azure, which if I understand correctly borrows a few things from the server builds... All I can say for certain is that this machine was deployed using the image in the public Azure Marketplace called "Windows 10 Enterprise multi-session"
@miniksa commented on GitHub (Sep 21, 2021):
OK so it's not happening for me straight up with a Windows Server 2022 image as either standard user or administrator... trying to think of a different approach...
@miniksa commented on GitHub (Sep 21, 2021):
I tried creating the same Azure image and it didn't repro there either, @Sankgreall. Can you provide any additional information about the parameters you used for that Azure machine and/or screenshots of the marketplace for the options you chose?
@zadjii-msft commented on GitHub (Sep 21, 2021):
Our other theory has to do with some sort of accessibility code, so if any of y'all are using screen readers of any sort (Narrator, NVDA, Accessibility Insights, anything), that might be helpful information as well.
@wkbrd commented on GitHub (Sep 21, 2021):
I do not think I am using any accessibility apps/code on Windows Server 2022.
@Sankgreall commented on GitHub (Sep 21, 2021):
Not to my knowledge. Is there a theory that this error is limited to a recent version. Worth checking it doesn't appear on a particular older version?
Will confirm the exact Windows build tomorrow, just need to consult the ARM template when I'm back in the office.
@Sankgreall commented on GitHub (Sep 21, 2021):
However - actually, we are using this during our build process: https://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool
Just thought that this may disable some accessibility features, in case that's relevant?
@frugecn commented on GitHub (Sep 21, 2021):
Windows 10 19042.1202
Also in Azure, though I don't know any of the details as to how they set it up
No special accessibility settings that I'm aware of.
@zadjii-msft commented on GitHub (Sep 21, 2021):
wait are you running on ARM? That would be an interesting note here
My theory is that this was caused by #10971 (and/or the paired commit for the 1.10 branch), but unless you can build the Terminal from source, there's no way to isolate that commit as the root cause here
@miniksa commented on GitHub (Sep 21, 2021):
@DHowett says "ARM" is "Azure Resource Manager"... a thing to template out Azure deployments. Not the CPU architecture.
@Sankgreall commented on GitHub (Sep 21, 2021):
This is correct, apologies for the confusion
@zadjii-msft commented on GitHub (Sep 21, 2021):
note to self:
the monarch exists, but the peasant is null, and that's just wrong. Maybe I was the murderer after all.
@zadjii-msft commented on GitHub (Sep 21, 2021):
We've got an idea - if you're hitting this, can you try doing the following (in a console window, not a Terminal one)
with Terminal.wprp?
That should get us the
recording.etlthat we can use to look through and try and diagnose what went wrongThough,
e37fd5e546..aec7392e6bdoesn't seem particularly informative...@Sankgreall commented on GitHub (Sep 21, 2021):
Using the file you linked to, but getting the error:
The <Profile> element could not be found in the profile file.Using CMD as Administrator, with working directory set to Desktop where the Terminal.wprp file is located. Any ideas? Am I missing a requirement?
@miniksa commented on GitHub (Sep 21, 2021):
Man... why does everything have to not work like it's supposed to... checking into this.
@zadjii-msft commented on GitHub (Sep 21, 2021):
fbd50af8af/src/Terminal.wprp (L15)🤦 it's the
namenot theidshould work
@zadjii-msft commented on GitHub (Sep 21, 2021):
from an elevated window
what's what I get for baseless conjecture 😖
@miniksa commented on GitHub (Sep 21, 2021):
To be fair, when we do this on corpnet it's 1000% easier with the UI that's a pain in the butt to install from the public hardware toolkit..
@Sankgreall commented on GitHub (Sep 21, 2021):
Haha thanks guys. Ran with the
!Terminal.Verboseflag. @zadjii-msft link shared to your email address, accessible on OneDrive here.@zadjii-msft commented on GitHub (Sep 21, 2021):
The monarch and the peasant look like they're set up correct in the trace, but, we're getting a
E_INVALIDARGfor...xamlRoot? That's weird. I'd think that diff-d9af234d6d might be the cause, butThe last useful message we get is
which implies that the tab should be created, and the TermControl constructed (but not necessarily initialized yet), which {checks notes} is exactly what we could have gathered from the dump 😑
@zadjii-msft commented on GitHub (Sep 21, 2021):
@Sankgreall How exactly are you launching the Terminal? From the Start Menu? From the Taskbar? From the Run Dialog with
wt.exe? Something else? The path that the Terminal started in is... unexpected, but viable. But it sorta implies that the Terminal was launched as a default Terminal invocation forpowershell.exe(in...\Start Menu\Programs\Windows PowerShell)@Sankgreall commented on GitHub (Sep 21, 2021):
Hmm okay. So first of all, I can tell you exactly how I am installing the application, because this is done via a PowerShell script as part of our machine build process. Might be helpful?
In terms of how I'm starting it, well I have defined a start menu config (refer here) and am importing this at build, excerpted below for the start menu:
<start:Tile Size="2x2" Column="0" Row="0" AppUserModelID="Microsoft.WindowsTerminal_8wekyb3d8bbwe!App" />And the Taskbar:
<taskbar:UWA AppUserModelID="Microsoft.WindowsTerminal_8wekyb3d8bbwe!App" />I have just tried:
All result in the same error. For clarity, during testing and generation of the
recording.etlfile, I was starting Windows Terminal through the Taskbar.@frugecn commented on GitHub (Sep 21, 2021):
@zadjii-msft I just sent you mine. I'm also going through DISM to add the application to the machine if that helps narrow it down.
@Sankgreall commented on GitHub (Sep 21, 2021):
I just ran a quick additional test on this (to rule out a conflict/issue with my build process) and created a brand new Windows 10 machine in Azure. Definitely using the Windows 10 Enterprise multi-session 2004 image. Screenshot attached to rule out any doubt.
After deployment, the only thing I did was deploy the app via DISM, as per my above post... And the issue was fully replicable. Went straight to grey screen. So I'm confident this is nothing to do with my build processes now at least!
@miniksa commented on GitHub (Sep 21, 2021):
Which configuration of the image? Given this is a locking problem, it could be a race of some sort and you're picking different tiers of hardware than I am.
It could also be the DISM thing. It is surprising @zadjii-msft and I that two of you are using DISM to install this. We will try that.
@miniksa commented on GitHub (Sep 21, 2021):
Tried DISM on my local Server 2022 VM.... it seems the same. It's gotta be hardware or something I'm still not doing. I did DISM to add it from the administrator account... added a new user... then went and logged in as them. It was in the start menu. I clicked it, it installed, it opened fine.
@Sankgreall commented on GitHub (Sep 21, 2021):
I can't imagine it's hardware. I tested this on a Standard_D8as_v4 machine. That's 8 vCPUs and 32GiB memory. Definitely not a slow or under resourced machine. OS was also on a Premium SSD.
@miniksa commented on GitHub (Sep 21, 2021):
Can you try something for me? Can you just download the APPX onto one of your machines, change the extension to .zip, unzip it, and double click on WindowsTerminal.exe to launch it unpackaged and see if it repros that way also? If it does, we might be able to have you collect a Time Travel trace. Of course, that might also change the timings of it and make it not repro... I'm just throwing ideas at the wall. (Time Travel doesn't work on packaged apps... that's why I ask you to see if it repro's unpackaged.)
I'm also standing up another Azure image at this moment with those HW specifications. Which region? I did South Central US.
@Sankgreall commented on GitHub (Sep 21, 2021):
Okay will give this a go.
UK South region.
@Sankgreall commented on GitHub (Sep 22, 2021):
The issue reproduces using the method you mentioned.
For clarity, just to ensure I did this correctly, I:
@frugecn commented on GitHub (Sep 22, 2021):
same result. I extracted both the msixbundle and the Windows10_PreinstallKit with the same results.
@miniksa commented on GitHub (Sep 22, 2021):
Oooh. That cuts quite a few things out. Thank you! Then it's not the DISM stack or installing-to-a-new-user or user vs machine install or the modern frameworks or anything.
If either of you have time/capability/patience to install WinDbg Preview and attempt to capture the Time Travel Trace and get it to me... I might be able to just have the whole capture/playback of what's going wrong.
I am still furiously trying to reproduce around here too with various hardware and config flags flipped all over the place.
South Central US didn't repro for me... but I did D8s_v4 not D8as_v4. Starting in UK South now.
@Sankgreall commented on GitHub (Sep 22, 2021):
Just doing the trace now. Have I got it right that I can just exit the trace after the application has hung? I get a
.outfile and a.idxfile. Do you need them both?@miniksa commented on GitHub (Sep 22, 2021):
Yes you can exit after it's hung. Yes I need both of the files. Yes they're usually huge. Yes I'm sorry.
@Sankgreall commented on GitHub (Sep 22, 2021):
Do you have an email address so I can share a OneDrive link?
@miniksa commented on GitHub (Sep 22, 2021):
My GH name at the usual suspect corporate domain.
@Sankgreall commented on GitHub (Sep 22, 2021):
Hosted here.
I will note that one of my debug sessions actually spun up the Terminal correctly. I just wasn't thinking and deleted it, but this is also expected behaviour as others have noted if you kill the process manually and start a new console, it sometimes appears to work and bypasses this issue.
@miniksa commented on GitHub (Sep 22, 2021):
Sounds super race condition-y to me. I hope this trace is insightful. Opening now.
@miniksa commented on GitHub (Sep 22, 2021):
Oh my goodness. There is an exception thrown on a thread inside of this trace. We might be onto something! Digging!
@miniksa commented on GitHub (Sep 22, 2021):
This is going to sound really weird. Do you have a touchscreen?
@Sankgreall commented on GitHub (Sep 22, 2021):
Well. Technically yes? The machines we install Windows Terminal on get shipped out to users with Surface Laptops, which have touch screens. I am running a Dell XPS, which also has touchscreen. The touchscreen functionality is not used for any business processes, however... If that makes sense?
@miniksa commented on GitHub (Sep 22, 2021):
An access violation happens (
0xC0000005) as we attempt to get the position of the cursor inScreenInfoUiaProviderBase::GetSelectionin response to a query right as we're starting up.Partial stack of throwing callsite
aec7392e6b/src/types/ScreenInfoUiaProviderBase.cpp (L243)_getTextBuffer()yieldsnullptras it's not set up yet, theGetCursor()method resolves to+0x20from that location and we try to read the cursor information out of0x0000000000000020which is completely wrong and the access violation is thrown.The tablet input service (the soft keyboard that shows up on touch screens... also known as
tabtip.exe) is making a query of the Terminal through the UIA framework while it's still loading. Before it even loaded that text buffer and got it ready.But the tablet input service is being sneaky. They know they're calling other people's code and that it could contain bugs. So they registered a Structured Exception Handler to catch anything that could go wrong. Up to and including an access violation that would normally crash the application. The C++ Frame Handler we had installed will not catch an access violation... but an SEH one will!
The touch screen keyboard handler then just marks the call as failed and gives up. But it ends that whole thread right where it stood... and doesn't let our unlock call go off in the scope exit.
aec7392e6b/src/types/ScreenInfoUiaProviderBase.cpp (L221-L244)Then when the rest of the Terminal is given a chance to load... (see https://github.com/microsoft/terminal/issues/11135#issuecomment-924073186 in the main thread)... it tries to take the lock to set things up. But the SEH-killed thread from the
tiptsfnever let it go. So it's deadlocked.In short, it's an easy repro. Run
tabtip.exeor right click the task bar to bring up the touch/tablet keyboard and then start the Terminal with that open. Or use a touch screen where it's already open all the time. That's what got us. We don't have touchscreens on our dev boxes. :(So the culprit is https://github.com/microsoft/terminal/pull/10971 (and 1.10 backport https://github.com/microsoft/terminal/pull/11042) because it allows queries from the UIA before everything is ready.
Now our team will debate whether that fix is appropriate and we should revert it... whether we should patch up this particular call site and/or audit the others from
tabtip.exeto see if we can guard against this circumstance... and whether we should maybe install our own SEH handler to make sure that locks get unlocked from the UIA context if everything goes sideways before someone kills the thread on us (LOOKING AT YOUtiptsf.dll!)Thank you so much for working with us today and helping us track this down. This looks like it is going to be a big deal and a big priority for us to service. I have to head home for this evening and @zadjii-msft is already off for today, but we'll cycle through with @carlos-zamora and @DHowett in the morning and start cranking on fixes and working out our servicing story. So much appreciated that you went above and beyond in providing us all the logging, diagnostics, and tracing we could possibly need today. You're awesome!
@Sankgreall commented on GitHub (Sep 22, 2021):
Ah amazing. Very happy I could help, and also want to say thank you and the rest of the team for servicing such an incredible application that we use literally every single day. Your effort is really appreciated!
@miniksa commented on GitHub (Sep 22, 2021):
OK here's the plan:
We're going to prepare two fixes:
Here's the structure output to make it easier to see which members need guarding:
nullptrdereferencing locations into the public UIA methods, we want to...Terminal.wprpfile. So we'll get that fixed.Terminal.wprpfile... either in the existing session or in a newTerminalLockssession or something. (The specifics of this are to put it onterminalrenderdata.cpp!Terminal::LockConsole(),terminalrenderdata.cpp!Terminal::UnlockConsole(),terminal.cpp!Terminal::LockForReading(), andterminal.cpp!Terminal.LockForWriting().)And then when we're done, we'll hold ourselves to doing a "Root Cause Analysis" to reflect on what went wrong, how we can correct it beyond this, how we can discover things like this faster, and how we can prevent issues like this in the future. Some of what we've slated for the comprehensive fix is already a part of satisfying the "how we can prevent this" and "how we can discover this faster", but we would like to be accountable for this issue.
@wkbrd commented on GitHub (Sep 22, 2021):
Great to hear the progress you are all making. Once a patch is available I could try it in my Windows Server 2022 environment. Thanks!
@wkbrd commented on GitHub (Sep 22, 2021):
FYI, it appears that a workaround for my scenario on Windows Server 2022 is to kill the TabTip.exe process using Task Manager before attempting to use Windows Terminal.
@miniksa commented on GitHub (Sep 24, 2021):
Alright folks, I'll be preparing servicing builds for this fix early next week (mostly because preparing and launching something on Friday feels like a bad idea.) Thanks again for your help and it should be in your hands soon!
@Falco20019 commented on GitHub (Oct 4, 2021):
@miniksa Any timeline for when this will land in release (or a hint on how I can use the servicing build)?
@miniksa commented on GitHub (Oct 4, 2021):
It's rolling out now! It was sent to some inside rings on Friday and it's rolling out to the remaining rings today to be ready for the Windows launch date tomorrow. I'll have patch notes and the releases up by end of day today. And hopefully the winget manifests too.
Sorry, I'm a little behind schedule juggling things. @DHowett is out on vacation so I'm pretending to be him and I'm not as good a juggler!
@ghost commented on GitHub (Oct 4, 2021):
:tada:This issue was addressed in #11312, which has now been successfully released as
Windows Terminal v1.10.2714.0.🎉Handy links:
@ghost commented on GitHub (Oct 4, 2021):
:tada:This issue was addressed in #11312, which has now been successfully released as
Windows Terminal Preview v1.11.2731.0.🎉Handy links:
@ghost commented on GitHub (Oct 20, 2021):
:tada:This issue was addressed in #11312, which has now been successfully released as
Windows Terminal Preview v1.12.2922.0.🎉Handy links: