Open kd-11 opened 2 years ago
SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Device lost (Driver crashed with unspecified error or stopped responding and recovered) (VK_ERROR_DEVICE_LOST)
(in file /private/var/folders/tn/f_9sf1xx5t14qm_6f83q3b840000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPresent.cpp:547[:4], in function flip) (errno=316)
(in file /private/var/folders/tn/f_9sf1xx5t14qm_6f83q3b840000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) (errno=316)
On Driver San Fransisco after a race ends with build RPCS3 v0.0.20-13208-6dd5482a Alpha RPCS3.log Edit: Could be caused by Trophies displaying since I got a trophy when the race ended. Workaround in this case is to turn off show trophy popups in emulator settings. Thanks Nol Rinale in the RPCS3 Discord for the heads up on this
I have noticed one thing, if I restart my Mac and start fresh without anything opened in the background, the game works very well until I manually close it. If i open the app again immediately I get the error message after only about 2 minutes of gameplay. If I play again after giving it some rest it works really well. I guess this might be related to high cpu and ram usage that rpcs3 takes on macOS but I am not sure.
Nol Rinale here, today playing MGS2 from the HD Collection I got a Trophy and the emulator crashed like it usually does, heres the log RPCS3.log
And heres the error
Assertion Failed! Vulkan API call failed with unrecoverable error: Device lost (Driver crashed with unspecified error or stopped responding and recovered) (VK_ERROR_DEVICE_LOST) (in file /private/var/folders/tn/f_9sf1xx5t14qm_6f83q3b840000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPresent.cpp:547[:4], in function flip) (errno=316) (in file /private/var/folders/tn/f_9sf1xx5t14qm_6f83q3b840000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) (errno=316)
I'm also attaching the native MacOS error trace I got after the emulator crashed so maybe can give you more clues macosrpsc3crash.txt
Playing Tales of Vesperia on M1 Macbook with Fidelity FX set to 50%. It seems the game or the emulator thinks that i already have the trophy and ends up getting real upsetty spagetti 5 seconds after i get the trophy. Closing emulator getting the trophy again does not result in a freeze but does result in about 20-40 mins wasted. Here's my log:
I try to use the patch from MoltenVK, then the error is disappeared or seldom appeared.
Download the MoltenVK with DXVK patches. macos_dxvk_patched-1.1.6_2.tar.xz https://github.com/Gcenx/MoltenVK/releases/tag/v1.1.6
Replace libMoltenVK.dylib are compiled from the RPCS3 project with the above patch.
could you show me the file path for where the libMoltenVK.dylib file is supposed to be that i need to replace? I'm on MacOS and can't seem to find it
Patch file decompress from macos_dxvk_patched-1.1.6_2.tar.xz is at ./Package/Release/MoltenVK/dylib/macOS/libMoltenVK.dylib
Need to be replaced file is at RPCS3.app
/Contents/MacOS/Frameworks/libMoltenVK.dylib
I have noticed one thing, if I restart my Mac and start fresh without anything opened in the background, the game works very well until I manually close it. If i open the app again immediately I get the error message after only about 2 minutes of gameplay. If I play again after giving it some rest it works really well. I guess this might be related to high cpu and ram usage that rpcs3 takes on macOS but I am not sure.
Do you have the thermal pad mod done? @kd-11 , would throttling perhaps cause instability, especially considering the whole "if I play again after giving it some rest it works really well"? Also, does anyone have a 16GB MacBook Air to compare against? If this is a memory issue I imagine that having another of the same model with more memory might result in useful information.
May be a factor for @Red1860 who initially made the observation. I have a mini which does not suffer from the thermal problems as far as I can tell. RPCS3 for MacOS is still buggy on the mini, but it doesn't crash too badly from my testing.
I have the thermal pad mod done, there is a demo for God of War collection Volume 2, do you want me to test it? Also, do I have to @ you to notify you? Or do you see it if I comment like this? @kd-11 (lol)
I can see all comments, no need to tag explicitly.
As for the demo, give it a try just so we can have some more data in the ticket. Just try safe settings (driver wakeup delay to something like 200) if you encounter crashing.
Ok, sorry, I didn't know if you would be notified or not, I didn't want to ping you, but on other websites they ask that you quote the previous person to notify them and allow them to respond, I thought it was the same here.
Ok, will do, I won't be able to test immediately, but later tonight I can. I will come back once I have the data. Do you just want the log file? What else do you want?
Log file and just general information how the game runs. MacOS support is still very early, so any updates would be helpful.
I also have GT HD concept, I have uploaded the log file before in an issue that was closed as a duplicate to this thread (lol), do you want me to put it here as well? The text behaves slightly differently than described, as for me it did not ever flicker, it just had weird boxes in random places.
It would be a good idea to also test the games using software-emulated vkSemaphore (Metal Semaphore in the Debug tab).
I thought Software-Emulation was slower? I was using the emulator with MLTEvent-Prefered.
Also I have been encountering these issues that I have posted on this thread. https://github.com/RPCS3/rpcs3/issues/11660#issue-1166957783
I’m guessing these are mostly related to Thermal issues rather than memory but I’m not sure.
Will test both with and without vk-semaphore, total of 4 log files should be the results. I have the 7-core GPU, so the comparison won't be perfect, but it should be good enough to get basic information.
vkSemaphore is used for GPU synchronization, and it has to be emulated somehow, either in software or by mapping it to the Metal API (either MTLEvent or MTLFence). MTLEvent has issues when running under Rosetta 2 and can't be enabled as of MVK 1.1.7. MTLFence works for the most part, but doesn't map to vkSemaphore perfectly, so there might be issues. Since all the games I tested seemed to work fine with MTLFence, which is almost twice as fast as software emulation, I decided to enable it by default. "MTLEvent preferred" basically enables MTLEvent on AMD and AArch64, and MTLFence under Rosetta.
~/Library/Application Support/rpcs3/GuiConfigs/CurrentSettings.ini
[Meta]
showDebugTab=true
For the record, ~
is your home folder. ~/Library
is not the same as /Library
.
After turning vksemaphore to software (GT HD concept):
I cannot exit the emulator normally as this error pops up every time I hit "ok". This error occurred after I started a race, did a lap, quit the race, and it crashed right as I selected a new car. I had to force quit it. Also, performance in the menus was exactly half the frame rate as when vksemaphore is set to MTLEvent Preferred, and performance in the race was about the same. Fewer graphical glitches on the text, but some text still had the boxes, and this is the same across both with and without preferred mode. Temperatures were at 160 degrees F. (well under the 212 degrees F = 100 C where it throttles) log file: GT_HD_vk_software.log.zip vksemaphore set to normal: GT_HD_vk_preferred.log.zip
God of War coming up next
Excessive detail: In the first log, I went into the game, chose time trial (because I left my controller at home and drifting is difficult on controller, let alone keyboard), chose the Lancer Evo X VIII (the 8th evo, I forget the exact name), went into the race and did under a lap, stopping before the last turn. I then left the race, chose Time trial again, chose the Ferrari, and that's when it crashed. In the second log, I did the exact same things, but I chose the GT-R, completed the entire lap, and left the race. Then I selected the drift version of the Suzuki Cappuccino, entered the race, completed a lap, then quit the race.
Regression with GoldenEye 007 Reloaded after build Build 0.0.21-13428-3ed5a935. This build was the last build to use Molten-VK 1.1.8
F {RSX Worker 7} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX Worker 10} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX Worker 6} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX Worker 4} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX Worker 9} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX Worker 5} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX Worker 3} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX Worker 1} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX Worker 2} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX Worker 8} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error)
Using Molten-VK 1.1.8 in the latest master build fixes the issue
F {RSX.W2} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV)
I get this error when playing 007 Blood stone, it had been working fine a few emulators a while ago, but now i can't even play the game anymore :( Can you fellas fix this issue?
Any new on this :(
have submitted an issue, before version 13549 I can play Dynasty warriors 7 but later versions can't :(
Metal gear solid iv visual glitch of the player, not playable more...
Cross-referencing this issue here https://github.com/RPCS3/rpcs3/issues/12357
Update: @fann1993814 recommendations work for SSF IV. More info -> https://github.com/RPCS3/rpcs3/issues/12357#issuecomment-1195155254
Facing this issue with M1 chip.
F {RSX.W2} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) F {RSX.W1} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error)
Facing this issue in Tales of Graces f, get as far as past the starting new game screen.
F {RSX.W2} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV)
(in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe)
(in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error)
F {RSX.W1} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV)
(in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe)
(in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error)
And Tales of Xillia, get past the company logos
F {RSX.W2} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (errno=316=Unknown error: 316) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) (errno=22=Invalid argument) F {RSX.W1} SIG: Thread terminated due to fatal error: Assertion Failed! Vulkan API call failed with unrecoverable error: Invalid shader code (VK_ERROR_INVALID_SHADER_NV) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/VKPipelineCompiler.cpp:66[:95], in function int_compile_graphics_pipe) (errno=316=Unknown error: 316) (in file /private/var/folders/xx/vl5f934s6k927z1vyyl9cxth0000gn/T/cirrus-ci-build/rpcs3/Emu/RSX/VK/vkutils/shared.cpp:107[:4], in function die_with_error) (errno=22=Invalid argument)
We may need to upgrade/downgrade moltenvk version used. My guess is that something broke in spirv-cross which transpiles spirv to metal and the version of moltenvk we're using inherited the bug. This is an external issue that we have little control over at this time, so we'll just try changing the library version instead.
@sinbadbd @alaneje
Try and apply this fix here -> https://github.com/RPCS3/rpcs3/issues/12357#issuecomment-1195155254 I used to see the same error ( VK_ERROR_INVALID_SHADER_NV) while playing SSF IV.
Also, it would be good to know if the same fix would work for you guys.
@guikeller Attempted this, no change unfortunately
Does #12456 improve anything?
@nastys Apply the fix, but same issue happening
Metal 3 is coming with some of the features that it was missing previously, meaning that MoltenVK will be able to support Vulkan significantly better in the future. We may want to wait until that update goes public (I think it's in beta RN).
Used the #12456 version but still no change :(
Metal 3 is coming with some of the features that it was missing previously, meaning that MoltenVK will be able to support Vulkan significantly better in the future. We may want to wait until that update goes public (I think it's in beta RN).
I think it's better to update MoltenVK now as patches to MoltenVK have supposedly improved compatibility and performance and MoltenVK will no doubt take some time to implement Metal 3 features once Ventura lands supposedly later this month.
Metal 3 is out and the MoltenVK folks seem to be working on things. https://github.com/KhronosGroup/MoltenVK/discussions/1616
Have noticed that I am also experiencing missing text in Disgaea D2 (BLUS31313) on Mac OS. Using latest firmware and latest update (v0.0.24-14112). Rest of the game works fine, just the text is the problem. Similar issues seem to occur in Disgaea 4, although D3 seems to work fine.
Have tweaked every setting to try and fix, but nothing has worked. Have tried updating MoltenVK and replacing my libMoltenVK.dylib file, but with no success.
Details:
OS: Monterey 12.5.1 Macbook Air M1 Chip
Pictures:
Log:
Tried again on latest version: 0.0.24-14211-af8c8714 Alpha | master and Tales of Graces f & Tales of Xillia now boot.
I'm seeing the same visual issues reported on GoldenEye Reloaded, and this is extending to 007 Legends too when using the latest build of RPCS3 on macOS. Is there a solution for this yet? Happy to post diagnostic info if someone can tell me how to do it!
I'm seeing the same visual issues reported on GoldenEye Reloaded, and this is extending to 007 Legends too when using the latest build of RPCS3 on macOS. Is there a solution for this yet? Happy to post diagnostic info if someone can tell me how to do it!
Requires a hardware feature that metal seemingly doesn't support.
Here are some of the updates for Metal 3.1 which I got from here. (MoltenVK have already started working on supporting some of them).
The updated specs are available here.
I don't know if any of these are useful for RPCS3 or not, just throwing them in here.
Help im new to emulation, can i get help with my graphics for spider man shattered dimensions? RPCS3.log
This is not to request help but to report issues
MacOS will have problems unrelated to the core application, largely due to the fact that vulkan is not natively supported on macOS. Let's track any major problems in one place to avoid creating too many tickets that may end up sitting unresolved for a long time.
Known Issues
Comment with issue information and a moderator will triage and add to the TODO list above.