Skip to content

[macOS] [BB] MoltenVK Crash (possibly tessellation related) #1820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shinra-electric opened this issue Dec 18, 2024 · 4 comments · Fixed by #2458
Closed

[macOS] [BB] MoltenVK Crash (possibly tessellation related) #1820

shinra-electric opened this issue Dec 18, 2024 · 4 comments · Fixed by #2458

Comments

@shinra-electric
Copy link

shinra-electric commented Dec 18, 2024

Using latest main (ccfb1bb) Bloodborne [CUSA03173] will reproducibly crash with two errors when trying to enter the Forbidden Woods:

[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Vertex shader requires output buffer, but there is no free slot to pass it.
[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Tessellation control shader requires tessellation level output buffer, but there is no free slot to pass it.
[Debug] <Critical> vk_graphics_pipeline.cpp:operator():339: Assertion Failed!
Failed to create graphics pipeline: ErrorInitializationFailed

Unfortunately I can't confirm if the tessellation branch was the cause, as all previous GitHub actions have expired.

Edit: I should note that on a previous build I was able to enter this area and reach the door at the end, although at that time I did not have the password to proceed further.

Terminal Log:
BB Terminal Output.txt

Save (just move forward through the doorway to cause the crash):
CUSA03173_save.zip

@squidbus
Copy link
Collaborator

I can't use the save file here to reproduce as I don't have the DLC.

@shinra-electric
Copy link
Author

I only have the Old Hunters Edition....

But this area is close to the Cathedral Ward lantern in the base game, maybe someone with the same game version can donate a save.

Here is the exact location:

BB_Crash.mp4

@shinra-electric
Copy link
Author

shinra-electric commented Dec 28, 2024

Adding details for another crash. It is likely the same cause as the one above.

[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Vertex shader requires output buffer, but there is no free slot to pass it.

I encountered a reproducible crash in the first chalice dungeon in CUSA03173 1.09.

The location is the very first dungeon. In order to access it you need to have defeated the blood-starved beast, so here is a save:
SPRJ0005.zip

Logs
shad_log.txt
Terminal Saved Output.txt

Location
Screenshot 2024-12-27 at 22 36 36

ChaliceDungeonCrash.mp4

System
M1 Pro
Sequoia 15.2

@shinra-electric
Copy link
Author

shinra-electric commented Jan 9, 2025

I tried replacing libMoltenVK.dylib with one including Squidbus' PR Reduce number of unused pipeline bindings reserved for argument buffers.

It fixed the first instance of the crash, and I can now proceed into the forbidden woods.

However it still crashes at the same point entering the first chalice dungeon:
error: cannot reserve 'buffer' resource location at index 17

ChaliceD.txt
shad_log.txt

Edit:
I get another crash with the same error message in the Forbidden Woods when entering the cave that leads to the back of Iosefka's clinic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants