{"record":{"id":"6a57b858a80d73c6","repo":"slint-ui/slint","slug":"suspended-backend-not-supported-for-wgputexturebac","errorCode":null,"errorMessage":"Suspended backend not supported for WgpuTextureBackend (requires device/queue)","messagePattern":"Suspended backend not supported for WgpuTextureBackend \\(requires device/queue\\)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/renderers/femtovg/wgpu.rs","lineNumber":443,"sourceCode":"    fn render_output(&self) -> impl Into<femtovg::renderer::WGPURenderOutput> {\n        self.render_output.clone()\n    }\n}\n\nstruct WgpuTextureBackend {\n    instance: wgpu::Instance,\n    device: wgpu::Device,\n    queue: wgpu::Queue,\n    render_output: RefCell<Option<femtovg::renderer::WGPURenderOutput>>,\n}\n\nimpl GraphicsBackend for WgpuTextureBackend {\n    type Renderer = femtovg::renderer::WGPURenderer;\n    type WindowSurface = TextureWindowSurface;\n    const NAME: &'static str = \"WGPU Texture\";\n\n    fn new_suspended() -> Self {\n        panic!(\"Suspended backend not supported for WgpuTextureBackend (requires device/queue)\");\n    }\n\n    fn clear_graphics_context(&self) {\n        // Nothing to clear here, we don't own the device/queue/texture\n    }\n\n    fn begin_surface_rendering(\n        &self,\n    ) -> Result<BeginRendering<Self::WindowSurface>, Box<dyn std::error::Error + Send + Sync>> {\n        let render_output =\n            self.render_output.borrow().clone().ok_or(\"No texture set for rendering\")?;\n        Ok(BeginRendering::Acquired(TextureWindowSurface { render_output }))\n    }\n\n    fn submit_commands(&self, commands: <Self::Renderer as femtovg::Renderer>::CommandBuffer) {\n        self.queue.submit(commands);\n    }\n","sourceCodeStart":425,"sourceCodeEnd":461,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/renderers/femtovg/wgpu.rs#L425-L461","documentation":"Error \"Suspended backend not supported for WgpuTextureBackend (requires device/queue)\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/renderers/femtovg/wgpu.rs:443 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not suspend the application while using the WGPU texture backend without device/queue access.","Keep the device and queue alive for the duration of the suspension."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016","analyzedAt":"2026-08-19T23:23:16.610Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}