From 4985f1dde06bda5d619d54c1cce43d452c36f2f7 Mon Sep 17 00:00:00 2001 From: Elijah Date: Wed, 4 Nov 2026 17:04:07 -0700 Subject: [PATCH] Release Kaleido Desktop 0.1.0-beta.11 Fix a UI-thread deadlock between the player and window resizes: player_rect held the video-surface lock while Tauri's hwnd() waited for the UI thread, and on_resize, running on the UI thread, waited for that lock. Leaving full screen for the miniplayer could freeze the window while mpv kept playing. Resize handling now runs off the UI thread, and the Windows surface keeps its HWND instead of asking the UI thread for it. Add local diagnostics: a watchdog writes a dump of every thread when the UI thread stops answering for 5 s, unhandled exceptions write a crash dump and log the faulting module (Windows), and panics are logged. Windows release builds keep function names in kaleido.pdb, archived per version in .tools/symbols/. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 7 ++ docs/development.md | 26 +++++ package-lock.json | 4 +- package.json | 2 +- scripts/build.ps1 | 15 +++ src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 7 +- src-tauri/src/diagnostics.rs | 158 ++++++++++++++++++++++++++++++ src-tauri/src/lib.rs | 9 +- src-tauri/src/platform/linux.rs | 10 ++ src-tauri/src/platform/macos.rs | 10 ++ src-tauri/src/platform/mod.rs | 1 + src-tauri/src/platform/windows.rs | 113 ++++++++++++++++++++- src-tauri/src/player.rs | 6 ++ src-tauri/tauri.conf.json | 2 +- 15 files changed, 362 insertions(+), 10 deletions(-) create mode 100644 src-tauri/src/diagnostics.rs diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b83c7a..611b6d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.1.0-beta.11 + +Fixes the app freezing when leaving full screen for the miniplayer, and adds local hang and crash reports. + +- Fixed: going back from the full-screen player to the miniplayer (or moving or resizing the miniplayer) could freeze the window — it turned see-through and "Not Responding" while the video kept playing. Two parts of the player were each waiting for the other when the window resized at the wrong moment. +- When the window stops responding for 5 seconds, or the app crashes, Kaleido now saves a report of what each part of the app was doing in its log folder (`%LOCALAPPDATA%\tv.kaleido.desktop\logs`), so a rare problem can be traced the first time it happens. Reports stay on your computer. + ## 0.1.0-beta.10 A redesigned player control bar, previous episode, and a movable miniplayer. diff --git a/docs/development.md b/docs/development.md index e7a98a0..7f2db78 100644 --- a/docs/development.md +++ b/docs/development.md @@ -47,6 +47,32 @@ Playback tests change real Plex progress; resume an in-progress title near its s position, or restore it afterwards. Selecting audio or subtitle tracks is saved to Plex for that file. +## Diagnostics + +`src-tauri/src/diagnostics.rs` writes to the app's log folder +(`%LOCALAPPDATA%\tv.kaleido.desktop\logs` on Windows); nothing is uploaded. + +- **Hangs**: a watchdog asks the UI thread to answer every second. After 5 seconds of + silence it writes `kaleido-hang-