#Error no surface but window still opens?

34 messages · Page 1 of 1 (latest)

mossy lintel
#

When i run i get:

❯ cargo run
    Blocking waiting for file lock on build directory
    Finished `dev` profile [optimized + debuginfo] target(s) in 4.97s
     Running `target/debug/physics3d`
2024-04-01T03:41:55.257896Z  INFO bevy_winit::system: Creating new window "App" (0v1)
2024-04-01T03:41:55.261658Z ERROR log: GENERAL [Loader Message (0x0)]
        vkCreateInstance: Found no drivers!    
2024-04-01T03:41:55.261672Z ERROR log:  objects: (type: INSTANCE, hndl: 0x5880db963d80, name: ?)    
2024-04-01T03:41:55.296920Z  INFO bevy_render::renderer: AdapterInfo { name: "Mesa Intel(R) UHD Graphics (TGL GT2)", vendor: 32902, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Gl }
2024-04-01T03:41:55.372974Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.

But the window still opens, im on arch with wayland

waxen lantern
#

You need to install vulkan drivers

fresh nymph
#

Don't think this is related to Vulkan specifically, as it fails with OpenGL too, so I think this is more of an Integrated GPU driver issue instead

#

It also doesn't say from the logs on which platform @mossy lintel is from

mossy lintel
#

running on a laptop without any gpu

#

ah didnt see ill try this anyway asap

#

is there a way to get more detailed logs?

fresh nymph
fresh nymph
mossy lintel
#

im on arch linux with wayland

mossy lintel
#

can vulkan run on an integrated gpu?

fresh nymph
#

You can change the levels for each module, in this case it's probably wgpu and bevy_render, so you can do RUST_LOG=debug,wgpu=info,bevy_render=info cargo run

fresh nymph
#

If you're on Arch, then yeah you probably forgot to install MESA and/or the Nouveau graphics driver

mossy lintel
#

yes i definitly did not, didnt even know i need it

fresh nymph
#

Most distros do automatic detection during install, and automatically install the right drivers for you, but I'm guessing Arch being Arch it doesn't since you have to manually configure your system

mossy lintel
#

hm actually i had mesa installed

#

was already up to date

#

actualy in the logs it said i had mesa oof

#

name: "Mesa Intel(R) UHD Graphics (TGL GT2)"

#

well i guess this issue isnt that big of a deal as it runs

fresh nymph
#

Quick search tells me this is a recent one too, and supports OpenGL 4.6 and Vulkan 1.3, so you should be fine

#

it's weird that it doesn't seem to load OpenGL correctly though

mossy lintel
#

oddly, in the library speed2d i got "Invalid surface" in the latest versions

#

maybe its wgpu

fresh nymph
#

ah but wait, I also misread the logs, it doesn't say it doesn't support it, it says that the SSAO plugin couldn't be loaded because of a missing specific OpenGL feature

#

You can try to install vulkan-intel to get Vulkan support on your system

mossy lintel
#

whats SSAO?

fresh nymph
#

SSAO is a shading technique that supplements shadows to get a more realistic appearance on surfaces that are close together

mossy lintel
#

aaaand that was it. cmd ❯ cargo run Finished `dev` profile [optimized + debuginfo] target(s) in 0.16s Running `target/debug/physics3d` 2024-04-02T10:25:38.937945Z INFO bevy_winit::system: Creating new window "App" (0v1) 2024-04-02T10:25:39.019827Z INFO bevy_render::renderer: AdapterInfo { name: "Intel(R) UHD Graphics (TGL GT2)", vendor: 32902, device: 39544, device_type: IntegratedGpu, driver: "Intel open-source Mesa driver", driver_info: "Mesa 24.0.4-arch1.2", backend: Vulkan }

#

thank you!