Launcher.bat window becomes unresponsive when file logging is disabled #3175

Open
opened 2026-12-02 16:30:36 +00:00 by ValueXu · 2 comments
ValueXu commented 2026-12-02 16:30:36 +00:00 (Migrated from github.com)
Contributor

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

3c106eb2f

System

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

  1. On Windows, double-click Launcher.bat in the repository root.
  2. Open Settings and uncheck “Log to a file (-Log)”.
  3. Click Play and wait for the game to start.
  4. Switch back to the launcher and try clicking another page. The launcher does not respond.

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

I did not capture the last lines of console output from the affected run.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6749706662 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3175). Originally posted by [ValueXu](https://github.com/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 3c106eb2f ### System 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 1. On Windows, double-click Launcher.bat in the repository root. 2. Open Settings and uncheck “Log to a file (-Log)”. 3. Click Play and wait for the game to start. 4. Switch back to the launcher and try clicking another page. The launcher does not respond. 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 ```text I did not capture the last lines of console output from the affected run. ```
ValueXu commented 2026-12-02 16:41:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by ValueXu on 2026-12-02T16:41:48Z.


A diagnosis from Codex might be helpful:

With Log 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, but pump()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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7352327815 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3175#issuecomment-7352327815). Originally posted by [ValueXu](https://github.com/ValueXu) on 2026-12-02T16:41:48Z. --- A diagnosis from Codex might be helpful: `With `Log to a file (-Log)` unchecked, the runtime's stderr goes through the launcher's output pipe. In `tools/leonida_launcher.py`, the reader runs on a background thread, but `pump()` 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. `
MoonEyes commented 2026-12-02 21:27:11 +00:00 (Migrated from github.com)
Author
Contributor

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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359300624 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3175#issuecomment-7359300624). Originally posted by [MoonEyes](https://github.com/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).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy#3175
No description provided.