Demon's Souls: startup buffer allocation failure in streamBuffer.cpp #1801

Open
opened 2026-11-26 10:06:04 +00:00 by github-bot · 0 comments
Owner

@⁠kewalker on GitHub · 2026-10-21 21:09 UTC · original

I hit a startup crash in Demon's Souls (PPSA01342) while initializing the renderer:

GPU metadata clears: enabled.
Vulkan pipeline cache: loading _PipelineCache\PPSA01342.bin
Vulkan pipeline cache: loaded 154.13 MB from _PipelineCache\PPSA01342.bin
--- Build ---
Source build b579bd5-dirty
--- Fatal Error ---
Not implemented (result != vk::Result::eSuccess)
in src/graphics/host_gpu/renderer/cache/streamBuffer.cpp:86

The buffer constructor applies VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT to required renderer buffers, then exits immediately if creation fails. VMA documents that this flag can reject an allocation based on the reported budget before the driver attempts it. A targeted retry without that advisory limit gives the driver a chance to create a required buffer. The original error also hides the Vulkan result and requested buffer size.

I merged main through 28648188 into my local integration branch (f95846dc), rebuilt, and tested the retry change. I reviewed the code and launched and played Demon's Souls with the change applied. This is a local integration test with other changes present, rather than an isolated A/B test on clean main; I am reporting the startup result, not a full compatibility or stability claim.

Reproduction: launch Demon's Souls and allow the renderer to initialize. Expected: attempt required buffer creation before treating an advisory budget rejection as fatal, and report actionable allocation details if creation still fails.

The proposed PR is limited to the retry and allocation diagnostics in streamBuffer.cpp.

Proposed change: #1802

**@⁠kewalker** on GitHub · 2026-10-21 21:09 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1801) I hit a startup crash in Demon's Souls (PPSA01342) while initializing the renderer: ```text GPU metadata clears: enabled. Vulkan pipeline cache: loading _PipelineCache\PPSA01342.bin Vulkan pipeline cache: loaded 154.13 MB from _PipelineCache\PPSA01342.bin --- Build --- Source build b579bd5-dirty --- Fatal Error --- Not implemented (result != vk::Result::eSuccess) in src/graphics/host_gpu/renderer/cache/streamBuffer.cpp:86 ``` The buffer constructor applies `VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT` to required renderer buffers, then exits immediately if creation fails. VMA documents that this flag can reject an allocation based on the reported budget before the driver attempts it. A targeted retry without that advisory limit gives the driver a chance to create a required buffer. The original error also hides the Vulkan result and requested buffer size. I merged main through `28648188` into my local integration branch (`f95846dc`), rebuilt, and tested the retry change. I reviewed the code and launched and played Demon's Souls with the change applied. This is a local integration test with other changes present, rather than an isolated A/B test on clean main; I am reporting the startup result, not a full compatibility or stability claim. Reproduction: launch Demon's Souls and allow the renderer to initialize. Expected: attempt required buffer creation before treating an advisory budget rejection as fatal, and report actionable allocation details if creation still fails. The proposed PR is limited to the retry and allocation diagnostics in `streamBuffer.cpp`. Proposed change: #1802
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:06:04 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
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
github/KytyPS5--KytyPS5#1801
No description provided.