Apache OpenOffice (AOO) Bugzilla – Issue 121969
writer_pdf_Export Font GDI handle leaks
Last modified: 2014-04-03 18:14:53 UTC
Created attachment 80472 [details] GDI view, Font handle are not released ! Batch conversion from RTF->PDF after 1700 iteration of converted files are GDI handles fill GDI Font object isn't released. how to reproduce: 1) connection to OOo 2) while (i < 1800) 3) open RTF (with arial font, bold font .... etc, multiple file) 4) export to PDF (PDF 1.4 or A) 5) loop
LibreOffice same problem
ALG: Adding me to CC...
Simplest scenario for a reproduction bug: 1) Execute LibreOffice 4.0.1.2/OpenOffice 3.4.1 on Windows 7 2) Create new document in Writer 3) write several words with fonts Arial, Arial Bold, Times New Roman etc 4) Run GDIView - applikaction for monitoring windows objects resources DC, Fonts, etc. http://www.nirsoft.net/utils/gdi_handles.html 5) Export this document to PDF 6) Check GDIView (F5 refresh) on soffice.bin process -> Font object growth 7) repeat steps 5,6 It's info OK ?
ALG: Adding Herbert to CC. Herbert, font ressources...?
How many GDI font handles are not released? Of course there is some caching going on. If everything was released immediately the performance would suffer quite a bit.
Attachement is PNG screenshot, when is 10 0000 GDI handles allocated have PDF generator problem, no or bad fonts are included. (In reply to comment #5) > How many GDI font handles are not released? Of course there is some caching > going on. If everything was released immediately the performance would > suffer quite a bit.
Font handles - GDI objects, sorry I'm not primary win32 developer (In reply to comment #4) > ALG: Adding Herbert to CC. Herbert, font ressources...?