Install: Windows: Successful build rejected with "The game folder is missing from this version" #2661
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#2661
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?
What you used
Longshot Launcher
Version
Launcher v 190 nightly
Channel
Nightly
Where it stopped
Installing or updating the launcher or the builder
The error
Operating system and free space on the output drive
Windows 10.0.28000, 172Gb free on my drive.
Visual Studio or Build Tools version, and Windows SDK version
No response
Log
Additional code investigation (possible cause)
I also inspected the launcher's source code and noticed a potentially related inconsistency.
In
src/game/wizard.rs, the post-build validation uses a direct path comparison:However, in
src/game/versions.rs, theVersion::owns_build()function already includes a Windows-specificcanonicalize()fallback when comparing build-folder paths.This suggests that the post-build validation might reject two paths that refer to the same directory but have different Windows path representations (for example, paths with and without the
\\?\prefix).Could this validation use the same Windows-aware path comparison as
Version::owns_build(), or at least log both paths when the check fails?This may explain why the builder successfully generates the game folder, but the launcher immediately reports that it is missing.
Before you send it
From Discord:
Additional reproduction from the original reporter's thread: RTX 4070 Ti / i7-14700KF, Windows, launcher nightly-190-560f789a building Longshot nightly-842-86b3b9e4 with DLSS and shader preparation enabled. Telemetry says all build stages completed, but final outcome is failed with “The builder did not complete the build.” The launcher diagnostics say only “Game build did not complete.” Explorer shows eight version directories (
nightly-842-86b3b9e4and.instance-2through.instance-8). No build log was supplied. Windows version, free space, precise selected game-folder/build settings, and outcome after retry remain unknown.Claiming this, fixing it in LongshotLauncher; testing on Windows 11 with an RTX 4070.
Where: the error comes from
src/game/wizard.rsin LongshotLauncher, after the builder finishes:folderis the builder'sdone.folderas it printed it. On Windows,Pathequality is case-sensitive, and it treats\?\C:\...andC:\...as different prefixes. So when the folder exists but the builder and the launcher spell the version folder differently, the check fails, and that matches this report (Test-Pathis True,longshot.exeis there, exit code 0). I'll confirm which spelling differs here, then compare the two as the same folder on disk, with a launcher test that fails onmainfirst.Prior work: none for this check. Searched Longshot and LongshotLauncher, all states: "game folder is missing", canonicalize, verbatim, "builds folder". Related: @dyst's MagicBeanDev/LongshotLauncher#298 (WIP), for MagicBeanDev/LongshotLauncher#297. It changes how the folders chosen in Settings are saved, not this comparison, and this player used the default folder. If the cause turns out to be the same verbatim spelling, I'll build on #298 instead of beside it.
Fix up: MagicBeanDev/LongshotLauncher#299, ready for review.
Cause: when the versions sit in a data folder apart from the launcher home,
library::reservecanonicalizes the version folder, so the launcher starts the builder by its\?\C:\...path. Windows gives the builder its own path plainly, so the builder reportsC:\...\builds\default, and the check after the build compared the two spellings as paths. An installed Windows launcher keeps its data in%LOCALAPPDATA%\Longshot\data, apart from its home, so every installed copy took this path.Reproduced here on Windows 11 with the nightly-842 builder: the launcher from
mainstopped with this error, withlongshot.exe(806,823,424 bytes) in place. The fixed launcher, with the same home, installed the version, and Play started the game.