Skip to content
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

Vulkan Crash on 0.0.12-10865 till 0.0.12-10915 work fine on 0.0.12-10811 & 0.0.11-10810 #8955

Closed
ImpactKaizer opened this issue Sep 22, 2020 · 31 comments · Fixed by #9131
Closed
Labels
Driver: Intel Proprietary Intel OpenGL or Vulkan driver Render: Vulkan

Comments

@ImpactKaizer
Copy link

RPCS3 Crashes from 0.0.12-10865 till 0.0.12-10915 when setting render to vulkan and Anti-Aliasing (Auto & Disabled).
Tested with 0.0.12-10811 & 0.0.11-10810 on the same settings on the same device.
which is a GPD Win Max

OS :Archlinux + KDE
HDD: 1TB NVME
Ram:16GB
CPU:Intel i5-1035G7
GPU:Intel Iris Plus Graphics 940 - 64EU

RPCS3-0.0.12-10865.log
RPCS3-0.0.12-10885.log
RPCS3-0.0.12-10915.log

@kd-11
Copy link
Contributor

kd-11 commented Sep 22, 2020

  1. Provide rpcs3.log from ~/.cache/rpcs3/RPCS3.log which contains information about the emulator operation.
  2. Clean rpcs3 data before running the emulator. You can simply remove ~/.cache/rpcs3

Since other devices are unaffected this is likely some intel-specific or system-specific issue, I can confirm archlinux + KDE run just fine under RADV as this is my primary setup.

@kd-11 kd-11 added Need Information Driver: Intel Proprietary Intel OpenGL or Vulkan driver labels Sep 22, 2020
@ImpactKaizer
Copy link
Author

Yeah on my other devices like the A15 AMD + Nvidia it is fine along with and my Desktop AMD CPU + GPU it loads fine

@ImpactKaizer
Copy link
Author

I've attached the log after deleting everything from the cache with version 0.0.12-10915 @kd-11 still the same it crashes
RPCS3.log

@kd-11
Copy link
Contributor

kd-11 commented Sep 22, 2020

@ImpactKaizer Log looks fine, just unexpected crashing. How many titles are affected?

@kd-11
Copy link
Contributor

kd-11 commented Sep 22, 2020

Also, which is the first affected build? You can bisect to figure that out.

@ImpactKaizer
Copy link
Author

@ImpactKaizer Log looks fine, just unexpected crashing. How many titles are affected?

I tried with mostly

SRW OG Dark prison
2nd SRW OG
And Demon Souls

@ImpactKaizer
Copy link
Author

Also, which is the first affected build? You can bisect to figure that out.

@kd-11 I first Tried with 0.0.12-10865 & also Tried 0.0.12-10851 they also crash on start-up , but seem to fine with 0.0.12-10839.

@bevanweiss
Copy link
Contributor

@ImpactKaizer the ideal situation is if you can test the intermediate builds (i.e. those between 10839 and 10851) to identify exactly which build it was that caused the regression. This narrows it down from being hundreds/thousands of lines of code changes to just being maybe a few dozen.
It just makes it that little bit easier for the likes of kd-11 to narrow down where the problem might be :)

@ImpactKaizer
Copy link
Author

ImpactKaizer commented Sep 23, 2020

@ImpactKaizer the ideal situation is if you can test the intermediate builds (i.e. those between 10839 and 10851) to identify exactly which build it was that caused the regression. This narrows it down from being hundreds/thousands of lines of code changes to just being maybe a few dozen.
It just makes it that little bit easier for the likes of kd-11 to narrow down where the problem might be :)

@bevanweiss &@kd-11 it seems to have started with 0.0.12-10846.
As anything below runs fine with vulkan for me on the device mentioned , if you required logs from from the build mentioned let me know.

@ghost
Copy link

ghost commented Sep 23, 2020

Also got this on my laptop with AMD/Intel GPUs using the RADV ACO driver.
It only happens on Kingdom Hearts for now though.

@kd-11 kd-11 added In Progress This issue is actively being investigated at the moment. and removed Need Information labels Sep 23, 2020
@kd-11
Copy link
Contributor

kd-11 commented Sep 23, 2020

If it only happens in one game then it is not the same issue. I think this happens because I used doubles in the vertex shader, I'll revert to single floats and see if precision degrades or not. fp64 is likely not supported on intel.

@kd-11
Copy link
Contributor

kd-11 commented Sep 23, 2020

