Skip to content

Fix crash in Pluck - #10915

Merged
kryksyh merged 2 commits into
audacity:masterfrom
kryksyh:fix_nyquist_effects_recursion
May 14, 2026
Merged

kryksyh merged 2 commits into
audacity:masterfrom
kryksyh:fix_nyquist_effects_recursion

Conversation

@kryksyh

@kryksyh kryksyh commented May 13, 2026

Copy link
Copy Markdown
Member

Resolves: #10819

Breaks infinite recursion during parameter updates

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Testflow test cases have been run

@kryksyh
kryksyh requested a review from luapmartin May 13, 2026 11:53
@coderabbitai

coderabbitai Bot commented May 13, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 16e9359c-56e9-4ad8-8e24-2e0f1220c184

📥 Commits

Reviewing files that changed from the base of the PR and between b12da20c9dec50a6feaaf8c28b862aec84fe2735 and 52327ee.

📒 Files selected for processing (3)
  • src/effects/effects_base/view/effectparameterslistmodel.cpp
  • src/importexport/export/qml/Export/ExportDialog.qml
  • src/importexport/labels/qml/Export/ExportLabelsDialog.qml

📝 Walkthrough

Walkthrough

This PR updates EffectParametersListModel::setParameterValue to convert the parameterId once, check the parameter index, and use muse::RealIsEqual to early-return when the new fullRangeValue equals the cached value; otherwise it forwards the update to the parameters provider. Separately, two QML dialogs change FilePicker usage from the orientation property to buttonOrientation: Qt.Horizontal.

sequenceDiagram
  participant Caller
  participant EffectParametersListModel
  participant ParametersProvider
  Caller->>EffectParametersListModel: setParameterValue(parameterId, fullRangeValue)
  EffectParametersListModel->>EffectParametersListModel: convert parameterId to muse::String
  EffectParametersListModel->>EffectParametersListModel: lookup index and compare with muse::RealIsEqual
  alt equal
    EffectParametersListModel->>Caller: return early (no provider call)
  else not equal
    EffectParametersListModel->>ParametersProvider: setParameterValue(cachedId, fullRangeValue)
    ParametersProvider-->>EffectParametersListModel: parameterChanged(...)
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Out of Scope Changes check ❓ Inconclusive The QML property updates (orientation to buttonOrientation) appear ancillary to the primary recursion fix but may represent follow-up corrections discovered during development and testing. Clarify whether the QML changes are related to the Pluck crash fix or represent unrelated refactoring that should be in a separate PR.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Fix crash in Pluck' directly addresses the primary objective of resolving the Pluck crash issue (#10819) mentioned in the PR description and linked issues.
Description check ✅ Passed The PR description includes the issue link (#10819), a clear summary of changes ('Breaks infinite recursion during parameter updates'), and completes all required template checklist items comprehensively.
Linked Issues check ✅ Passed The changes fix infinite recursion in parameter updates by adding early-return logic for equal values [#10819], directly addressing the crash when opening the Pluck generator.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@luapmartin

Copy link
Copy Markdown
Contributor

thanks

@kryksyh
kryksyh force-pushed the fix_nyquist_effects_recursion branch from 99e44cd to b12da20 Compare May 14, 2026 11:31
@kryksyh kryksyh linked an issue May 14, 2026 that may be closed by this pull request
@kryksyh
kryksyh force-pushed the fix_nyquist_effects_recursion branch from b12da20 to 52327ee Compare May 14, 2026 12:36
@kryksyh
kryksyh merged commit e817ebd into audacity:master May 14, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export can't be Accessed Attempt to open Pluck causes a crash

2 participants