-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Leak using node #3051
Labels
Comments
I'll need a way to replicate this |
There seem to be still or new memory leak in loadYoga ![]() Retained size of instancePromise is getting out of hand. We are using react-pdf in backend and rendering pdf's on the fly just simply calling |
Leak will show up at debugger with this. import React from "react";
import { renderToBuffer } from "@react-pdf/renderer";
import { Quixote } from "./pdf.js"; // copy from https://react-pdf.org/repl
for (const i of Array(100).keys()) {
await renderToBuffer(<Quixote />);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Unfortunatelly, using React-PDF/renderer is giving us a memory leak. We tried to remove all listeners, tried different methods, like
renderToStream
,renderToBuffer
andupdateContainer
but it keeps increasing memory usage.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: