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

Window never created on Vulkan backend (Ubtunu 21.10) #2196

Closed
caiiiycuk opened this issue Nov 20, 2021 · 4 comments
Closed

Window never created on Vulkan backend (Ubtunu 21.10) #2196

caiiiycuk opened this issue Nov 20, 2021 · 4 comments
Labels
api: vulkan Issues with Vulkan type: bug Something isn't working

Comments

@caiiiycuk
Copy link
Contributor

caiiiycuk commented Nov 20, 2021

Description
I trying to build and run vange-rs project. I did it before on Ubuntu 21.04 and it works fine, but after updating to Ubuntu 21.10 it stop working. I tried both with XServer and Wayland.
XServer: when I start the game black window is appear and hangs up, however I see growing output in console (from vulkan). window is not reponding, even I can't close it
Wayland: when I start the game even window is not appeared, I also see growing output in console.

Repro steps
Checkout vanger-rs build and run.

Expected vs observed behavior
Game should work

Extra materials
I also tested hello-triangle example and it works, vkcube also works.
If I set force_fallback: true game start working.

When I run the game I see this logs:


[2021-11-20T04:34:36Z ERROR smithay_client_toolkit::window::concept_frame] No font could be found
[2021-11-20T04:34:36Z INFO  road::boilerplate] Initializing the device
[2021-11-20T04:34:36Z INFO  wgpu_core::instance] Adapter Vulkan AdapterInfo { name: "Intel(R) HD Graphics 620 (KBL GT2)", vendor: 32902, device: 22806, device_type: IntegratedGpu, backend: Vulkan }
[2021-11-20T04:34:36Z INFO  wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)]
        Inserted device layer VK_LAYER_KHRONOS_validation (libVkLayer_khronos_validation.so)
[2021-11-20T04:34:36Z INFO  wgpu_hal::vulkan::instance]         objects: (type: INSTANCE, hndl: 0x55570ff6b900, name: ?)
[2021-11-20T04:34:36Z INFO  wgpu_hal::vulkan::instance] GENERAL [Loader Message (0x0)]
        Failed to find vkGetDeviceProcAddr in layer libVkLayer_MESA_device_select.so
[2021-11-20T04:34:36Z INFO  wgpu_hal::vulkan::instance]         objects: (type: INSTANCE, hndl: 0x55570ff6b900, name: ?)

Layers:

Layers: count = 6
=================
VK_LAYER_MESA_device_select (Linux device selection layer) Vulkan version 1.2.73, layer version 1:
 Layer Extensions: count = 0
 Devices: count = 2
  GPU id = 0 (Intel(R) HD Graphics 620 (KBL GT2))
  Layer-Device Extensions: count = 0

  GPU id = 1 (llvmpipe (LLVM 12.0.1, 256 bits))
  Layer-Device Extensions: count = 0

VK_LAYER_MESA_overlay (Mesa Overlay layer) Vulkan version 1.1.73, layer version 1:
 Layer Extensions: count = 0
 Devices: count = 2
  GPU id = 0 (Intel(R) HD Graphics 620 (KBL GT2))
  Layer-Device Extensions: count = 0

  GPU id = 1 (llvmpipe (LLVM 12.0.1, 256 bits))
  Layer-Device Extensions: count = 0

VK_LAYER_VALVE_steam_fossilize_32 (Steam Pipeline Caching Layer) Vulkan version 1.2.136, layer version 1:
 Layer Extensions: count = 0
 Devices: count = 2
  GPU id = 0 (Intel(R) HD Graphics 620 (KBL GT2))
  Layer-Device Extensions: count = 0

  GPU id = 1 (llvmpipe (LLVM 12.0.1, 256 bits))
  Layer-Device Extensions: count = 0

VK_LAYER_VALVE_steam_fossilize_64 (Steam Pipeline Caching Layer) Vulkan version 1.2.136, layer version 1:
 Layer Extensions: count = 0
 Devices: count = 2
  GPU id = 0 (Intel(R) HD Graphics 620 (KBL GT2))
  Layer-Device Extensions: count = 0

  GPU id = 1 (llvmpipe (LLVM 12.0.1, 256 bits))
  Layer-Device Extensions: count = 0

VK_LAYER_VALVE_steam_overlay_32 (Steam Overlay Layer) Vulkan version 1.2.136, layer version 1:
 Layer Extensions: count = 0
 Devices: count = 2
  GPU id = 0 (Intel(R) HD Graphics 620 (KBL GT2))
  Layer-Device Extensions: count = 0

  GPU id = 1 (llvmpipe (LLVM 12.0.1, 256 bits))
  Layer-Device Extensions: count = 0

VK_LAYER_VALVE_steam_overlay_64 (Steam Overlay Layer) Vulkan version 1.2.136, layer version 1:
 Layer Extensions: count = 0
 Devices: count = 2
  GPU id = 0 (Intel(R) HD Graphics 620 (KBL GT2))
  Layer-Device Extensions: count = 0

  GPU id = 1 (llvmpipe (LLVM 12.0.1, 256 bits))
  Layer-Device Extensions: count = 0

Devices:

Device Groups:
==============
Group 0:
 Properties:
  physicalDevices: count = 1
   llvmpipe (LLVM 12.0.1, 256 bits) (ID: 0)
  subsetAllocation = 0

WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
 Present Capabilities:
  llvmpipe (LLVM 12.0.1, 256 bits) (ID: 0):
   Can present images from the following devices: count = 1
    llvmpipe (LLVM 12.0.1, 256 bits) (ID: 0)
  Present modes: count = 1
   DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR

Group 1:
 Properties:
  physicalDevices: count = 1
   Intel(R) HD Graphics 620 (KBL GT2) (ID: 0)
  subsetAllocation = 0

 Present Capabilities:
  Intel(R) HD Graphics 620 (KBL GT2) (ID: 0):
   Can present images from the following devices: count = 1
    Intel(R) HD Graphics 620 (KBL GT2) (ID: 0)
  Present modes: count = 1
   DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHR

I found also EmbarkStudios/rust-gpu/issues/129 it's very similar issue.

Platform
Ubtunu 21.10, wgpu - latest
Intel(R) HD Graphics 620 (KBL GT2)

@kvark kvark added the type: bug Something isn't working label Nov 20, 2021
@kvark
Copy link
Member

kvark commented Nov 20, 2021

Could you grab the call stacks (by attaching gdb to it) when it hangs up, please?

@kvark
Copy link
Member

kvark commented Nov 20, 2021

Oh, actually this can be #1672, which is an upstream issue in Intel's driver. It happens when you have more than one submission per frame. Good news is - it's recently fixed there, so now waiting for repositories to pick up new driver versions.

@teoxoy
Copy link
Member

teoxoy commented Feb 24, 2023

@caiiiycuk could you confirm that #2212 fixed this issue?

@teoxoy teoxoy added the api: vulkan Issues with Vulkan label Feb 24, 2023
@caiiiycuk
Copy link
Contributor Author

@teoxoy sorry, my pc suddenly died, and I have new one. Can't check, so I just close it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vulkan Issues with Vulkan type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants