Repository navigation
Effect states shared on copy - #12187
Conversation
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (8)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthrough
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant TrackOperation
participant WaveTrackUtilities
participant RealtimeEffectList
participant RealtimeEffectState
TrackOperation->>WaveTrackUtilities: create EmptyCopy with Ref or Deep
WaveTrackUtilities->>RealtimeEffectList: retain or clone effect states
RealtimeEffectList->>RealtimeEffectState: clone each state for Deep copies
RealtimeEffectState-->>RealtimeEffectList: return independent state
RealtimeEffectList-->>WaveTrackUtilities: provide copied effect list
WaveTrackUtilities-->>TrackOperation: return copied track
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Warning Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟠 Major · Preserve pending settings and messages before instance creation. · RealtimeEffectState.cpp:955
au3/libraries/au3-realtime-effects/RealtimeEffectState.cpp:955
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy liftPreserve pending settings and messages before instance creation.
If
Access::Set()runs before an instance exists, it stores settings inmLastSettingsand the message inmChannelFromMain.MakeInstance()then callsAccessState::Initialize(), which restoresmLastSettingsfrommMainSettingsand overwrites both message-buffer slots. An unflushed settings update and any pendingEffectInstance::Messageare lost.Flush()can preserve the settings, but it does not preserve the message.Preserve pending settings and messages during instance creation. Do not restore eager instance creation, because this change must keep the instance-free behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Advanced
Run ID: fe1fac89-4e21-4a95-b770-5f6d3145efa3
📒 Files selected for processing (12)
au3/libraries/au3-realtime-effects/RealtimeEffectList.cppau3/libraries/au3-realtime-effects/RealtimeEffectList.hau3/libraries/au3-realtime-effects/RealtimeEffectState.cppau3/libraries/au3-realtime-effects/RealtimeEffectState.hsrc/effects/effects_base/internal/abstractviewlauncher.cppsrc/effects/effects_base/internal/realtimeeffectservice.cppsrc/project/tests/mocks/dummyeffectinstancefactory.hsrc/trackedit/internal/au3/au3clipsinteraction.cppsrc/trackedit/internal/au3/au3tracksinteraction.cppsrc/trackedit/tests/CMakeLists.txtsrc/trackedit/tests/au3clipsinteraction_tests.cppsrc/trackedit/tests/au3tracksinteraction_tests.cpp
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
2c65f39 to
da57764
Compare
da57764 to
2766c20
Compare
2766c20 to
b56cd59
Compare
Instead of deep copy everything we will make effect deep copies where it is needed Assisted-by: Claude Code 2.1.273 (Claude Fable 5.1)
Assisted-by: Claude Code 2.1.273 (Claude Fable 5.1)
- duplicate tracks - duplicate selection into new tracks - split range selection into new tracks - split stereo track to L/R mono - split stereo track to center mono - paste into a new track - split clips into new tracks - duplicate clips Assisted-by: Claude Code 2.1.273 (Claude Fable 5.1)
Assisted-by: Claude Code 2.1.273 (Claude Fable 5.1)
b56cd59 to
9fda05d
Compare
Resolves:
Recommended: