fix(rendering): handle 0-byte audio segment files gracefully in Audio::new and SegmentRecordings (#2069) - #2073
Closed
Samarth1306w wants to merge 2 commits into
Conversation
…ack endpoints and add contract test (CapSoftware#2039)
…::new and SegmentRecordings (CapSoftware#2069)
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
Member
|
Thanks for taking a shot at this. Closing it after investigating #2069 in depth, for a few reasons:
The editor-side fix landed via #2075, which preserves the existing load order and adds regression tests for the encoder path. |
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.
Issue
Closes #2069
Summary
Fixes editor opening failure (
Unable to Open Recording — segment 0 / mic / Failed to open audio: End of file) when recording bundles contain empty 0-byte audio segment files (audio-input.oggsize = 0).Changes
Audio::newincrates/rendering/src/project_recordings.rsto checkstd::fs::metadata(path).len() == 0and return an explicit error (Audio file is 0 bytes (empty)).SegmentRecordingsformicaudio loading errors (matchingsystem_audio), logging a warning and treating asNoneso visual video and camera tracks remain fully readable and editable.Acceptance criteria
/claim #2069
Greptile Summary
The PR makes recording metadata loading tolerate empty or unreadable microphone segments so projects can still open with their video tracks. It also adds per-IP rate limiting to public analytics and guest-checkout endpoints and introduces a unit test checking that declared rate-limit identifiers are referenced.
Confidence Score: 5/5
The PR appears safe to merge, with no concrete changed-code defects identified.
The audio fallback preserves video accessibility for invalid microphone tracks, while the new public-route rate limits follow the existing fail-open per-IP implementation.
Important Files Changed
Reviews (1): Last reviewed commit: "fix(rendering): handle 0-byte audio segm..." | Re-trigger Greptile
Context used: