Crash when discarding settings rapidly #16597

Open
opened 2026-01-31 05:16:46 +00:00 by claunia · 0 comments
Owner

Originally created by @mimvdb on GitHub (Feb 2, 2022).

Originally assigned to: @zadjii-msft on GitHub.

Windows Terminal version

1.12.3472.0

Windows build number

10.0.19043.0

Other Software

No response

Steps to reproduce

Start fresh window, go to settings
Rapidly click on save, then rapidly click on discard in the settings UI

To reliable reproduce this I used an autohotkey script I had lying around to click the leftmousebutton very rapidly, this may be useful (Usage: Shift+F12, then after first left click starts clicking very rapidly, press F12 to stop)

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Suspend, on

F12::Reload
+F12::Suspend, off

Lbutton::

Loop
{
;GetKeyState, state, Lbutton, P
;if state=U
;break
Sendinput {Click down left}
Sleep 10
Sendinput {Click up left}
Sleep 10
}

Expected Behavior

Nothing much

Actual Behavior

Crash 50% of the time, freeze in other cases

https://user-images.githubusercontent.com/2277504/152193847-1e44455d-1bb7-4a4c-af01-8d1e463a488f.mp4

Originally created by @mimvdb on GitHub (Feb 2, 2022). Originally assigned to: @zadjii-msft on GitHub. ### Windows Terminal version 1.12.3472.0 ### Windows build number 10.0.19043.0 ### Other Software _No response_ ### Steps to reproduce Start fresh window, go to settings Rapidly click on save, then rapidly click on discard in the settings UI To reliable reproduce this I used an autohotkey script I had lying around to click the leftmousebutton very rapidly, this may be useful (Usage: Shift+F12, then after first left click starts clicking very rapidly, press F12 to stop) ``` #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Suspend, on F12::Reload +F12::Suspend, off Lbutton:: Loop { ;GetKeyState, state, Lbutton, P ;if state=U ;break Sendinput {Click down left} Sleep 10 Sendinput {Click up left} Sleep 10 } ``` ### Expected Behavior Nothing much ### Actual Behavior Crash 50% of the time, freeze in other cases https://user-images.githubusercontent.com/2277504/152193847-1e44455d-1bb7-4a4c-af01-8d1e463a488f.mp4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16597