From 4b3bf0740ad692a10c5ff59d9a10636f2a0a2e4d Mon Sep 17 00:00:00 2001 From: Luo Zhihao Date: Mon, 29 Dec 2025 13:29:21 +0800 Subject: [PATCH] Fix Android crash by setting `waitAll` to true in `vkWaitForFences` (#8769) --- wgpu-hal/src/vulkan/swapchain/native.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wgpu-hal/src/vulkan/swapchain/native.rs b/wgpu-hal/src/vulkan/swapchain/native.rs index af801484b..22e78c149 100644 --- a/wgpu-hal/src/vulkan/swapchain/native.rs +++ b/wgpu-hal/src/vulkan/swapchain/native.rs @@ -468,9 +468,10 @@ impl Swapchain for NativeSwapchain { // latency, depending on how the platform implements waiting within // acquire. unsafe { + // The `wait_all` argument must be `true` to avoid crash on some Android devices. See https://github.com/gfx-rs/wgpu/pull/8769 self.device .raw - .wait_for_fences(&[self.fence], false, timeout_ns) + .wait_for_fences(&[self.fence], true, timeout_ns) .map_err(map_host_device_oom_and_lost_err)?; self.device