Try with the build that will be generated by #8967. If it still crashes, let me know and we can get more information from SDK layers.

@kd-11 kd-11 added Render: Vulkan and removed In Progress This issue is actively being investigated at the moment. labels Sep 23, 2020
@ImpactKaizer
Copy link
Author

Try with the build that will be generated by #8967. If it still crashes, let me know and we can get more information from SDK layers.

@kd-11 so now we wait for the compiled build mentioned ?

@ImpactKaizer
Copy link
Author

@kd-11 I cleaned the cache & it still crashes with vulkan setting I've added the log for reference.
RPCS3.log

@kd-11
Copy link
Contributor

kd-11 commented Sep 23, 2020

Then it is a lot more complicated, segfaults are not going to be stored in any meaningful way in the log. If you have coredumps configured to write to disk, you can get a stacktrace using gdb. If you are able to, I would highly advice to compile rpcs3 for linux from AUR instead of downloading the appimage as there are too many variables that I cannot control (appimages are not binaries, they are archives with other components bundled in).
You can also enable "debug output" option in the config file for the game you're testing and install the vulkan-devel package from pacman, then run the game and attach the log. As I cannot see any problems in the log, I cannot proceed without a similar setup, but I have an AMD cpu.

@ImpactKaizer
Copy link
Author

Then it is a lot more complicated, segfaults are not going to be stored in any meaningful way in the log. If you have coredumps configured to write to disk, you can get a stacktrace using gdb. If you are able to, I would highly advice to compile rpcs3 for linux from AUR instead of downloading the appimage as there are too many variables that I cannot control (appimages are not binaries, they are archives with other components bundled in).
You can also enable "debug output" option in the config file for the game you're testing and install the vulkan-devel package from pacman, then run the game and attach the log. As I cannot see any problems in the log, I cannot proceed without a similar setup, but I have an AMD cpu.

@kd-11 I also have rpcs3 from the Aur but I think that's version 10910 I'll update and installed the devel package as mentioned as for the config file were is it located / path since I never tried this stuff before ?

@kd-11
Copy link
Contributor

kd-11 commented Sep 23, 2020

~/.config/rpcs3/custom_configs/<GAME_ID>/config.yml
There is another way by enabling the debug menu in the GUI, but I cannot remember where that file is on linux.

@ImpactKaizer
Copy link
Author

@kd-11 I've enabled the Debug output as requested.
With build 0.0.12-10933 from AUR
RPCS3.log

@ImpactKaizer
Copy link
Author

~/.config/rpcs3/custom_configs/<GAME_ID>/config.yml
There is another way by enabling the debug menu in the GUI, but I cannot remember where that file is on linux.

@kd-11 do you require any other files aside rpcs3.log

@ImpactKaizer
Copy link
Author

Any update regarding this issue ? @kd-11

@kylon
Copy link

kylon commented Oct 21, 2020

@kd-11
yeah, no doubles for intel

"double rcp_precise(double x)\n"

reverting all the doubles to floats fixes the vulkan crash

@AniLeo
Copy link
Member

AniLeo commented Oct 21, 2020

I don't get any crashing on anv with HD 530. This is likely specific to that generation of iGPUs.

@kylon
Copy link

kylon commented Oct 21, 2020

I don't get any crashing on anv. This is either Windows specific (more likely) or specific to that generation of iGPUs.

iris plus crashes on windows and linux, both with latest drivers (archlinux and beta for windows)

@AniLeo
Copy link
Member

AniLeo commented Oct 21, 2020

Have you tested with mesa-git AUR?

@kylon
Copy link

kylon commented Oct 21, 2020

nope

@kd-11
Copy link
Contributor

kd-11 commented Oct 21, 2020

I forgot to remove doubles from rcp_precise and revert the generic path to the old method. Will fix soon in upcoming driver compatibility patches.

@kd-11
Copy link
Contributor

kd-11 commented Oct 25, 2020

Try with #9131.

@kylon
Copy link

kylon commented Oct 25, 2020

working

@ImpactKaizer
Copy link
Author

@kd-11 @kylon @AniLeo can I build from the Aur repo now or do I have to wait a bit ?

@kd-11
Copy link
Contributor

kd-11 commented Oct 27, 2020

If AUR correctly tracks our git then you can build from AUR without issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Driver: Intel Proprietary Intel OpenGL or Vulkan driver Render: Vulkan
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants