Bevy: thread 'main' panicked at 'Unable to find a GPU! Make sure you have installed required drivers!'

Created on 7 Nov 2020  ·  12Comments  ·  Source: bevyengine/bevy

Bevy version

Current master (f54788527be49c445ec6e1c8831496a821d4fcc2).

Operating system & version

Archlinux, with Xorg

What you did

I tried to run cargo run --example $EXAMPLE. All but ecs_guide, headless, headless_wasm, hello_word, and startup_system failed with the following error:

thread 'main' panicked at 'Unable to find a GPU! Make sure you have installed required drivers!', crates/bevy_wgpu/src/wgpu_renderer.rs:37:14
``

**Additional information**

As far as I can tell, my GPU drivers should work but I don't know how to check it! I'm using a R9 280X as reported by `lspci`:

``` shell
$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.6 PCI bridge: Intel Corporation 82801 PCI Bridge (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation P67 Express Chipset LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti XT [Radeon HD 7970/8970 OEM / R9 280X]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti HDMI Audio [Radeon HD 7870 XT / 7950/7970]
03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
05:00.0 SATA controller: JMicron Technology Corp. JMB362 SATA Controller (rev 10)
06:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
07:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 01)
08:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev c0)

And I have the xf86-video-ati driver installed:

$ pacman -Ss xf86-video
extra/xf86-video-amdgpu 19.1.0-2 (xorg-drivers)
    X.org amdgpu video driver
extra/xf86-video-ati 1:19.1.0-2 (xorg-drivers) [installed]
    X.org ati video driver
extra/xf86-video-dummy 0.3.8-4 (xorg-drivers)
    X.org dummy video driver
extra/xf86-video-fbdev 0.5.0-2 (xorg-drivers)
    X.org framebuffer video driver
extra/xf86-video-intel 1:2.99.917+908+g7181c5a4-1 (xorg-drivers)
    X.org Intel i810/i830/i915/945G/G965+ video drivers
extra/xf86-video-nouveau 1.0.16-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards
extra/xf86-video-openchrome 0.6.0-4 (xorg-drivers)
    X.Org Openchrome drivers
extra/xf86-video-sisusb 0.9.7-3
    X.org SiS USB video driver
extra/xf86-video-vesa 2.5.0-1 (xorg-drivers xorg)
    X.org vesa video driver
extra/xf86-video-vmware 13.3.0-2 (xorg-drivers)
    X.org vmware video driver
extra/xf86-video-voodoo 1.2.5-11 (xorg-drivers)
    X.org 3dfx Voodoo1/Voodoo2 2D video driver
community/xf86-video-qxl 0.1.5-8 (xorg-drivers)
    Xorg X11 qxl video driver
bug duplicate

All 12 comments

The message is not super clear, but to use the default bevy_wgpu your system needs to have Vulkan drivers installed which doesn't seem to be the case for your system. After installing drivers it should work.

Duplicate of #96

I'm running into this issue despite being able to execute vkcube successfully. As far as I can tell, my vulkan drivers should be set up correctly. I'm using NixOS unstable with Xorg.

I’m surprised. I followed the arch wiki, and I have both amdvlk and vulkan-radeon installed, and as you can see, it should be working.

$ ls /usr/share/vulkan/icd.d/
amd_icd32.json  amd_icd64.json  radeon_icd.x86_64.json

Who knows about Asgardia?

On Sun, Nov 8, 2020 at 1:32 PM Robin Moussu notifications@github.com
wrote:

I’m surprised. I followed the arch wiki
https://wiki.archlinux.org/index.php/Vulkan, and I have both amdvlk and
vulkan-radeon installed, and as you can see, it should be working.

$ ls /usr/share/vulkan/icd.d/

amd_icd32.json amd_icd64.json radeon_icd.x86_64.json


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bevyengine/bevy/issues/807#issuecomment-723546182,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHGK5TAEPJA7ULGHMDLUXLDSOZJSFANCNFSM4TNRT4HQ
.

>

Raza Amir

vkcube lead me to the right tracks

$ ./vkcube
failed to initialize wayland, falling back to xcb
amdgpu_device_initialize: DRM version is 2.50.0 but this driver is only compatible with 3.x.x.
No Vulkan devices found.

I don't have time right know to look at it, but I will do in the next days.

Open up my LinkedIn profile

RAZA KHAN aka SUPERMAN

On Sun, Nov 8, 2020 at 1:41 PM Robin Moussu notifications@github.com
wrote:

vkcube lead me to the right tracks

$ ./vkcube
failed to initialize wayland, falling back to xcb
amdgpu_device_initialize: DRM version is 2.50.0 but this driver is only compatible with 3.x.x.
No Vulkan devices found.

I don't have time right know to look at it, but I will do in the next days.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/bevyengine/bevy/issues/807#issuecomment-723546936,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHGK5TH7SW6WQZQD73O4N33SOZKSNANCNFSM4TNRT4HQ
.

>

Raza Amir

I get the same result. I'm on a ThinkPad with integrated Intel graphics. vkcube happily spins along without any output.

❯ lspci | rg VGA
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)

❯ vulkaninfo | rg GPU
        GPU id  : 0 (Intel(R) HD Graphics 520 (SKL GT2))
        GPU id  : 0 (Intel(R) HD Graphics 520 (SKL GT2))
        GPU id  : 0 (Intel(R) HD Graphics 520 (SKL GT2))
        GPU id  : 0 (Intel(R) HD Graphics 520 (SKL GT2))
        GPU id  : 0 (Intel(R) HD Graphics 520 (SKL GT2))
GPU id : 0 (Intel(R) HD Graphics 520 (SKL GT2)):
GPU0:
    deviceType     = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU

@robinmoussu IIRC, vulkan will only work on driver/hardware combinations that support DRI 3. I'm sure there's some technical reason why.

I admit that I assumed that my GPU would be able to run vulkan. If it doesn't this just give me one more reason to upgrade ;)

@rj00a I'm also on NixOS and was hitting this issue. I managed to make the examples work by following https://github.com/bevyengine/bevy/blob/master/docs/linux_dependencies.md#nixos :smile:

Thank you, that fixed the problem for me. Although I only had to add the build.rs file; I think the part about patching glslang_validator might be obsolete?

Yeah I didn't have to do the glslang_validator patching either. I just assumed that it's only needed for some examples (probably the ones with shaders).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cart picture cart  ·  14Comments

cart picture cart  ·  18Comments

coolit picture coolit  ·  22Comments

andreasterrius picture andreasterrius  ·  27Comments

cart picture cart  ·  80Comments