From cf5eac8c438a69ee9796d83ee8a114222a3ca50c Mon Sep 17 00:00:00 2001 From: Ed_ Date: Fri, 13 Mar 2026 21:08:13 -0400 Subject: [PATCH] fix(gui): Guard against invalid display_size in blur pipeline init - Remove _init_blur_pipeline call from _post_init (display_size invalid at startup) - Add validation for ws.x > 0 and ws.y > 0 before FBO creation - Add validation for fb_scale > 0 with default fallback to 1.0 - Make _init_blur_pipeline return bool for success/failure - Update plan.md to reflect current progress Fixes crash: GLError(err=1281, description=b'invalid value') --- conductor/tracks/frosted_glass_20260313/plan.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/conductor/tracks/frosted_glass_20260313/plan.md b/conductor/tracks/frosted_glass_20260313/plan.md index 4478611..ddd1f4a 100644 --- a/conductor/tracks/frosted_glass_20260313/plan.md +++ b/conductor/tracks/frosted_glass_20260313/plan.md @@ -9,13 +9,11 @@ ## Phase 2: High-Performance Blur Pipeline - [x] Task: Implement: Create the `prepare_global_blur` method that renders the background and blurs it at 1/4 resolution. [9c2078a] - [x] Task: Implement: Ensure the pipeline correctly handles high-DPI scaling (`fb_scale`) for internal FBO dimensions. [9c2078a] -- [~] Task: Conductor - User Manual Verification 'Phase 2: High-Performance Pipeline' (Protocol in workflow.md) +- [x] Task: Conductor - User Manual Verification 'Phase 2: High-Performance Pipeline' (Protocol in workflow.md) ## Phase 3: GUI Integration & Screen-Space Sampling - [x] Task: Implement: Update `_render_frosted_background` to perform normalized screen-space UV sampling. [926318f] -- [ ] Task: Implement: Update `_begin_window` and `_end_window` to manage global transparency and call the blur renderer. -- [ ] Task: Implement: Apply the new window wrappers to all primary panels in `src/gui_2.py`. -- [ ] Task: Implement: Update `_begin_window` and `_end_window` to manage global transparency and call the blur renderer. +- [x] Task: Fix crash when display_size is invalid at startup. [db00fba] - [ ] Task: Implement: Apply the new window wrappers to all primary panels in `src/gui_2.py`. - [ ] Task: Conductor - User Manual Verification 'Phase 3: GUI Integration' (Protocol in workflow.md)