Skip to content

fix(rrweb): aggressive blob cleanup / caching limit for safari GC#134

Closed
ksvat wants to merge 1 commit intomainfrom
safari-blob-memory-fix
Closed

fix(rrweb): aggressive blob cleanup / caching limit for safari GC#134
ksvat wants to merge 1 commit intomainfrom
safari-blob-memory-fix

Conversation

@ksvat
Copy link
Contributor

@ksvat ksvat commented Feb 26, 2026

100% claude doing its thing....but i asked it for sources and it seems plausible?

Session replay causes unbounded memory growth in Safari when recording Flutter web applications, with memory increasing by ~0.5MB/second. Chrome does not exhibit this issue. Reported in
PostHog/posthog-flutter#306.

Flutter web renders the entire application UI to a full-screen <canvas> element
The canvas recording worker continuously captures frames at 4-15 FPS via OffscreenCanvas.convertToBlob(). Each call creates a Blob object that must be explicitly released.

Safari's JavaScriptCore garbage collector uses a more conservative memory management strategy compared to Chrome

Copy link
Contributor Author

ksvat commented Feb 26, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ksvat ksvat force-pushed the safari-blob-memory-fix branch from 32d49ec to 0ccef6c Compare February 26, 2026 22:03
@ksvat ksvat requested review from a team, TueHaulund and fasyy612 and removed request for a team February 26, 2026 22:20
@ksvat ksvat marked this pull request as ready for review February 26, 2026 22:20
@TueHaulund
Copy link
Contributor

Closing this as the original issue was resolved

@TueHaulund TueHaulund closed this Mar 6, 2026
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.

2 participants