Game: DLSS Frame Generation causes crash on launch after enabling it #3109
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#3109
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?
Reported on Discord
Longshot version
Nightly · nightly-1045-a98cf28a (shown in the crash screen).
Channel
Nightly.
What happened
The reporter says the game had been working, then they enabled DLSS Frame Generation and could no longer launch it. The crash screen says Longshot exited with code
0xc0000005.Steps to reproduce
Enable Frame Generation by DLSS, then try to launch the game again. The game had worked before changing this setting.
Where in the game
On launch; save shown as
Market/M…(partially cut off).How often
The reporter says they cannot launch it after enabling the setting; frequency not otherwise specified.
System
Not provided yet: GPU and driver, CPU/RAM, and OS.
Log
Not provided yet. asked for logs in Discord.
Screenshot
Crash screen shows: “The game crashed.”, Version “Nightly · nightly-1045-a98cf28a”, and “Longshot exited with exit code: 0xc0000005.” Attachment:
1.pngfrom Discord message 1578142199177019484.Files from the Discord report:
🤖 From the reporter's logs (nightly-1045, Windows, RTX 4060, sandbox on).
What happens
JSON exception weakly_canonical: Access is denied.: "<installed version>\builds\default\".pluginManager.cpp:702 ... type must be number, but is null.0xc0000005inVCRUNTIME140_1.dll, called fromsl.interposer.dll. The setting is saved, so every start crashes.Cause, from the log and the public Streamline and MSVC STL sources
std::filesystem::relative(<its own folder>, <NVIDIA's NGX models folder>), which callsweakly_canonicalon both. The sandboxed game is refused on its own folder.Not known: which call Windows refuses: the folder open (
CreateFile2) orGetFinalPathNameByHandleW. Neither refusal is logged today. Why this PC and not the one #3068 was tested on is not known either (a game folder on a second drive is a guess).Workaround (from reading the code, not tried):
setx RX_VK_DLSSG 0in a Command Prompt, then quit the launcher completely and open it again. DLSS Frame Generation then goes through NGX. Undo:reg delete HKCU\Environment /v RX_VK_DLSSG /f.Next: a change that makes the same two calls before loading Streamline, logs the refused one and uses NGX instead. Its log line from this PC decides the fix for the cause.
Wanted from the reporter: the Windows version (
winver), and which drive the launcher and game are installed on.🤖 Update.
Merged: #3131. Where Windows refuses to resolve one of the folders Streamline's plugins need, Streamline is now not started, which should stop the crash, and DLSS FG goes through NVIDIA's NGX. It also logs which call was refused. It has not run in the game, and it does not make Streamline work in the sandbox on that PC, so this issue stays open.
Also merged since: #3132 turns the sandbox off by default. This crash was in a sandboxed run, so a build with it should not crash this way (untested).
Which build: neither is in a nightly yet (latest at the time of writing:
nightly-1047-76092c5e). Until then, the workaround above (RX_VK_DLSSG=0, untried) still applies.What would help, from the affected PC, on the first nightly after 1047 that includes #3131
reg delete HKCU\Environment /v RX_VK_DLSSG /fsetx HOS_SANDBOX 1vk: Streamline: cannot be opened (CreateFile2, error N): <folder>orvk: Streamline: has no final path (GetFinalPathNameByHandleW, ...): <folder>.reg delete HKCU\Environment /v HOS_SANDBOX /fThe Windows version and whether the game is installed on a second drive would also still help.
If it still crashes in step 3, send those logs too: the refused call is then not one of the two checked.