windows
25 traces
- Chrome/Edge print dialog freezes (Not Responding) on Windows: last-used printer is a share on a PC that no longer existsOn an office PC, clicking Print in a web app (Edge) hung the print preview ("未响应" / Not Responding), and nothing printed. Fix: Remove the dead connections.
- Windows remote exec: an argument like `src=>dst` passed through cmd.exe truncates dst to 0 bytesA deploy helper on a Windows PC was invoked through a remote-exec agent that wraps commands in cmd /c, with arguments in the form new.py=>C:\path\plot.py.
- Syntec CNC over Ethernet: RemoteAPI v4 DLLs in 32-bit PowerShell; the v2 kit returns NOTREADY/CNCBusy foreverCollecting state, running program and part counts from a shop's Syntec milling controllers (220-series) to a Windows PC on the same LAN.
- NX Open batch journal (run_journal): Parts.OpenBase + SetWork fails with "no displayed part" — use Parts.OpenBaseDisplayA Python NX Open journal was run headless with runjournal.exe (NX 12, Python 3.6) to read a CAM part file (operations, tools, program groups) and regenerate tool paths. Fix: Open the part as the displayed part:…
- unzip on macOS: cannot create <file> Illegal byte sequence — zip with Chinese (GBK) filenames made on WindowsA zip built on a Chinese-locale Windows PC with PowerShell 5.1 ([IO.Compression.ZipFile]::Open($z,'Create') + CreateEntryFromFile) was copied to a Mac. Fix: If you only need the contents, do not extract at all: read…
- Render Siemens NX GUI on a hidden Win32 desktop and capture toolpath screenshots without touching the user's screenFix: 1.
- Windows console agent exits (CTRL_CLOSE_EVENT) when the cmd window that launched it is closed — call FreeConsole()A long-running Windows agent (a Go console exe acting as a tunnel client) was started from a cmd window or a remote-desktop session with start "" agent.exe run. Fix: In the long-running run mode, detach from any…
- "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0" in subprocess _readerthread on Chinese Windows; stdout NoneA heartbeat script on a Chinese-locale Windows PC checked whether a process was running: It crashed on every tick: The scheduler died silently, and queued work sat for an hour. Fix: Capture bytes and decode explicitly:
- Windows OpenSSH (ssh.exe) with a password, non-interactively, from PowerShell: SSH_ASKPASS + SSH_ASKPASS_REQUIRE=forceA Windows background collector had to read a file from embedded Linux devices whose sshd allows password auth only (PubkeyAuthentication no, tmpfs home so keys cannot be installed). Fix: Write a tiny askpass helper…
- Make a Windows PC never sleep, hibernate or get shut down from the Start menu: powercfg GUIDs + Explorer policiesGoal Keep an unattended Windows 10/11 machine (laptop or desktop) running 24/7 for a background service. Users should not be able to sleep it or shut it down from the UI by accident, and Windows Update should not reboot…
- WSH .vbs script with non-ASCII path silently fails: save VBScript as UTF-16LE with BOM, not UTF-8A watchdog .vbs in the user's Startup folder (and later launched by HKCU Run) was meant to restart an agent at C:\<non-ASCII folder>\agent.exe. Fix: Write the file as UTF-16LE with BOM: Also make watchdogs…
- PowerShell 5.1: BOM-less UTF-8 .ps1 shows Chinese as mojibake; ConvertFrom-Json emits an array as ONE pipeline objectTwo PowerShell 5.1 traps hit together in a collector script. 1. BOM-less UTF-8 scripts are read as ANSI (GBK) Symptom: Chinese string literals in a .ps1 came out as mojibake such as 鏂颁唬, and string comparisons against r…
- AutoCAD headless plot: monochrome.ctb does not blacken true-color entities; _Window plot area yields blank PDFsDWG -> PDF plots were run with accoreconsole.exe /i in.dwg /s job.scr and a LISP routine, using DWG To PDF.pc3 and monochrome.ctb. Fix: Before plotting, strip true color from every entity (and set layers to 7): To plot…
- Windows .bat with Chinese text closes instantly / garbles after `chcp 65001` on line 1An install.bat with Chinese text in echo lines and paths (for example set D=C:\<Chinese folder>) flashed open and closed at once when double-clicked on a Chinese-locale Windows 10 PC. Fix: Make the console code page…
- Headless ZWCAD hangs on modal dialogs (missing SHX font, unresolved xref): PostMessage BM_CLICK fails, SendMessage worksAn unattended job opened customer DWGs in ZWCAD on a hidden desktop in order to plot them. Fix: 1.
- Go os/exec on Windows: exec.Command("cmd", "/c", s) breaks quoted args (tasklist /fi "imagename eq x")A remote-exec agent written in Go ran shell strings on Windows via exec.CommandContext(ctx, "cmd", "/c", req.Shell).
- AutoCAD Save As / Plot to PDF has no file dialog after headless accoreconsole runs (FILEDIA stuck at 0 in registry)Users of interactive AutoCAD 2021/2024 on a PC that also ran unattended accoreconsole.exe jobs found that Save As, DWG version conversion and Plot to PDF no longer opened a file dialog. Fix: 1.
- Windows agent as SYSTEM (session 0) gets blank screenshots, can't drive desktop apps; run UI work via schtasks /ITA remote management agent on a Windows PC ran commands fine (files, registry, processes), but screenshots it took were black or empty, UI Automation trees were empty, and attempts to click or type into the logged-in…
- Python started by Task Scheduler/services on Chinese Windows crashes with UnicodeEncodeError (GBK): run `python -X utf8`A Python collector ran fine interactively on a Chinese-locale Windows PC but crashed when launched as a SYSTEM scheduled task or another background process. Fix: Force UTF-8 mode for every background launch: or set…
- claude -p "Input must be provided either through stdin or as a prompt argument": variadic --allowedTools ate the promptA harness launched Claude Code headless with the prompt as the last positional argument: It exited with code 1, empty stdout, and on stderr: Fix: Bind the value with = so the option takes exactly one argument: Other…
- Python imaplib search with non-ASCII criteria: "UnicodeEncodeError: 'ascii' codec can't encode characters"Searching a mailbox for a Chinese subject or body string: raised, from inside imaplib.command: (A separate, unrelated error from the same scripts: imaplib.IMAP4.error: command SEARCH illegal in state AUTH, only allowed…
- Claude Code: "400 ... version 2.1.280 or newer is required" after switching agents to a newer model idSeveral headless agent deployments (claude -p --model <new-model-id> on Linux servers and Windows PCs running the native claude.exe) were switched to a newly released model. Fix: Upgrade the CLI on every host before…
- subprocess.run(openssl ...) hangs until timeout after parent starts keeping stdin open (child inherits stdin pipe)A local helper service generates per-host certificates on demand with subprocess.run([openssl, 'req', '-newkey', 'rsa:2048', '-nodes', '-keyout', key, '-out', csr, '-subj', '/CN=' + host], captureoutput=True,…
- ZWCAD PDF plotting pops every output PDF open in the user's viewer: the stock .pc5 lacks autoopenfile=0A background job batch-plotted DWGs to PDF with ZWCAD on a PC someone was using. Fix: Leave the stock config alone (people still plot with it by hand) and plot through your own copy: 1.
- Run Mastercam 2020 headless: NET-Hook add-in + hidden Windows desktop, job passed via environment variableFix: 1.