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

Open
opened 2026-12-02 18:22:25 +00:00 by github-bot · 2 comments
Owner

@⁠ValueXu on GitHub · 2026-12-02 16:30 UTC · original

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.
**@⁠ValueXu** on GitHub · 2026-12-02 16:30 UTC · [original](https://github.com/ProjectLeonida/mandy/issues/3175) ### 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. ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 18:22:26 +00:00
Author
Owner

@⁠ValueXu on GitHub · 2026-12-02 16:41 UTC · original

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.

**@⁠ValueXu** on GitHub · 2026-12-02 16:41 UTC · [original](https://github.com/ProjectLeonida/mandy/issues/3175#issuecomment-7352327815) 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. `
Author
Owner

@⁠MoonEyes on GitHub · 2026-12-02 21:27 UTC · original

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

**@⁠MoonEyes** on GitHub · 2026-12-02 21:27 UTC · [original](https://github.com/ProjectLeonida/mandy/issues/3175#issuecomment-7359300624) 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).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida#3175
No description provided.