{"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":"        // Skip the initial surface.configure() when the window has zero\n        // area — wgpu requires both dimensions to be non-zero. This happens\n        // on WASM when the async wgpu init future resolves before the\n        // browser has laid out the canvas. The subsequent resize event will\n        // re-configure with the real size.\n        if size.width > 0 && size.height > 0 {\n            surface.configure(&device, &surface_config);\n        }\n\n        *self.graphics_backend.instance.borrow_mut() = Some(instance.clone());\n        *self.graphics_backend.device.borrow_mut() = Some(device.clone());\n        *self.graphics_backend.queue.borrow_mut() = Some(queue.clone());\n        *self.graphics_backend.surface_config.borrow_mut() = Some(surface_config);\n        *self.graphics_backend.alpha_modes.borrow_mut() = swapchain_capabilities.alpha_modes;\n        *self.graphics_backend.surface.borrow_mut() = Some(surface);\n\n        let wgpu_renderer = femtovg::renderer::WGPURenderer::new(device, queue);\n        let femtovg_canvas = femtovg::Canvas::new_with_text_context(\n            wgpu_renderer,\n            crate::font_cache::FONT_CACHE.with(|cache| cache.borrow().text_context.clone()),\n        )\n        .unwrap();\n\n        let canvas = Rc::new(RefCell::new(femtovg_canvas));\n        self.reset_canvas(canvas);\n    }\n}\n\nstruct TextureWindowSurface {\n    render_output: femtovg::renderer::WGPURenderOutput,\n}\n\nimpl WindowSurface<femtovg::renderer::WGPURenderer> for TextureWindowSurface {\n    fn render_output(&self) -> impl Into<femtovg::renderer::WGPURenderOutput> {\n        self.render_output.clone()\n    }\n}","sourceCodeStart":425,"sourceCodeEnd":461,"githubUrl":"https://github.com/slint-ui/slint/blob/3a7e700487dc74d404cad0726378053ab763d4e0/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":"3a7e700487dc74d404cad0726378053ab763d4e0","analyzedAt":"2026-08-19T23:23:16.610Z","contentChangedAt":"2026-08-19T23:23:16.610Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}