{"record":{"id":"257e733795d087e6","repo":"emilk/egui","slug":"the-surface-isn-t-supported-by-this-adapter","errorCode":null,"errorMessage":"The surface isn't supported by this adapter","messagePattern":"The surface isn't supported by this adapter","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/egui-wgpu/src/winit.rs","lineNumber":129,"sourceCode":"        let desired_maximum_frame_latency = if surface_state.resizing {\n            Some(desired_maximum_frame_latency.unwrap_or(2).max(2))\n        } else {\n            desired_maximum_frame_latency\n        };\n\n        let width = surface_state.width;\n        let height = surface_state.height;\n\n        let mut surf_config = wgpu::SurfaceConfiguration {\n            usage: wgpu::TextureUsages::RENDER_ATTACHMENT,\n            format: render_state.target_format,\n            present_mode,\n            alpha_mode: surface_state.alpha_mode,\n            view_formats: vec![render_state.target_format],\n            ..surface_state\n                .surface\n                .get_default_config(&render_state.adapter, width, height)\n                .expect(\"The surface isn't supported by this adapter\")\n        };\n\n        if let Some(desired_maximum_frame_latency) = desired_maximum_frame_latency {\n            surf_config.desired_maximum_frame_latency = desired_maximum_frame_latency;\n        }\n\n        surface_state\n            .surface\n            .configure(&render_state.device, &surf_config);\n    }\n\n    /// Drop the existing [`wgpu::Surface`] for `viewport_id` and create a fresh one for the\n    /// given window via [`wgpu::Instance::create_surface`], then configure it.\n    ///\n    /// Used to recover from [`wgpu::CurrentSurfaceTexture::Lost`], where reconfiguring the\n    /// existing surface object cannot recover.\n    fn recreate_surface(\n        &mut self,","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/emilk/egui/blob/d802a982ce959839d92f4f6718fdffa41143110e/crates/egui-wgpu/src/winit.rs#L111-L147","documentation":"Error \"The surface isn't supported by this adapter\" thrown in emilk/egui.","triggerScenarios":"Thrown at crates/egui-wgpu/src/winit.rs:129 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d802a982ce959839d92f4f6718fdffa41143110e","analyzedAt":"2026-08-16T20:07:53.954Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}