Repository navigation
Fix track-load freezes, sync timing and tuning-aware key matching - #4
Merged
Merged
Conversation
NathansDomainSolutions
marked this pull request as ready for review
October 29, 2026 22:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Track drops could stall the interface through full-file reads, downmixing, waveform generation, scratch-buffer copies and simultaneous decoder completions. Version 0.3.10-beta reads and prepares tracks on the worker, transfers samples without another full-song copy, copies PCM in small yielding chunks, and serializes large decodes while skipping superseded queued loads. Waveform sizing uses resize notifications instead of forcing layout each frame.
New AI separation starts only from Prepare AI stems, one loaded track at a time. Cached stems still load automatically. Worker errors reject pending loads and recreate the worker on retry; a 30-second deadline handles stalled worker jobs without falling back to blocking UI computation.
This PR also contains the 0.3.9-beta transport/sync and tuning-aware key-matching fixes, current-section/manual-grid handling, tempo-only sync feedback, focus-loss nudge release, C/D meters, damaged-library protection and updated packaging dependencies.
Validation: local unit, UI, worker/recovery and full-length stereo-drop tests pass. The final native ARM64 executable loaded the two longest available real songs with the installed AI model and a 62 ms maximum UI gap; the simultaneous 7.5-minute stereo/replacement test measured 74 ms. The load test also passes with 12× CPU throttling (547 ms maximum gap). It checks serialized decoding, retained playback buffers, latest-selection behavior and zero automatic AI jobs. Targeted audio regressions pass. Latest Windows x64 CI has passed the unit, UI and loading checks; its eleven-scenario audio suite is running. The local 0.3.10-beta ARM64 ZIP matches the final source.
Limits: the exact permanent hang was not reproduced; measurable loading stalls and automatic heavy work were identified and removed from the drop path. Physical DJ hardware and full AI model quality were not re-tested. Explicit AI jobs and very long files still require substantial resources. Separate headphone cue remains unavailable, and some recordings need manual grid correction. This PR does not publish a release.