Skip to content

@remotion/studio: Gracefully handle waveform decode errors#7801

Merged
JonnyBurger merged 3 commits into
mainfrom
jonnyburger/waveform-fix
May 29, 2026
Merged

@remotion/studio: Gracefully handle waveform decode errors#7801
JonnyBurger merged 3 commits into
mainfrom
jonnyburger/waveform-fix

Conversation

@JonnyBurger
Copy link
Copy Markdown
Member

Audio waveform rendering could take down Studio when decoding fails in the worker. This change makes that path fail gracefully so invalid or undecodable media shows a fallback message instead of crashing the UI.

What changed

  • Added a worker error handler in AudioWaveform to surface a recoverable waveform failure state.
  • Hardened the waveform worker so unexpected render rejections are reported back as normal errors.
  • Updated the user-facing fallback copy to mention decode failures as well as CORS issues.

Notes

  • The worker is terminated and cleaned up when it errors so the broken state does not linger.
  • This keeps the existing progressive waveform rendering behavior intact for valid media.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pullfrog
Copy link
Copy Markdown
Contributor

pullfrog Bot commented May 29, 2026

Pullfrog stalled

The agent stopped emitting events for 303s and was killed by the activity-timeout watchdog. 57 events were processed before the failure.

Recent agent stderr
INFO  2026-05-29T13:09:12 +22ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:12 +22ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:12 +26ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:12 +23ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:12 +25ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:12 +17ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:12 +24ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:12 +23ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:12 +23ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +22ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +23ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +22ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +23ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +24ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +22ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +22ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +24ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +24ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +32ms service=bus type=message.part.delta publishing
INFO  2026-05-29T13:09:13 +13ms service=bus type=message.part.delta publishing

Pullfrog  | Rerun failed job ➔View workflow run | via Pullfrog | Using Kimi K2𝕏

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment May 29, 2026 1:12pm
remotion Ready Ready Preview, Comment May 29, 2026 1:12pm

Request Review

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JonnyBurger JonnyBurger merged commit b558527 into main May 29, 2026
18 checks passed
@JonnyBurger JonnyBurger deleted the jonnyburger/waveform-fix branch May 29, 2026 13:36
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.

1 participant