Skip to content

fix(11427): bypass forwarding to system crash reporter on MacOS ; add plugin-validation tag to Sentry uploads - #12068

Merged
saintmatthieu merged 1 commit into
audacity:masterfrom
saintmatthieu:11427-use-_Exit-in-plugin-validation
Sep 15, 2026
Merged

saintmatthieu merged 1 commit into
audacity:masterfrom
saintmatthieu:11427-use-_Exit-in-plugin-validation

Conversation

@saintmatthieu

@saintmatthieu saintmatthieu commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Resolves: #11427

Disable forwarding to system crash reporter

On MacOS, this crash reporter is what causes the "Audacity quit unexpectedly" prompt, which is very annoying during plugin registration.

Add Sentry plugin-validation tag

This should help us filter events on Sentry that are due to the plugin validation, including by plugin name.

  • 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:

  1. Use a plugin on mac that you know causes this error (e.g. Arturia's Chorus).
  2. Start a master build. Open the plugin manager, check the "Include broken plugins" box and rescan. You should see the "Audacity quit unexpectedly" popup.
  3. Close Audacity.
  4. Start this branch's build. Repeat the operation in the plugin manager. There should be no popup (but the plugin should still be listed as broken).
  5. Reset your settings or delete known_audio_plugins.json, restart Audacity. Do validate your plugins. You should not see a single such popup. Open the plugin manager: the effect is there, only shown as broken.

@saintmatthieu saintmatthieu self-assigned this Sep 8, 2026
@saintmatthieu
saintmatthieu force-pushed the 11427-use-_Exit-in-plugin-validation branch 2 times, most recently from 8709774 to f2e6a1b Compare September 9, 2026 19:36
@saintmatthieu
saintmatthieu marked this pull request as ready for review September 9, 2026 19:37
@coderabbitai

coderabbitai Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Advanced

Run ID: 5e859a89-e2ef-49b1-a4bb-ef103acd8e93

📥 Commits

Reviewing files that changed from the base of the PR and between 3a39caef3fdb097124df295bdfdf0587bb5fe204 and c109ed8.

📒 Files selected for processing (1)
  • muse_deps

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Plugin registration now initializes diagnostics and remote-command modules before audio modules. When a crash handler exists, it records the validated plugin filename in a plugin-validation session tag and disables system crash-reporter forwarding. The muse and muse_deps submodule references were updated.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant AppFactory
  participant DiagnosticsModule
  participant PluginRegistrationApp
  participant CrashHandler
  AppFactory->>DiagnosticsModule: register diagnostics and crash handling
  DiagnosticsModule->>PluginRegistrationApp: provide ICrashHandler
  PluginRegistrationApp->>CrashHandler: disable system crash-reporter forwarding
  PluginRegistrationApp->>PluginRegistrationApp: add plugin-validation session tag
Loading

Merge Risk: ⚪ Minimal · up to c109e

The plugin-validation workflow has no verified merge-blocking regression and is suitable for merge with normal checks.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes both main changes: disabling macOS crash-reporter forwarding and adding the Sentry plugin-validation tag.
Description check ✅ Passed The description includes the issue reference, change summary, motivation, completed checklist items, and detailed QA steps. It satisfies the required template information.
Linked Issues check ✅ Passed The changes address issue #11427. AppFactory::newPluginRegistrationApp registers DiagnosticsModule and RCommandModule before plugin validation. PluginRegistrationApp::startupScenario disables …
Out of Scope Changes check ✅ Passed The application-factory changes, crash-handler integration, Sentry tag, and muse and muse_deps reference updates support plugin-validation diagnostics for issue #11427. No unrelated change is demo…

Warning

Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.


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.

@saintmatthieu
saintmatthieu force-pushed the 11427-use-_Exit-in-plugin-validation branch from f2e6a1b to 9fde437 Compare September 10, 2026 12:23
@saintmatthieu saintmatthieu changed the title fix(11427): use std::_Exit in registration app fix(11427): bypass forwarding to system crash reporter on MacOS ; add plugin-validation tag to Sentry uploads Sep 10, 2026
@saintmatthieu
saintmatthieu force-pushed the 11427-use-_Exit-in-plugin-validation branch from 9fde437 to 9c3524f Compare September 10, 2026 12:26
Comment on lines +44 to +46
// Only keep the plugin name: the full path could reveal the user's name or folder layout
crashHandler()->addSessionTag(muse::String{"plugin-validation"}, io::filename(task.pluginPath).toString());
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be convenient here to add also a tag for the plugin container format like AU, VST3 (win/mac), LV2 as another tag?
or any other tag that could help investigate those plugins issues

@saintmatthieu
saintmatthieu force-pushed the 11427-use-_Exit-in-plugin-validation branch from 3a39cae to c109ed8 Compare September 15, 2026 08:21
@saintmatthieu
saintmatthieu merged commit 4749d76 into audacity:master Sep 15, 2026
17 checks passed
@saintmatthieu
saintmatthieu deleted the 11427-use-_Exit-in-plugin-validation branch September 15, 2026 09:12
kryksyh added a commit that referenced this pull request Sep 22, 2026
fix(11427): bypass forwarding to system crash reporter on MacOS ; add plugin-validation tag to Sentry uploads (#12068)
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.

Audacity Plugin Process crashes when scanning for new plugins on launch

3 participants