Avoid panicking in wgpu rendering during resize (#50169) (cherry-pick to stable)#50344
Merged
zed-zippy[bot] merged 1 commit intov0.225.xfrom Feb 27, 2026
Merged
Conversation
Fixes Zed-5AW Fixes Zed-5AP Claude believes this is the right fix, but would love someone who knows more about graphics than me to take a look: @reflectronic / @zortax? The panic is: ``` wgpu error: Validation Error Caused by: In Texture::create_view Texture with 'path_intermediate' label is invalid gpui::platform::wgpu::wgpu_renderer::WgpuRenderer::create_path_intermediate (wgpu_renderer.rs:742) gpui::platform::wgpu::wgpu_renderer::WgpuRenderer::update_drawable_size (wgpu_renderer.rs:784) gpui::platform::linux::x11::window::X11WindowStatePtr::set_bounds (window.rs:1169) gpui::platform::linux::x11::client::X11Client::handle_event (client.rs:902) ``` or: ``` wgpu error: Validation Error Caused by: In Texture::create_view Texture with 'path_intermediate' label is invalid gpui::platform::wgpu::wgpu_renderer::WgpuRenderer::create_path_intermediate (wgpu_renderer.rs:742) gpui::platform::wgpu::wgpu_renderer::WgpuRenderer::new (wgpu_renderer.rs:274) gpui::platform::linux::x11::window::X11WindowState::new::{{closure}} (window.rs:698) gpui::platform::linux::x11::window::X11WindowState::new (window.rs:488) gpui::platform::linux::x11::window::X11Window::new (window.rs:814) gpui::platform::linux::x11::client::X11Client::open_window (client.rs:1514) gpui::platform::linux::platform::<T>::open_window (platform.rs:289) gpui::window::Window::new (window.rs:1119) gpui::app::App::open_window::{{closure}} (app.rs:1025) gpui::app::App::update (app.rs:835) gpui::app::App::open_window (app.rs:1022) ``` I haven't seen a Wayland equivalent (not sure if that's because it doesn't happen on Wayalnd or because I havent' seen it yet) Release Notes: - Linux: Fixed a panic in the new WPGU renderer during resize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of #50169 to stable
Fixes Zed-5AW
Fixes Zed-5AP
Claude believes this is the right fix, but would love someone who knows
more about graphics than me to take a look: @reflectronic / @zortax?
The panic is:
or:
I haven't seen a Wayland equivalent (not sure if that's because it
doesn't happen on Wayalnd or because I havent' seen it yet)
Release Notes: