-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Certain Pdf uses exteme amount of memory and time on import and rendering #1063
Comments
Reads like the Pdf contains an excessive amount of Xml elements, which librsvg can't handle. It's not necessarily a memory-leak, maybe a recursion in the internally converted Svg. By the way: Rust does not have any guarantees to prevent leaks, for example: Box::leak |
Certainly seems like it.
I was wondering as well if it might be some recursive issue or something else. Because it's just handwritten text and all other PDF applications don't really seem to slow down or increase memory usage when loading page three. So it doesn't seem like an "it's simply too much data" kinda situation.
You are of course totally right, there are many ways to leak memory without necessarily creating memory safety issues. |
Describe the bug
Memory leak while trying to load PDF embedded into Rnote document.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This obviously shouldn't happen, and I think it's fair to talk about a memory leak, although this is a Rust application I suspect the PDF library might not be. This PDF is only 3 pages, 2 Mb and works fine in all other PDF applications (Firefox, Evince, and Okular in my case).
Console Output
Desktop (please complete the following information):
Additional context
I tried repairing the PDF with Ghostscript to make sure it's not corrupted or anything and while that did reduce file size, Rnote still has the same behaviour. Also, since other applications work fine, I doubt it's necessarily only a problem with the PDF.
Sadly, I cannot share the PDF publicly on GitHub since it contains some personal information of other people, but I can share it privately with a developer. However, I know that the PDF has been generated with Notability on an iPad. I will see, so I can possibly get another export from that person for diagnosis.
The text was updated successfully, but these errors were encountered: