Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- Run T3 Code Nightly (
0.1.14-nightly.20261127.5359, per-user NSIS install) on Windows 11 ARM64. - Trigger an in-app desktop update (e.g., to
0.1.14-nightly.20261128.5372). T3-Code-0.1.14-nightly.20261128.5372-arm64.exe --updated /S --force-runspawnsold-uninstaller.exe, which runs electron-builder'sFIND_PROCESScheck viansExec::ExeccallingC:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe(redirected to 32-bitSysWOW64\WindowsPowerShell\v1.0\powershell.exeunder WOW64 emulation on ARM64).- Once
powershell.exehangs, reopen T3 Code manually and click Update again (either for.5372or a newer nightly such as.5399).
Expected behavior
- The process check in
old-uninstaller.execompletes quickly (or times out viansExec::Exec /TIMEOUT=...), the uninstaller finishes, and T3 Code installs the new version and relaunches. - A hung prior installer should not permanently deadlock all future in-app updates into silently quitting without relaunching.
Actual behavior
- During the initial update (
00:47:34local),T3-Code-0.1.14-nightly.20261128.5372-arm64.exespawnedold-uninstaller.exe, which spawnedC:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\powershell.exe(32-bit x86 under WOW64 emulation on ARM64) forFIND_PROCESS(Get-CimInstance -ClassName Win32_Process ...). - That
powershell.exeprocess entered an infinite 100%-CPU spin on a single thread (WorkingSet64: ~94–323 KB,HandleCount: 829, accumulating 50,083 CPU seconds / 13h 54m of continuous CPU time over ~14.7 hours) and never exited. - Because
nsExec::ExecinallowOnlyOneInstallerInstance.nshhas no/TIMEOUT=,old-uninstaller.exewaited indefinitely, andT3-Code-0.1.14-nightly.20261128.5372-arm64.exewaited indefinitely while holding the NSIS single-instance installer mutex. The app never relaunched. - Every subsequent in-app update attempt (
00:53:06,01:03:06,01:03:53, and15:22:21for.5399) quit T3 Code (beforeQuitForUpdate), spawned the silent installer, extracted onlySystem.dllinto%TEMP%\ns*.tmp, hit the NSIS single-instance mutex still held by the wedged.5372installer, and exited silently without updating or relaunching. Every manual relaunch loggedthe last update install did not applyand stayed on0.1.14-nightly.20261127.5359.
Relation to existing Windows updater issues:
This is distinct from #25450 (PowerShell 5.1 .Count bug addressed by #25831), #20345 (20s signature-check timeout), #36335 (StdUtils 0xC0000374 crash), and #27486 (partial extraction). Even with #25831 applied, allowOnlyOneInstallerInstance.nsh still runs FIND_PROCESS / KILL_PROCESS through nsExec::Exec without /TIMEOUT= and resolves powershell.exe through 32-bit WOW64 redirection (SysWOW64) on Windows ARM64 instead of Sysnative or a timeout-bounded native check.
Impact
Major degradation or frequent failure
Version or commit
0.1.14-nightly.20261127.5359 -> 0.1.14-nightly.20261128.5372 / 0.1.14-nightly.20261128.5399
Environment
Windows 11 Pro 25H2 (Build 26200.10075), ARM64 (Microsoft Surface Pro, 11th Edition), per-user NSIS install (%LOCALAPPDATA%\Programs\t3code)
Logs or stack traces
# Live process tree ~14.7 hours after the failed update:
ProcessId : 20752
Name : T3-Code-0.1.14-nightly.20261128.5372-arm64.exe
CreationDate : 2026-11-28 00:47:34
CommandLine : C:\Users\<USER>\AppData\Local\t3code-updater\pending\T3-Code-0.1.14-nightly.20261128.5372-arm64.exe --updated /S --force-run
ProcessId : 2532 (Parent: 20752)
Name : old-uninstaller.exe
CreationDate : 2026-11-28 00:47:53
CommandLine : "C:\Users\<USER>\AppData\Local\Temp\nsk5EFB.tmp\old-uninstaller.exe" /S /KEEP_APP_DATA /currentuser --keep-shortcuts --updated _?=C:\Users\<USER>\AppData\Local\Programs\t3code
ProcessId : 16928 (Parent: 2532)
Name : powershell.exe (C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\powershell.exe)
CreationDate : 2026-11-28 00:48:02
CPU : 50083.7s (13:54:43 on single Running thread TID 38040, WorkingSet64: 94 KB)
CommandLine : "C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NonInteractive -C "if ((Get-CimInstance -ClassName Win32_Process | ? {$_.Path -and $_.Path.StartsWith('C:\Users\<USER>\AppData\Local\Programs\t3code', 'CurrentCultureIgnoreCase')}).Count -gt 0) { exit 0 } else { exit 1 }"
# %TEMP%\ns*.tmp directories showing every subsequent attempt hitting the mutex immediately after loading System.dll:
2026-11-28 00:47:52 nsk5EFB.tmp -> nsExec.dll, old-uninstaller.exe, StdUtils.dll, System.dll
2026-11-28 00:48:01 nsbA00C.tmp -> nsExec.dll, StdUtils.dll, System.dll
2026-11-28 00:53:08 nsk6D4B.tmp -> System.dll
2026-11-28 01:03:06 nsu8ABB.tmp -> System.dll
2026-11-28 01:03:53 nsw4291.tmp -> System.dll
2026-11-28 15:22:29 nsn5678.tmp -> System.dll
# desktop.trace.ndjson timeline:
2026-11-28 00:47:29 [ElectronUpdater.quitAndInstall]
2026-11-28 00:47:34 [desktop.lifecycle.beforeQuitForUpdate] allowing updater-controlled quit
2026-11-28 00:52:16 [desktop.updates.configure] the last update install did not apply (0.1.14-nightly.20261127.5359 -> 0.1.14-nightly.20261128.5372)
2026-11-28 00:53:06 [ElectronUpdater.quitAndInstall]
2026-11-28 01:01:45 [desktop.updates.configure] the last update install did not apply (0.1.14-nightly.20261127.5359 -> 0.1.14-nightly.20261128.5372)
2026-11-28 15:22:21 [ElectronUpdater.quitAndInstall]
2026-11-28 15:25:23 [desktop.updates.configure] the last update install did not apply (0.1.14-nightly.20261127.5359 -> 0.1.14-nightly.20261128.5399)
Workaround
Terminate the wedged powershell.exe, old-uninstaller.exe, and T3-Code-*-arm64.exe processes, close T3 Code, and run the pending installer (%LOCALAPPDATA%\t3code-updater\pending\T3-Code-0.1.14-nightly.20261128.5399-arm64.exe /S) directly. Verified to exit 0 and upgrade cleanly to 0.1.14-nightly.20261128.5399.
Activity