Skip to content

[Bug]: Windows ARM64 in-app update hangs indefinitely in SysWOW64 powershell.exe (no nsExec timeout), deadlocking all future updates via NSIS mutex #45160

Backlog

Description

@nosabecom

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

  1. Run T3 Code Nightly (0.1.14-nightly.20261127.5359, per-user NSIS install) on Windows 11 ARM64.
  2. Trigger an in-app desktop update (e.g., to 0.1.14-nightly.20261128.5372).
  3. T3-Code-0.1.14-nightly.20261128.5372-arm64.exe --updated /S --force-run spawns old-uninstaller.exe, which runs electron-builder's FIND_PROCESS check via nsExec::Exec calling C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe (redirected to 32-bit SysWOW64\WindowsPowerShell\v1.0\powershell.exe under WOW64 emulation on ARM64).
  4. Once powershell.exe hangs, reopen T3 Code manually and click Update again (either for .5372 or a newer nightly such as .5399).

Expected behavior

  • The process check in old-uninstaller.exe completes quickly (or times out via nsExec::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

  1. During the initial update (00:47:34 local), T3-Code-0.1.14-nightly.20261128.5372-arm64.exe spawned old-uninstaller.exe, which spawned C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\powershell.exe (32-bit x86 under WOW64 emulation on ARM64) for FIND_PROCESS (Get-CimInstance -ClassName Win32_Process ...).
  2. That powershell.exe process 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.
  3. Because nsExec::Exec in allowOnlyOneInstallerInstance.nsh has no /TIMEOUT=, old-uninstaller.exe waited indefinitely, and T3-Code-0.1.14-nightly.20261128.5372-arm64.exe waited indefinitely while holding the NSIS single-instance installer mutex. The app never relaunched.
  4. Every subsequent in-app update attempt (00:53:06, 01:03:06, 01:03:53, and 15:22:21 for .5399) quit T3 Code (beforeQuitForUpdate), spawned the silent installer, extracted only System.dll into %TEMP%\ns*.tmp, hit the NSIS single-instance mutex still held by the wedged .5372 installer, and exited silently without updating or relaunching. Every manual relaunch logged the last update install did not apply and stayed on 0.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

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions