-
Notifications
You must be signed in to change notification settings - Fork 617
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
[MacOS] Corrupt pipeline cache when when booting game a 2nd time #396
Comments
You should report that to the MoltenVK project |
This issue can be reliably reproduced when rendering Kakariko Village inside Breath of the Wild. Steps to reproduce:
Now Cemu will crash when loading BotW, with the same error message as OP provided |
What happens when you run your emulator with the Vulkan validation layer enabled? (You don't even have to do this on a Mac; you can use Linux or Windows for this as well.) |
RPCS3 had a very similar issue and it was caused by the default thread stack size being too small. |
Anyone have a definite fix to this issue as of now? |
Im back, 3 months later, and there is still no definite fix to this issue. However, I do have a temporary solution that works for me every time. Following the path below: Once we open the path we find a folder named Delete that, then open the game and you can play it normally, however, as expected, you would have a poor gaming time because the mac needs to regenerate every shader again. Another method is just to open the cemu menu, then right click the game, then click It does the same thing, but just faster. Both ways lead to the deletion of the shader caches and generated pipelines, which would make it pretty slow but like it works so i'll take it as a temporary solution. |
Hey @EDED2314 I have found that you only need to delete
It's a workaround/quick fix, but it works for now. |
Could you share that file? Perhaps it can help people from MoltenVK fix the underlying issue. |
I recommend this: https://github.com/kailous/BotwLaunch |
Sadly at one point when the cache gets too big, I would still have to delete the cache... |
this is not the best way but if you copy the shader renders folder to the desktop before lunching the game and when its started replace the new folder in cache with the one in the desktop, you can play nicely. |
Is there no solution to this yet? |
Hey for me it crashes when loading the cached Vulkan pipelines, only when those get above ~4180. If that's also your case you only need to delete the file ending in vkpipeline.bin in Library/Caches/Cemu/shaderCache/transferable/ and not the shaders one. Pipelines compile way faster than shaders so not having to recompile shaders is already an improvement to reduce stuttering when loading your save. Furthermore, if you walk around a little after loading the game and quit you should get less than 4000 cached pipelines that you can backup and paste in the above folder before every play session to further reduce and perhaps even eliminate stuttering when first loading. With those two tricks I get to play very smoothly since recompiling just the pipelines and not the shaders when exploring does not impact my performance at all. That said I'm on an M3 pro so your mileage may vary. |
Something a bit strange seems to be going on here, at least on my machine. As this earlier comment indicates, deleting shaderCache/driver/vk/00050000101c9400.bin used to work with a contemporaneous version of Cemu. However, as mentioned in the comment just above mine, I'm now needing to delete the vkpipeline file (and I can leave the other one alone). Did the original underlying issue get fixed, and is this new issue something different, or is the new issue a red herring? I'm currently running Cemu 2.0-78 on OS 14.4.1. Unfortunately I never made a note of the versions that used to work, but I was likely running on OS 12 at the time (I skipped 13). |
Despite being disabled in InitBlendState, this still causes errors on MoltenVk, so just skip it altogether Seemingly fixes cemu-project#396 (there's a multitude of errors there in the comments, specifically referring to the issue), however I don't own BOTW and can't confirm
Despite being disabled in InitBlendState, this still causes errors on MoltenVk, so just skip it altogether Seemingly fixes cemu-project#396 (there's a multitude of errors there in the comments, specifically referring to the issue), however I don't own BOTW and can't confirm
Despite being disabled in InitBlendState, this still causes errors on MoltenVk, so just skip it altogether Seemingly fixes cemu-project#396 (there's a multitude of errors there in the comments, specifically referring to the issue), however I don't own BOTW and can't confirm
Despite being disabled in InitBlendState, this still causes errors on MoltenVk, so just skip it altogether Seemingly fixes cemu-project#396 (there's a multitude of errors there in the comments, specifically referring to the issue), however I don't own BOTW and can't confirm
Despite being disabled in InitBlendState, this still causes errors on MoltenVk, so just skip it altogether Seemingly fixes cemu-project#396 (there's a multitude of errors there in the comments, specifically referring to the issue), however I don't own BOTW and can't confirm
I'm using the latest commit 271a4e4 nightly and the latest molten-vk via homebrew
I've noticed that if I run BOTW it all runs fantastic!!
Then if I quit and boot the game again, it crashes instantly with the error
Failed to create pipeline cache
If I then delete the shaderCache folder then I can boot again and it works great again.
This is the full log
The text was updated successfully, but these errors were encountered: