Game: DLSS Frame Generation causes crash on launch after enabling it #3109

Closed
opened 2026-12-03 20:14:38 +00:00 by BeanBot · 3 comments
Member

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.png from Discord message 1578142199177019484.

Reported on [Discord](https://discord.com/channels/1569849200047427645/1569849200617726065/1578142199177019484) ### 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. <name> 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.png` from Discord message 1578142199177019484.
1.png
46 KiB
Author
Member

Files from the Discord report:

Files from the Discord report: - [1.png](https://git.magicbean.dev/attachments/05c30878-1a35-4e9c-95b3-3e347c2e9352)
Owner

🤖 From the reporter's logs (nightly-1045, Windows, RTX 4060, sandbox on).

What happens

  1. As a Streamline plugin loads: JSON exception weakly_canonical: Access is denied.: "<installed version>\builds\default\".
  2. pluginManager.cpp:702 ... type must be number, but is null.
  3. 0xc0000005 in VCRUNTIME140_1.dll, called from sl.interposer.dll. The setting is saved, so every start crashes.

Cause, from the log and the public Streamline and MSVC STL sources

  • Each plugin's load runs a deny-list check: std::filesystem::relative(<its own folder>, <NVIDIA's NGX models folder>), which calls weakly_canonical on both. The sandboxed game is refused on its own folder.
  • The plugin catches the error and still reports success, half set up. The plugin manager trips on the missing data, and the game faults.
  • Since #3068 Streamline really starts in the sandbox, so this is newly reachable.

Not known: which call Windows refuses: the folder open (CreateFile2) or GetFinalPathNameByHandleW. 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 0 in 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.

🤖 From the reporter's logs (nightly-1045, Windows, RTX 4060, sandbox on). **What happens** 1. As a Streamline plugin loads: `JSON exception weakly_canonical: Access is denied.: "<installed version>\builds\default\"`. 2. `pluginManager.cpp:702 ... type must be number, but is null`. 3. `0xc0000005` in `VCRUNTIME140_1.dll`, called from `sl.interposer.dll`. The setting is saved, so every start crashes. **Cause, from the log and the public Streamline and MSVC STL sources** - Each plugin's load runs a deny-list check: `std::filesystem::relative(<its own folder>, <NVIDIA's NGX models folder>)`, which calls `weakly_canonical` on both. The sandboxed game is refused on its own folder. - The plugin catches the error and still reports success, half set up. The plugin manager trips on the missing data, and the game faults. - Since #3068 Streamline really starts in the sandbox, so this is newly reachable. **Not known:** which call Windows refuses: the folder open (`CreateFile2`) or `GetFinalPathNameByHandleW`. 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 0` in 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.
Owner

🤖 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

  1. If you set the workaround, remove it, or Streamline is never started and nothing is logged: reg delete HKCU\Environment /v RX_VK_DLSSG /f
  2. Turn the sandbox on for this test: setx HOS_SANDBOX 1
  3. Fully quit the launcher, reopen it, start the game with DLSS FG on and "DLSS FG through" at Streamline.
  4. Send the logs. We are looking for vk: Streamline: cannot be opened (CreateFile2, error N): <folder> or vk: Streamline: has no final path (GetFinalPathNameByHandleW, ...): <folder>.
  5. Afterwards: reg delete HKCU\Environment /v HOS_SANDBOX /f

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

🤖 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** 1. If you set the workaround, remove it, or Streamline is never started and nothing is logged: `reg delete HKCU\Environment /v RX_VK_DLSSG /f` 2. Turn the sandbox on for this test: `setx HOS_SANDBOX 1` 3. Fully quit the launcher, reopen it, start the game with DLSS FG on and "DLSS FG through" at Streamline. 4. Send the logs. We are looking for `vk: Streamline: cannot be opened (CreateFile2, error N): <folder>` or `vk: Streamline: has no final path (GetFinalPathNameByHandleW, ...): <folder>`. 5. Afterwards: `reg delete HKCU\Environment /v HOS_SANDBOX /f` The 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.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/Longshot#3109
No description provided.