aether
aether copied to clipboard
Duplicate wallpaper in blueprint causes background basename collision and freezes GUI in infinite IPC reactive loop
Summary
When applying a blueprint containing duplicate wallpaper paths (or wallpapers sharing identical basenames), Aether's backend errors with background basename collision. This unhandled failure triggers an infinite reactive synchronization loop ($effect / SyncState) in the WebKit frontend, pegging CPU at 100% and completely freezing the application window.
Steps to Reproduce
- Save or import a blueprint where
palette.additionalImagescontains duplicate wallpaper entries (or two wallpapers with the same filename/basename). - Open Aether GUI -> go to the Blueprints tab -> click Use on the blueprint.
- Click Apply (or wait for the debounced live preview).
Expected Behavior
- Deduplication: Aether should automatically deduplicate wallpapers in
additionalImages(by path and basename) when saving blueprints and when staging backgrounds into Omarchy theme directories. - Graceful Error Handling: If background staging or theme generation fails, the frontend should display an error toast/banner, clear the
isApplyingThemelock, and avoid entering an infinite retry/reactive sync loop.
Actual Behavior
- The Go backend rejects the duplicate image with:
Error: background basename collision "<filename>": "<path>" and "<path>" - The frontend promise rejection is caught, but the applied signature (
_l) is never updated to match the active state (gl()). - Svelte 5's reactive
$effectcontinuously detects a state mismatch and repeatedly dispatches IPC state synchronizations (SyncState), resulting in an infinite ping-pong between WebKit and the Go backend (>17,000 context switches/sec). - Both
aetherandWebKitWebProcesssaturate CPU cores at ~85-100%, causing the GUI window to become completely unresponsive and freeze until killed via terminal (killall aether).
Environment
- Aether Version: 4.30.0-1
- OS: Omarchy (Arch Linux)
- Compositor: Hyprland
- WebKit2GTK: 4.1