launcher: Copy info for a bug report #3320
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3320"
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 MoonEyes on 2026-12-03T10:51:12Z.
Claim:
LAUNCHER-COPY-REPORTin #3312.Players' crash reports often lack the GPU, the driver and the settings they played with. This adds a Copy info for a bug report button next to Copy my info in the Play page's Output card (also a row in the Tools list) of the launcher
Launcher.batopens (tools/leonida_launcher.py). It puts a short block on the clipboard, at most 25 lines, to paste in Discord or in an issue:play-*.logthe D3D12 runtime wrote (thecard="..."field of the first indirect execution,leonida-gpu/src/indirect.rs, or theadapter=... memory_mb=...line whenLEONIDA_ADAPTERis set,host.rs); "not in the log" when absent;LEONIDA_*values the launcher passes;0xC0000…), repeated lines kept once.Every log line goes through
scrub_line(tools/bug_report_info.py): the home folder becomes%USERPROFILE%, values ofprogram=/shader=/pipeline=/pso=/hash=and hex-like names after a stage word are removed,0xvalues and runs of 8+ hex digits are removed except Windows status and error codes (0xC0000409,0x887A0005), and lines are cut at 200 characters. Variable values that look like paths show as<path>. No game data leaves through the button.Not done here
LEONIDA_ADAPTER; the block says "not in the log" for them. A one-line log at device creation inleonida-gpu/src/host.rswould fill both; posted as a finding in #3312.Tested
tests/test_bug_report_info.py: 27 OK (log parsing in both field orders, the 10-line cap, every scrub rule, status codes kept and addresses removed, missing or unreadable log).tests/test_leonida_launcher.py144 OK,test_launcher_serve12 OK,test_win_launchers12 OK,test_ci_registrationandtest_text_write_line_endingsOK;python -m compileall -q tools testsclean;scripts/check_no_game_data.pyclean on the new files.AI-assisted (Claude Code, Claude Opus 5.5). Independent review: a separate Claude Opus 5.5 agent before merge.
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T10:54:22Z.
Review of
e9cc6e92onbfd03e7f. The 27 report tests passed, and the launcher suite ran 144 tests with 3 skips.scrub_line()masks the username portion of conventional home folders. Absolute paths elsewhere remain intact. A syntheticERROR reading D:\Example Projects\Local Only\title.exeline survives the fullbug_report_text()path and would be copied for publication. The runtime can produce this shape atd3d12/apps/leonida/src/run.rs:56, where its startup error includesexe.display(). Please redact the full path, including paths outside home folders, or make the raw log excerpt separately opt-in. The clipboard fallback should avoid copying raw exception text for the same reason.play-*.log, changing the settings from Series S to Series X changes the copiedConsole profilewhile the error line stays the same. The resulting report gives no indication that these settings are for the next launch. Please label them as current launcher settings and label the errors as from the newest log, or read the settings recorded for that run.I used synthetic logs and did not open a game or interact with the clipboard. AI-assisted review with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T11:34:02Z.
Post-merge verification on
b053a181: the report button’s fallback fails before it can notify the window. InLauncher.copy_report, the worker’sexcepthandler usesinfo.scrub_line(...), butinfoonly exists as a local inbug_report_text().I exercised the real
copy_report()and queuepump()with a mocked clipboard. A syntheticFileNotFoundErrorfrom_bug_report_module()produced aNameErroron the worker, no queued report, and no clipboard update. Replacing the exception formatting with a fixed message (The report data could not be read.) delivered the fallback to the clipboard without copying the exception path. The success path still delivered its report. All 32 report tests and the launcher suite (144 run, 2 skipped) passed locally with that change.AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T12:36:58Z.
VERIFY-3320 — aplica limpia sobre
d9b618f10y las cuatro suites pasan, con mi guarda de i18n puesta encimaY las dos cosas que quería comprobar de una PR que toca los cuatro idiomas:
test_leonida_launcher.pysigue en144, que es el número demain— o sea que la PR no añade un test al launcher, pero tampoco lo rompe (y144es el número bueno aquí: el145de#3289es de aquella rama, no de esta);#3310), y las dos veces ha dicho lo mismo: cuadran.Y un detalle de la PR que vale la pena señalar: el commit dice «keep Windows status and error codes (0xC0000409, 0x887A0005)» — dos códigos concretos, uno de stack buffer overrun y otro de device removed. Un informe de fallo que se lleve esos dos números es la diferencia entre «se cerró» y «se cerró por esto». El test cubre el formato (
45 subtests), no que el juego produzca esos códigos — eso es de quien lo vea cerrarse.Lo que no he verificado: el botón en la ventana (Tkinter, sin escritorio) y el
Bug reportde verdad contra un cierre real.