Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-116023

QXcbConnection: XCB error occured on QVulkanWindowRenderer Subclass

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 6.2.4
    • GUI: Vulkan
    • None
    • OS: Ubuntu 22.04.3 LTS
      Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
      Debugger: GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
      Build System: cmake version 3.22.1
    • Linux/X11

    Description

      I got that error:

      qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 487, resource id: 81788949, major code: 149 (Unknown), minor code: 4
      qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 490, resource id: 81788952, major code: 149 (Unknown), minor code: 4
      qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 493, resource id: 81788955, major code: 149 (Unknown), minor code: 4 

      This error seems to be related to QVulkanWindowRenderer, as it occurred after QVulkanWindowRenderer was initialized. Here is the output from the Qt hellovulkantexture(the error reoccured there. I've only added some extra 'qDebug' statements for clarity):

      qt.vulkan: Vulkan init (libvulkan.so)
      qt.vulkan: Supported Vulkan instance layers: QList(QVulkanLayer("VK_LAYER_VALVE_steam_fossilize_32" 1 1.3.207 "Steam Pipeline Caching Layer"), QVulkanLayer("VK_LAYER_VALVE_steam_fossilize_64" 1 1.3.207 "Steam Pipeline Caching Layer"), QVulkanLayer("VK_LAYER_VALVE_steam_overlay_64" 1 1.3.207 "Steam Overlay Layer"), QVulkanLayer("VK_LAYER_VALVE_steam_overlay_32" 1 1.3.207 "Steam Overlay Layer"), QVulkanLayer("VK_LAYER_MESA_device_select" 1 1.3.211 "Linux device selection layer"), QVulkanLayer("VK_LAYER_INTEL_nullhw" 1 1.1.73 "INTEL NULL HW"), QVulkanLayer("VK_LAYER_MESA_overlay" 1 1.3.211 "Mesa Overlay layer"))
      qt.vulkan: Supported Vulkan instance extensions: QList(QVulkanExtension("VK_KHR_device_group_creation" 1), QVulkanExtension("VK_KHR_external_fence_capabilities" 1), QVulkanExtension("VK_KHR_external_memory_capabilities" 1), QVulkanExtension("VK_KHR_external_semaphore_capabilities" 1), QVulkanExtension("VK_KHR_get_physical_device_properties2" 2), QVulkanExtension("VK_KHR_get_surface_capabilities2" 1), QVulkanExtension("VK_KHR_surface" 25), QVulkanExtension("VK_KHR_surface_protected_capabilities" 1), QVulkanExtension("VK_KHR_wayland_surface" 6), QVulkanExtension("VK_KHR_xcb_surface" 6), QVulkanExtension("VK_KHR_xlib_surface" 6), QVulkanExtension("VK_EXT_debug_report" 10), QVulkanExtension("VK_EXT_debug_utils" 2), QVulkanExtension("VK_KHR_display" 23), QVulkanExtension("VK_KHR_get_display_properties2" 1), QVulkanExtension("VK_EXT_acquire_drm_display" 1), QVulkanExtension("VK_EXT_acquire_xlib_display" 1), QVulkanExtension("VK_EXT_direct_mode_display" 1), QVulkanExtension("VK_EXT_display_surface_counter" 1), QVulkanExtension("VK_EXT_swapchain_colorspace" 4))
      qt.vulkan: Enabling Vulkan instance layers: QList()
      qt.vulkan: Enabling Vulkan instance extensions: QList("VK_EXT_debug_report", "VK_KHR_surface", "VK_KHR_xcb_surface")
      qt.vulkan: QVulkanWindow init
      qt.vulkan: 3 physical devices
      qt.vulkan: Physical device [0]: name 'Intel(R) Graphics (RPL-S)' version 23.0.4
      qt.vulkan: Physical device [1]: name 'NVIDIA GeForce RTX 4090 Laptop GPU' version 535.344.640
      qt.vulkan: Physical device [2]: name 'llvmpipe (LLVM 15.0.7, 256 bits)' version 0.0.1
      qt.vulkan: Using physical device [0]
      qt.vulkan: queue family 0: flags=0x7 count=1 supportsPresent=1
      qt.vulkan: Using queue families: graphics = 0 present = 0
      qt.vulkan: Supported device extensions: QList(QVulkanExtension("VK_KHR_8bit_storage" 1), QVulkanExtension("VK_KHR_16bit_storage" 1), QVulkanExtension("VK_KHR_bind_memory2" 1), QVulkanExtension("VK_KHR_buffer_device_address" 1), QVulkanExtension("VK_KHR_copy_commands2" 1), QVulkanExtension("VK_KHR_create_renderpass2" 1), QVulkanExtension("VK_KHR_dedicated_allocation" 3), QVulkanExtension("VK_KHR_deferred_host_operations" 4), QVulkanExtension("VK_KHR_depth_stencil_resolve" 1), QVulkanExtension("VK_KHR_descriptor_update_template" 1), QVulkanExtension("VK_KHR_device_group" 4), QVulkanExtension("VK_KHR_draw_indirect_count" 1), QVulkanExtension("VK_KHR_driver_properties" 1), QVulkanExtension("VK_KHR_dynamic_rendering" 1), QVulkanExtension("VK_KHR_external_fence" 1), QVulkanExtension("VK_KHR_external_fence_fd" 1), QVulkanExtension("VK_KHR_external_memory" 1), QVulkanExtension("VK_KHR_external_memory_fd" 1), QVulkanExtension("VK_KHR_external_semaphore" 1), QVulkanExtension("VK_KHR_external_semaphore_fd" 1), QVulkanExtension("VK_KHR_format_feature_flags2" 2), QVulkanExtension("VK_KHR_fragment_shading_rate" 2), QVulkanExtension("VK_KHR_get_memory_requirements2" 1), QVulkanExtension("VK_KHR_image_format_list" 1), QVulkanExtension("VK_KHR_imageless_framebuffer" 1), QVulkanExtension("VK_KHR_incremental_present" 2), QVulkanExtension("VK_KHR_maintenance1" 2), QVulkanExtension("VK_KHR_maintenance2" 1), QVulkanExtension("VK_KHR_maintenance3" 1), QVulkanExtension("VK_KHR_maintenance4" 2), QVulkanExtension("VK_KHR_multiview" 1), QVulkanExtension("VK_KHR_pipeline_executable_properties" 1), QVulkanExtension("VK_KHR_pipeline_library" 1), QVulkanExtension("VK_KHR_present_id" 1), QVulkanExtension("VK_KHR_present_wait" 1), QVulkanExtension("VK_KHR_push_descriptor" 2), QVulkanExtension("VK_KHR_relaxed_block_layout" 1), QVulkanExtension("VK_KHR_sampler_mirror_clamp_to_edge" 3), QVulkanExtension("VK_KHR_sampler_ycbcr_conversion" 14), QVulkanExtension("VK_KHR_separate_depth_stencil_layouts" 1), QVulkanExtension("VK_KHR_shader_atomic_int64" 1), QVulkanExtension("VK_KHR_shader_clock" 1), QVulkanExtension("VK_KHR_shader_draw_parameters" 1), QVulkanExtension("VK_KHR_shader_float16_int8" 1), QVulkanExtension("VK_KHR_shader_float_controls" 4), QVulkanExtension("VK_KHR_shader_integer_dot_product" 1), QVulkanExtension("VK_KHR_shader_non_semantic_info" 1), QVulkanExtension("VK_KHR_shader_subgroup_extended_types" 1), QVulkanExtension("VK_KHR_shader_subgroup_uniform_control_flow" 1), QVulkanExtension("VK_KHR_shader_terminate_invocation" 1), QVulkanExtension("VK_KHR_spirv_1_4" 1), QVulkanExtension("VK_KHR_storage_buffer_storage_class" 1), QVulkanExtension("VK_KHR_swapchain" 70), QVulkanExtension("VK_KHR_swapchain_mutable_format" 1), QVulkanExtension("VK_KHR_synchronization2" 1), QVulkanExtension("VK_KHR_timeline_semaphore" 2), QVulkanExtension("VK_KHR_uniform_buffer_standard_layout" 1), QVulkanExtension("VK_KHR_variable_pointers" 1), QVulkanExtension("VK_KHR_vulkan_memory_model" 3), QVulkanExtension("VK_KHR_workgroup_memory_explicit_layout" 1), QVulkanExtension("VK_KHR_zero_initialize_workgroup_memory" 1), QVulkanExtension("VK_EXT_4444_formats" 1), QVulkanExtension("VK_EXT_border_color_swizzle" 1), QVulkanExtension("VK_EXT_buffer_device_address" 2), QVulkanExtension("VK_EXT_calibrated_timestamps" 2), QVulkanExtension("VK_EXT_color_write_enable" 1), QVulkanExtension("VK_EXT_conditional_rendering" 2), QVulkanExtension("VK_EXT_conservative_rasterization" 1), QVulkanExtension("VK_EXT_custom_border_color" 12), QVulkanExtension("VK_EXT_depth_clamp_zero_one" 1), QVulkanExtension("VK_EXT_depth_clip_control" 1), QVulkanExtension("VK_EXT_depth_clip_enable" 1), QVulkanExtension("VK_EXT_descriptor_indexing" 2), QVulkanExtension("VK_EXT_display_control" 1), QVulkanExtension("VK_EXT_extended_dynamic_state" 1), QVulkanExtension("VK_EXT_extended_dynamic_state2" 1), QVulkanExtension("VK_EXT_extended_dynamic_state3" 2), QVulkanExtension("VK_EXT_external_memory_dma_buf" 1), QVulkanExtension("VK_EXT_external_memory_host" 1), QVulkanExtension("VK_EXT_fragment_shader_interlock" 1), QVulkanExtension("VK_EXT_global_priority" 2), QVulkanExtension("VK_EXT_global_priority_query" 1), QVulkanExtension("VK_EXT_host_query_reset" 1), QVulkanExtension("VK_EXT_image_2d_view_of_3d" 1), QVulkanExtension("VK_EXT_image_drm_format_modifier" 2), QVulkanExtension("VK_EXT_image_robustness" 1), QVulkanExtension("VK_EXT_image_view_min_lod" 1), QVulkanExtension("VK_EXT_index_type_uint8" 1), QVulkanExtension("VK_EXT_inline_uniform_block" 1), QVulkanExtension("VK_EXT_line_rasterization" 1), QVulkanExtension("VK_EXT_memory_budget" 1), QVulkanExtension("VK_EXT_multi_draw" 1), QVulkanExtension("VK_EXT_mutable_descriptor_type" 1), QVulkanExtension("VK_EXT_non_seamless_cube_map" 1), QVulkanExtension("VK_EXT_pci_bus_info" 2), QVulkanExtension("VK_EXT_physical_device_drm" 1), QVulkanExtension("VK_EXT_pipeline_creation_cache_control" 3), QVulkanExtension("VK_EXT_pipeline_creation_feedback" 1), QVulkanExtension("VK_EXT_post_depth_coverage" 1), QVulkanExtension("VK_EXT_primitive_topology_list_restart" 1), QVulkanExtension("VK_EXT_primitives_generated_query" 1), QVulkanExtension("VK_EXT_private_data" 1), QVulkanExtension("VK_EXT_provoking_vertex" 1), QVulkanExtension("VK_EXT_queue_family_foreign" 1), QVulkanExtension("VK_EXT_robustness2" 1), QVulkanExtension("VK_EXT_sample_locations" 1), QVulkanExtension("VK_EXT_sampler_filter_minmax" 2), QVulkanExtension("VK_EXT_scalar_block_layout" 1), QVulkanExtension("VK_EXT_separate_stencil_usage" 1), QVulkanExtension("VK_EXT_shader_atomic_float" 1), QVulkanExtension("VK_EXT_shader_atomic_float2" 1), QVulkanExtension("VK_EXT_shader_demote_to_helper_invocation" 1), QVulkanExtension("VK_EXT_shader_module_identifier" 1), QVulkanExtension("VK_EXT_shader_stencil_export" 1), QVulkanExtension("VK_EXT_shader_subgroup_ballot" 1), QVulkanExtension("VK_EXT_shader_subgroup_vote" 1), QVulkanExtension("VK_EXT_shader_viewport_index_layer" 1), QVulkanExtension("VK_EXT_subgroup_size_control" 2), QVulkanExtension("VK_EXT_texel_buffer_alignment" 1), QVulkanExtension("VK_EXT_tooling_info" 1), QVulkanExtension("VK_EXT_transform_feedback" 1), QVulkanExtension("VK_EXT_vertex_attribute_divisor" 3), QVulkanExtension("VK_EXT_ycbcr_image_arrays" 1), QVulkanExtension("VK_GOOGLE_decorate_string" 1), QVulkanExtension("VK_GOOGLE_hlsl_functionality1" 1), QVulkanExtension("VK_GOOGLE_user_type" 1), QVulkanExtension("VK_INTEL_shader_integer_functions2" 1), QVulkanExtension("VK_NV_compute_shader_derivatives" 1), QVulkanExtension("VK_VALVE_mutable_descriptor_type" 1))
      qt.vulkan: Enabling device extensions: QList(VK_KHR_swapchain)
      qt.vulkan: memtype 0: flags=0xf
      qt.vulkan: Picked memtype 0 for host visible memory
      qt.vulkan: Picked memtype 0 for device local memory
      qt.vulkan: Color format: 50 Depth-stencil format: 129
      void VulkanRenderer::initResources()
      uniform buffer offset alignment is 64
      allocating 262144 bytes for texture image
      qt.vulkan: Creating new swap chain of 3 buffers, size 1280x960
      qt.vulkan: Actual swap chain buffer count: 3 (supportsReadback=1)
      qt.vulkan: Allocating 7077888 bytes for transient image (memtype 0)
      void VulkanRenderer::initSwapChainResources()
      qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 408, resource id: 81788940, major code: 149 (Unknown), minor code: 4
      qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 411, resource id: 81788943, major code: 149 (Unknown), minor code: 4
      qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 414, resource id: 81788946, major code: 149 (Unknown), minor code: 4
      QVulkanWindow: Failed to acquire next swapchain image: -1000000000 
      ...... 
      QVulkanWindow: Failed to acquire next swapchain image: -1000000000
      qt.vulkan: Releasing swapchain
      void VulkanRenderer::releaseSwapChainResources()
      qt.vulkan: QVulkanWindow reset
      void VulkanRenderer::releaseResources()

      That error doesn't break the program, but it still disrupts the rendering. I suspect it might be related to my computer environment, but I'm unsure how to fix it.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            garden_eel Zhou GaDoon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes