jakobhellermann / bevy_editor_pls

In-App editor tools for bevy applications
Other
755 stars 78 forks source link

Weird Vulkan Validation errors #67

Closed Comeza closed 1 year ago

Comeza commented 1 year ago

Whenever I try to enable the plugin I get weird Vulkan errors on Linux:

INFO  winit::platform_impl::platform::x11::window: Guessed window scale factor: 1
INFO  bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce GTX 1050 Ti", vendor: 4318, device: 7298, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "525.89.02", backend: Vulkan }
WARN  bevy_ecs::schedule::graph_utils: bevy_editor_pls_default_windows::debug_settings::fake_time::pause_time wants to be after unknown label: TimeSystem
INFO  bevy_editor_pls_default_windows::cameras: Spawning editor cameras
WARN  bevy_ecs::schedule::graph_utils: bevy_editor_pls_core::editor::Editor::system wants to be before unknown label: EguiSystem::ProcessOutput
ERROR wgpu_hal::vulkan::instance: VALIDATION [VUID-VkSwapchainCreateInfoKHR-imageExtent-01274 (0x7cd0911d)]
    Validation Error: [ VUID-VkSwapchainCreateInfoKHR-imageExtent-01274 ] Object 0: handle = 0x55f13e5da6e0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x7cd0911d | vkCreateSwapchainKHR() called with imageExtent = (1280,720), which is outside the bounds returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR(): currentExtent = (1280,756), minImageExtent = (1280,756), maxImageExtent = (1280,756). The Vulkan spec states: imageExtent must be between minImageExtent and maxImageExtent, inclusive, where minImageExtent and maxImageExtent are members of the VkSurfaceCapabilitiesKHR structure returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the surface (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkSwapchainCreateInfoKHR-imageExtent-01274)
ERROR wgpu_hal::vulkan::instance:   objects: (type: DEVICE, hndl: 0x55f13e5da6e0, name: ?)

The code:

use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugin(bevy_editor_pls::EditorPlugin)
        .run();
}

The Editor seems to work fine. image

martinlindhe commented 1 year ago

You can uninstall vulkan-validation-layers if you do not want to see those. If you happen to be using Arch, that package was pulled as some extra dependency if you install wlroot-git from AUR up until a few days ago [1]. It is not required as a user, but rather if you are developing the vulkan stack directly.

1: https://aur.archlinux.org/cgit/aur.git/diff/PKGBUILD?h=wlroots-git&id2=9915770484d00e1f06256308f900fe4204bd1b5e