Skip to content

additional flags --enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan required for chrome on linux #5022

@gszep

Description

@gszep

On Chrome 131.0.6778.139 (Official Build) (64-bit), Ubuntu 22.04.5 LTS loading webgpu-samples with recommended flags in wiki fails

google-chrome https://webgpu.github.io/webgpu-samples/?sample=helloTriangle --enable-unsafe-webgpu --enable-features=Vulkan
Created TensorFlow Lite XNNPACK delegate for CPU.
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#-1 is a dynamic-sized tensor).
[30780:30936:1216/120830.754506:ERROR:vulkan_swap_chain.cc(436)] vkAcquireNextImageKHR() hangs.
[30780:30780:1216/120830.754834:ERROR:gpu_service_impl.cc(1154)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[30736:30736:1216/120830.777355:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=8704
[30736:30762:1216/120830.810762:ERROR:registration_request.cc(291)] Registration response error message: DEPRECATED_ENDPOINT
[31044:31044:1216/120831.051459:ERROR:shared_image_representation.cc(500)] Attempt to read from an uninitialized SharedImage. Initialized region: (0, 0, 0, 0) Size: (600, 600)
[31044:31044:1216/120831.051567:ERROR:raster_decoder.cc(2491)] [.RendererMainThread-0x14b401d28100]GL ERROR :GL_INVALID_VALUE : glReadbackImagePixels: Source shared image is not accessible
[31044:31044:1216/120831.054228:ERROR:shared_image_manager.cc(250)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[31044:31044:1216/120831.076190:ERROR:shared_image_manager.cc(250)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[31044:31051:1216/120833.080678:ERROR:vulkan_swap_chain.cc(436)] vkAcquireNextImageKHR() hangs.
[31044:31044:1216/120833.081478:ERROR:gpu_service_impl.cc(1154)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[30736:30736:1216/120833.102102:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=8704
[31068:31068:1216/120833.383795:ERROR:shared_image_manager.cc(250)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[31068:31068:1216/120833.390381:ERROR:shared_image_manager.cc(250)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[31068:31075:1216/120835.392602:ERROR:vulkan_swap_chain.cc(436)] vkAcquireNextImageKHR() hangs.
[31068:31068:1216/120835.393275:ERROR:gpu_service_impl.cc(1154)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[30736:30736:1216/120835.409560:ERROR:gpu_process_host.cc(982)] GPU process exited unexpectedly: exit_code=8704
[31085:31085:1216/120835.717001:ERROR:shared_image_manager.cc(250)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[31085:31085:1216/120835.723539:ERROR:shared_image_manager.cc(250)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
...

However, adding additional flags restores functionality

google-chrome https://webgpu.github.io/webgpu-samples/?sample=helloTriangle --enable-unsafe-webgpu --enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan
Supported: This method is not implemented
Created TensorFlow Lite XNNPACK delegate for CPU.
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#-1 is a dynamic-sized tensor).
[31174:31174:1216/120843.532154:ERROR:shared_image_representation.cc(500)] Attempt to read from an uninitialized SharedImage. Initialized region: (0, 0, 0, 0) Size: (600, 600)
[31174:31174:1216/120843.532295:ERROR:raster_decoder.cc(2491)] [.RendererMainThread-0x266400098200]GL ERROR :GL_INVALID_VALUE : glReadbackImagePixels: Source shared image is not accessible
[31131:31158:1216/120843.584614:ERROR:registration_request.cc(291)] Registration response error message: DEPRECATED_ENDPOINT
[31131:31158:1216/120913.093120:ERROR:registration_request.cc(291)] Registration response error message: DEPRECATED_ENDPOINT

Suggest updating wiki

Metadata

Metadata

Assignees

No one assigned

    Labels

    githubGitHub stuff (wiki, test infra, issue templates, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions