Project

General

Profile

Actions

Bug #11954

open

Pango (libfontconfig) memory leaks

Added by Matthias Van Ceulebroeck 8 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
09/15/2023
Due date:
% Done:

0%

Estimated time:

Description

When using Pango with Address Sanitizer, a lot of leaks are reported, a lot of them coming from libfontconfig.
Some of them may be inherent to this library, but some of them could be caused by Wt's use.

A report for a small wt example that renders text to a PDF, using Pango

Wt::WPdfImage pdfImage("4cm", "3cm");
{
  Wt::WPainter p(&pdfImage);
  p.drawText(Wt::WRectF(0, 0, 20, 20), { Wt::AlignmentFlag::Left }, "Some text");
}
std::ofstream f("output.pdf", std::ios::out | std::ios::binary);
pdfImage.write(f);

results in a lot of leaks: SUMMARY: AddressSanitizer: 599399 byte(s) leaked in 14274 allocation(s).

Actions #1

Updated by Matthias Van Ceulebroeck 6 months ago

  • Target version changed from 4.10.2 to 4.10.3
Actions

Also available in: Atom PDF