-
Notifications
You must be signed in to change notification settings - Fork 3
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
Possible memory leak in the Cairo library #1
Comments
Thanks for testing the library and providing detailed feedback. The memory leak you are encountering is related to cairo, not plutobook. See Issue: https://gitlab.freedesktop.org/cairo/cairo/-/issues/805
|
Here is a patch for cairo 1.18 to fix the memory leak - I have no idea if it is a good fix or not but |
Thank you for your input! Since I am not the developer of |
This is an awsome library!
There is a possible memory leak ... but I cannot figure out if it is related to cairo or bluebook.
It is related to rendering text on pdf surfaces (fonts and glyphs).
valgrind --leak-check=yes --track-origins=yes --leak-check=full --show-leak-kinds=all --log-file="valgrind.log" -s ./myapp
** case when writeToPdf = false;
==4569== LEAK SUMMARY:
==4569== definitely lost: 0 bytes in 0 blocks
==4569== indirectly lost: 0 bytes in 0 blocks
==4569== possibly lost: 0 bytes in 0 blocks
==4569== still reachable: 381,786 bytes in 148 blocks
==4569== suppressed: 0 bytes in 0 blocks
==4569==
==4569== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
** case when writeToPdf = true; ( ==> lost 9200 bytes !! )
==5352== LEAK SUMMARY:
==5352== definitely lost: 9,200 bytes in 200 blocks
==5352== indirectly lost: 0 bytes in 0 blocks
==5352== possibly lost: 0 bytes in 0 blocks
==5352== still reachable: 129,078 bytes in 151 blocks
==5352== suppressed: 0 bytes in 0 blocks
==5352==
==5352== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
To reproduce:
The text was updated successfully, but these errors were encountered: