Repository navigation
Conversation
This was referenced Nov 24, 2026
Moriz82
force-pushed
the
split/linux-proton-docs-scripts
branch
from
November 24, 2026 20:56
8f1b19d to
78179a9
Compare
…PROTON-DOCS-SCRIPTS) scripts/linux-boot holds five scripts for booting gta6rt on Linux again and again while working on the runtime: configure-worktree.sh (the clang-cl and xwin cross-build), boot.sh (dry-run, init or run, with the network off in a user and network namespace), and run-boot.sh with boot-inner.sh and boot-digest.sh (a systemd --user unit that waits for memory, holds a GPU lock and a build lock, samples memory and VRAM, and writes a digest of how the boot ended). docs/linux_proton.md describes them. They are the scripts of integration #984 made portable: no fixed paths (LEONIDA_GAME_DIR, LEONIDA_SHADERS, LEONIDA_BOOT_DIR), only switches that main has, one default Wine for both scripts, the Wine crash debugger off (it started itself again without end when a Wine service crashed), and a digest that no longer reports a failed boot as OK. Run on main 6293c1c under Proton Experimental on an RTX 4070: configure and build, dry-run and init (exit 0), and run-boot.sh with a 60 s limit (the title stops within seconds with an exception of its own: verdict EXITED WITH ERROR), a 3 s limit (verdict OK) and wrong input (refused). tests/test_linux_boot_scripts.py covers parsing and the refusals without Wine. AI-assisted (Claude Code). Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Moriz82
force-pushed
the
split/linux-proton-docs-scripts
branch
from
November 25, 2026 03:40
78179a9 to
ed8309a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: LINUX-PROTON-DOCS-SCRIPTS (claim).
Part of the split of #984 into small pull requests.
Depends on: none
Overlaps: none found.
docs/linux.mdand the README's Running the loader on Linux cover the build and<out>/gta6rt.sh, andscripts/run_wine_session.shruns the CI tests. This child adds the boot scripts of #984 and one page for them, and repeats neither.What and why
scripts/linux-bootis for someone who boots the loader on Linux again and again while working on the runtime, straight from a checkout, and wants to know afterwards what happened:configure-worktree.sh <checkout>configures the clang-cl and xwin cross-build inruntime/build/boot(SDL3_SRCmakes it work offline).boot.sh dry-run|init|run [seconds]starts the loader under Wine or Proton insideunshare -rn, a new user and network namespace that needs no root, so the title has no network at all. It sets the Vulkan backend and the shader library, moves NVIDIA's shader disk cache out of the way and raises its limit, and writes the startup and D3D12 traces with theirtools/boot_trace.pysummary.run-boot.sh <name> <gta6rt.exe> [seconds] [KEY=VALUE ...]runs that as asystemd --userunit: it waits for memory headroom, holds a GPU lock and a build lock for the whole boot, samples RAM, swap, the unit's memory and VRAM every 2 s, and afterwards writes a digest (verdict, counts from the trace, captured frames, memory peaks, kernel OOM and GPU events, every distinct error line with its count). The digest is written also when the kernel orsystemd-oomdkilled the boot.Everything the scripts produce goes to
LEONIDA_BOOT_DIR, outside the repository.docs/linux_proton.mdis the page, with one row indocs/README.md.What changed against the scripts in #984
LEONIDA_GAME_DIR,LEONIDA_SHADERSandLEONIDA_BOOT_DIR. A missing one is refused with one line before anything starts.mainhas. The input script (gameinput: keyboard pad input scripts of any length (RT-INPUT-SCRIPT-LENGTH) #1074), the title's own window, the pipeline cache directory and checkpoints, the source-frame capture and the device-type default are gone from the scripts, and so are the digest counters for log lines thatmaindoes not print.tr -d "\x27", which GNUtrtakes as the charactersx,2and7: a failed unit's result became'eit-code', matched no case, and the verdict stayedOK. And the digest unit stopped waiting as soon as the boot unit began to deactivate, before systemd had logged the result. It now waits for the unit to end and also uses the loader's exit code.wine), and the page says in bold to use one Wine per prefix. In [integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD) #984boot.shdefaulted towineandrun-boot.shto Proton. I made exactly that mistake while testing this child: oneboot.shrun used the distribution's Wine 11.22 on the Proton prefix. A Proton prefix links to files inside the Proton installation, and the other Wine's prefix update wrote through those links: about 1,200 of Proton's own files were overwritten, and from then on every Proton start on this machine failed (its services could not create the device manager).winedbg.exe=d). In that broken state,winedbgstarted for a crashing Wine service crashed as well and was started again for itself, about ten thousand times, until memory and swap were full. That happened twice before the cause was found. With the override a crashing process just ends; the loader's own trace still records the title's exceptions.maindoes. [integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD) #984's version was a test report of that branch: a boot timeline, three machines, the list of what the branch changes and where it stops. None of that holds formain, so none of it is here; it belongs with the children that bring those changes.runtime/test/xmem_test.cppthat the split map counted under this topic (it belongs to the xmem children), and the fork's own sync script.Tested
CachyOS (Arch), kernel 7.3.5, Proton Experimental (Wine 11.0), Ryzen 5 5600X, 16 GB RAM, NVIDIA GeForce RTX 4070 12 GB (driver 620.73.04), clang-cl 23.1.5 with an xwin SDK, Ninja, ccache, bash 5, systemd user session. On
main6293c1c4fwith this child:gta6rt.exeandgta6rt_tls_host.dll).boot.sh dry-runandboot.sh init: exit 0, traces and summary written.run-boot.shwith a 60 s limit: onmainthe title stops within seconds with an exception of its own, after creating its device, command queue, a descriptor heap and its first resources. The digest saysEXITED WITH ERROR, unit resultexit-code, andrun-boot.shexits 1. This was run several times while the scripts changed. The earlier runs stopped about 6 s in at a breakpoint exception (0x80000003). The run on the final tree stopped after 2 s with an access violation, but that run was made after the Proton installation had been damaged as described above, so it says nothing aboutmain. Wheremainstops is not established here; what is checked is that the scripts report it.run-boot.shwith a 3 s limit (before the damage and again on the final tree): the loader is stopped at the limit, the digest saysOK (ran its full time limit),run-boot.shexits 0. One line per boot is appended toboots.tsv.gta6rt_tls_host.dll, a missing shader library, a name with a space, an unknown mode): each is refused with exit 2 and creates nothing.tests/test_linux_boot_scripts.py(new): 3 tests pass. It checks that the five scripts parse (bash -n), are executable, have LF line endings, and refuse wrong input before they create a folder or start anything. With one check removed fromboot.shthe test fails. It needs no Wine, no systemd unit and no game files, and skips itself outside Linux.tests/the wayci.ymlruns them: 521 files, 520 pass.tests/test_imhex_patterns.pyfails, as it does on the base commit.python3 -I scripts/check_no_game_data.py: passes.Not run: any other distribution, plain Wine instead of Proton, an AMD or Intel GPU (the sampler's VRAM columns come from
nvidia-smiand hold?without it), a boot that reaches a picture (maindoes not get there on this machine), and a clean run of theKILLED BY OOMverdict (it appeared once, when the debugger incident above exhausted memory during a boot, but that path was not tested on purpose), and a boot on a repaired Proton installation after the final change (the final-tree boots ran in the damaged one).shellcheckis not installed on this machine; the scripts were checked withbash -nonly. The translator suite was not run: no tool or runtime file changes.GPUs tested: NVIDIA GeForce RTX 4070 (the scripts only start the loader; nothing here is GPU code).
AI-assisted: yes (Claude Code).
Checklist
main(6293c1c4f). One topic: scripts, their page and their test. No runtime or translator code.🤖 Generated with Claude Code