Launcher.bat window becomes unresponsive when file logging is disabled #3175
Loading…
Reference in a new issue
No description provided.
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?
Imported from ubiquitarianism/leonida. Originally posted by ValueXu on 2026-12-02T16:30:36Z.
What happens
When I start the game with “Log to a file (-Log)” unchecked, the game starts but the launcher window stops responding to clicks.
Commit
3c106eb2fSystem
Windows 11 26H2 (build 26300.10075), Intel Core i5-11600KF, NVIDIA GeForce RTX 4070 Ti (driver 617.14)
Where
A tool run by hand (tools/, scripts/)
Command and steps
This happens every time I start the game with file logging disabled. If I enable “Log to a file (-Log)” and repeat the same steps, the launcher stays responsive.
Output
Imported from ubiquitarianism/leonida. Originally posted by ValueXu on 2026-12-02T16:41:48Z.
A diagnosis from Codex might be helpful:
WithLog to a file (-Log)unchecked, the runtime's stderr goes through the launcher's output pipe. Intools/leonida_launcher.py, the reader runs on a background thread, butpump()drains the entire queue on the Tk UI thread. For every line, it updates the text widget and scrolls to the end. While that callback is running, Tk cannot process clicks or repaint the window. With 30,000 synthetic lines queued, a UI callback scheduled for 1 ms later ran after **65 seconds** on the original code.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T21:27:11Z.
Open PR #3192 addresses this: the launcher's output pump now takes a bounded batch per turn so the window keeps answering with -Log off. AI-assisted (Claude Code).