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

ERROR_INITIALIZATION_FAILED on Linux #120

Open
Dispersia opened this issue May 28, 2024 · 5 comments
Open

ERROR_INITIALIZATION_FAILED on Linux #120

Dispersia opened this issue May 28, 2024 · 5 comments

Comments

@Dispersia
Copy link

Hello, I am getting the error in the title when attempting to run Blade. Got this when testing zed, but tried to run blade-graphics examples directly and they receive the same error. I am able to successfully run vkcube, wgpu apps and a custom vulkan example correctly. I don't really see anything off about the line it's erroring on (just a simple swapchain setup)

I am currently using the nvidia-open drivers, which might have to do with it, due to a system error in arch under 550, but I assume a lot of us are doing this right now.

Attached the full error and my vulkaninfo, but will continue to look
error.txt
vulkaninfo.txt

@kvark
Copy link
Owner

kvark commented May 29, 2024

Thank you for filing!
Please provide a bit more info:

  1. Log from Blade's bunnymark example launched with this environment RUST_LOG=blade_graphics=debug
  2. Output from vkcube --gpu_number 0
  3. Output from cat /etc/prime-discrete

@Dispersia
Copy link
Author

bunnymark.txt
vkcube.txt

i do not have an /etc/prime-discrete, i tried to install nvidia-prime and that didn't create it
since i should have given specs:
Laptop: Arch
Wayland: Hyprland

@kvark
Copy link
Owner

kvark commented May 30, 2024

Thank you!
Where you running bunnymark in debug or release? We'd need the debug.
What is the git revision you are testing with?
Do you have vulkan-validation-layers installed?

@Dispersia
Copy link
Author

it was ran in debug, but i didn't have the validation layers. I compiled them and pointed VK_LAYER_PATH to the build/layers directory, but it didn't seem to do anything, is there something else i need to do for them to get loaded?

@kvark
Copy link
Owner

kvark commented Jun 2, 2024

I'm not seeing anything obvious, and the validation layers are silent. This means it's likely that a driver issue is present.
Fortunately, you have an open source NVidia driver (nouveau?), so I suggest just building it with debug symbols and running with it. Presumably, you'd just need to set the VK_ICD_FILENAMES to point to the new ICD, and you'd be able to step through the code and see what's up in there.
I know it's not the easiest thing to do, and I appreciate all the help you provided in investigating this issue so far. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants