Skip to content

Fix unbounded FluidMeeting recording memory growth - #1034

Merged
altic-dev merged 6 commits into
mainfrom
rohith/fix-meeting-memory-growth
Oct 1, 2026
Merged

altic-dev merged 6 commits into
mainfrom
rohith/fix-meeting-memory-growth

Conversation

@grohith327

@grohith327 grohith327 commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Description

An unsupported microphone format can emit a writer failure for every audio buffer. Each event previously queued a full, growing session snapshot, causing quadratic memory retention when persistence fell behind.

Report one failure per continuous episode, publish degraded track health immediately, and re-arm reporting after a successful write. Replace the persistence task chain with one serial worker retaining one in-flight snapshot plus the latest pending snapshot per session. Preserve failures and health updates received during capture startup, and add readable format errors with diagnostic metadata.

Type of Change

  • 🐞 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 🧹 Chore
  • 📝 Documentation update

Related Issue or Discussion

Closes #1014

Testing

  • Tested on Intel Mac
  • Tested on Apple Silicon Mac
  • Tested on macOS version: 27.2 (26B5091g)
  • Ran linter locally: strict SwiftLint on all six changed/new Swift files
  • Ran formatter locally: swiftformat --config .swiftformat Sources
  • Ran tests locally: 31 focused tests passed through the signed testfv helper (12 MeetingAudioChunkSinkTests, 19 selected MeetingRecoveryTests).

Screenshots / Video

  • No UI/visual changes; screenshots/video are not applicable.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T05:55:12.262942Z 57c272b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Fixes memory leak in meeting recording session persistence.

The PR appears safe to merge; no outstanding finding or new actionable issue was identified.

Summary

The PR limits writer-failure reporting to one event per continuous failure episode, coalesces pending session saves, and preserves capture events and health updates during startup. The latest changes keep a supported voice-processing fallback from incorrectly marking an otherwise healthy recording as degraded.

Reviews (6) · Last reviewed commit: "Keep supported capture fallback informat..."

@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

FluidVoice PR build ready

Download FluidVoice-PR-1034-57c272bc8a8d

The artifact contains the ad-hoc-signed app ZIP, Xcode archive, build manifest, and installation instructions. It expires 5 days after the build.

Install the app

  1. Extract the downloaded artifact, then extract FluidVoice-PR-1034.app.zip.

  2. Move FluidVoice Fix unbounded FluidMeeting recording memory growth #1034.app into the /Applications folder.

  3. Open Terminal and remove the download quarantine marker:

    xattr -dr com.apple.quarantine "/Applications/FluidVoice #1034.app"
    
  4. In Applications, Control-click FluidVoice Fix unbounded FluidMeeting recording memory growth #1034.app and choose Open.

  5. If macOS still blocks it, open System Settings → Privacy & Security, click Open Anyway, and confirm.

This build has its own app identity, so its permissions are separate from the release version of FluidVoice.

View workflow run

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 64c032ba62

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ec299352e5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@altic-dev
altic-dev merged commit f0ef01c into main Oct 1, 2026
7 checks passed
@altic-dev altic-dev mentioned this pull request Oct 1, 2026
8 of 12 tasks
renato-dransay added a commit to renato-dransay/FluidVoice that referenced this pull request Oct 1, 2026
Brings in altic-dev/FluidVoice f0ef01c (unbounded FluidMeeting recording
memory growth, altic-dev#1034) and 14f8457 (split streamed reasoning when only
</think> arrives, altic-dev#1001).

Conflict resolution:
- MeetingAudioChunkWriter: adopt upstream's reportWriterFailure episode
  reporting, which covers append, chunk-start and finalization failures.
  It replaces the fork's lastNoChunkFailureDetail dedupe.
- MeetingPCMFormatContractError: adopt upstream's "Unsupported PCM format:
  <reason>." description; keep the fork's MeetingPCMFormatNormalizer.
- MeetingAudioChunkSinkTests: keep both helper recorders and update the
  fork's normalizer tests to the upstream error text.
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.

[BUG] FluidMeeting recording, FluidVoice's memory grows without bound

2 participants