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?

Repo: https://github.com/khai-learn-rust/amethyst-pong.git
Logs from cargo run and vulkaninfo: https://gist.github.com/KSXGitHub/c2935f5c8e00c08ff4dce30c99d8c628

(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 (https://github.com/KhronosGroup/Vulkan-ValidationLayers/pull/1035) 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
3 Likes
(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.