Segmentation fault (core dumped)

(Khải) #1

Hello everyone, I’m starting to learn Amethyst by reading the book. When I do the pong turtorial, the code compiles but the program crashes. Is there a way to fix this?

Logs from cargo run and vulkaninfo:

(Théo Degioanni) #2

The latest version (1.1.108) of the Vulkan SDK currently has a bug which causes a segfault in the validation layers when run with Amethyst. This has already been patched ( in the Validation Layers git, however this has not been in a release yet. For now to solve this you can do any one of the following:

  1. Downgrade your Vulkan SDK to 1.1.106
  2. Always run in --release mode, which will cause the validation layers to not be loaded
  3. Build the Vulkan SDK/Validation Layers from source for the latest fix
(Erlend Sogge Heggen) pinned #3
(Khải) #4

Thank you for your helpful response. I want to also add my own solution to this in case anyone else encounters the same issue: Uninstalling Validation Layer also works.