{"record":{"id":"1ed669c48474d7be","repo":"zed-industries/zed","slug":"failed-to-create-present-interval-histogram-erro","errorCode":null,"errorMessage":"Failed to create present interval histogram: {error}","messagePattern":"Failed to create present interval histogram: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/gpui/src/profiler.rs","lineNumber":921,"sourceCode":"    mid_draw_events_dropped: u64,\n    last_present_at: Option<Instant>,\n    animating_at_last_present: bool,\n    pending_frame: Option<FrameTiming>,\n}\n\n#[cfg(feature = \"profiler\")]\nimpl WindowProfiler {\n    /// Creates a profiler for a window.\n    pub fn new(window_id: WindowId) -> anyhow::Result<Self> {\n        let profiler = Self {\n            window_id,\n            active_activities: SmallVec::new(),\n            active_actions: SmallVec::new(),\n            draw_duration_histogram: Histogram::new(3).map_err(|error| {\n                anyhow::anyhow!(\"Failed to create draw duration histogram: {error}\")\n            })?,\n            present_interval_histogram: Histogram::new(3).map_err(|error| {\n                anyhow::anyhow!(\"Failed to create present interval histogram: {error}\")\n            })?,\n            first_input_at: None,\n            pending_input_count: 0,\n            input_latency_histogram: Histogram::new(3).map_err(|error| {\n                anyhow::anyhow!(\"Failed to create input latency histogram: {error}\")\n            })?,\n            events_per_frame_histogram: Histogram::new(3).map_err(|error| {\n                anyhow::anyhow!(\"Failed to create events per frame histogram: {error}\")\n            })?,\n            mid_draw_events_dropped: 0,\n            last_present_at: None,\n            animating_at_last_present: false,\n            pending_frame: None,\n        };\n        journal::record_frame_pending(window_id, Instant::now());\n        Ok(profiler)\n    }\n","sourceCodeStart":903,"sourceCodeEnd":939,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/gpui/src/profiler.rs#L903-L939","documentation":"In WindowProfiler::new (behind the `profiler` feature): constructing the present-interval hdrhistogram failed, aborting profiler creation for the window. This is an internal allocation/construction failure of the metrics histogram, not a rendering problem.","triggerScenarios":"Thrown at crates/gpui/src/profiler.rs:921 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry opening the window; the failure is usually a transient allocation error","Check system memory pressure if it recurs","Build without the `profiler` feature when frame profiling is not required"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}